substrate::types::schematic

Trait DataView

Source
pub trait DataView<T: SchematicBundleKind>: SchematicBundleKind {
    // Required method
    fn view_nodes_as(nodes: &NodeBundle<Self>) -> NodeBundle<T>;

    // Provided method
    fn view_terminals_as(terminals: &TerminalBundle<Self>) -> TerminalBundle<T> { ... }
}
Expand description

A schematic bundle kind that can be viewed as another bundle kind T.

Required Methods§

Source

fn view_nodes_as(nodes: &NodeBundle<Self>) -> NodeBundle<T>

Views a node bundle as a node bundle of a different kind.

Provided Methods§

Source

fn view_terminals_as(terminals: &TerminalBundle<Self>) -> TerminalBundle<T>

Views a terminal bundle as a terminal bundle of a different kind.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§