Trait substrate::io::StructData

source ·
pub trait StructData {
    // Required methods
    fn fields(&self) -> Vec<ArcStr>;
    fn field_nodes(&self, name: &str) -> Option<Vec<Node>>;
}
Expand description

A schematic hardware data struct.

Only intended for use by Substrate procedural macros.

Required Methods§

source

fn fields(&self) -> Vec<ArcStr>

Returns a list of the names of the fields in this struct.

source

fn field_nodes(&self, name: &str) -> Option<Vec<Node>>

Returns the list of nodes contained by the field of the given name.

Implementors§