Trait substrate::io::Flatten

source ·
pub trait Flatten<T>: FlatLen {
    // Required method
    fn flatten<E>(&self, output: &mut E)
       where E: Extend<T>;

    // Provided method
    fn flatten_vec(&self) -> Vec<T> { ... }
}
Expand description

Flatten a structure into a list.

Required Methods§

source

fn flatten<E>(&self, output: &mut E)
where E: Extend<T>,

Flatten a structure into a list.

Provided Methods§

source

fn flatten_vec(&self) -> Vec<T>

Flatten into a Vec.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Flatten<Direction> for ()

source§

fn flatten<E>(&self, _output: &mut E)
where E: Extend<Direction>,

source§

impl Flatten<PortGeometry> for ()

source§

fn flatten<E>(&self, _output: &mut E)
where E: Extend<PortGeometry>,

source§

impl Flatten<Node> for ()

source§

fn flatten<E>(&self, _output: &mut E)
where E: Extend<Node>,

source§

impl Flatten<Node> for Vec<Node>

source§

fn flatten<E>(&self, output: &mut E)
where E: Extend<Node>,

source§

impl<T> Flatten<Node> for &T
where T: Flatten<Node>,

source§

fn flatten<E>(&self, output: &mut E)
where E: Extend<Node>,

Implementors§

source§

impl Flatten<Direction> for DiffPair

source§

impl Flatten<Direction> for MosIo

source§

impl Flatten<Direction> for PowerIo

source§

impl Flatten<Direction> for Signal

source§

impl Flatten<Direction> for TestbenchIo

source§

impl Flatten<Direction> for TwoTerminalIo

source§

impl Flatten<PortGeometry> for IoShape

source§

impl Flatten<PortGeometry> for PortGeometry

source§

impl Flatten<PortGeometry> for DiffPairLayout

source§

impl Flatten<PortGeometry> for MosIoLayout

source§

impl Flatten<PortGeometry> for PowerIoLayout

source§

impl Flatten<PortGeometry> for TestbenchIoLayout

source§

impl Flatten<PortGeometry> for TwoTerminalIoLayout

source§

impl Flatten<Node> for Node

source§

impl Flatten<Node> for Terminal

source§

impl Flatten<Node> for DiffPairSchematic

source§

impl Flatten<Node> for DiffPairTerminalView

source§

impl Flatten<Node> for MosIoSchematic

source§

impl Flatten<Node> for MosIoTerminalView

source§

impl Flatten<Node> for PowerIoSchematic

source§

impl Flatten<Node> for PowerIoTerminalView

source§

impl Flatten<Node> for TestbenchIoSchematic

source§

impl Flatten<Node> for TestbenchIoTerminalView

source§

impl Flatten<Node> for TwoTerminalIoSchematic

source§

impl Flatten<Node> for TwoTerminalIoTerminalView

source§

impl Flatten<NameBuf> for NameTree

source§

impl<T: FlatLen> Flatten<Direction> for InOut<T>

source§

impl<T: FlatLen> Flatten<Direction> for Input<T>

source§

impl<T: FlatLen> Flatten<Direction> for Output<T>

source§

impl<T: Flatten<Direction>> Flatten<Direction> for Array<T>

source§

impl<T: Flatten<Direction>> Flatten<Direction> for Flipped<T>

source§

impl<T: Flatten<PortGeometry>> Flatten<PortGeometry> for ArrayData<T>

source§

impl<T: Flatten<Node>> Flatten<Node> for ArrayData<T>

source§

impl<T: Flatten<Node>> Flatten<Node> for Flipped<T>

source§

impl<T: Flatten<Node>> Flatten<Node> for InOut<T>

source§

impl<T: Flatten<Node>> Flatten<Node> for Input<T>

source§

impl<T: Flatten<Node>> Flatten<Node> for Output<T>