Struct tydi_hir::component::Component [−][src]
pub struct Component {
pub identifier: Id<Identifier>,
pub instances: Vec<Id<Instance>>,
pub nets: Vec<Id<Net>>,
pub connections: Vec<Connection>,
pub types: Vec<Id<Type>>,
pub metadata: Vec<(String, String)>,
}
Expand description
A component. Represents a hierarchical entity in a hardware design.
Fields
identifier: Id<Identifier>
The identifier of the component.
instances: Vec<Id<Instance>>
The instances within a component.
nets: Vec<Id<Net>>
The nets of a component, including its ports.
connections: Vec<Connection>
The connections within a component.
types: Vec<Id<Type>>
The types used within a component.
metadata: Vec<(String, String)>
Component metadata.
Implementations
Create an empty component.
Append an instance to the component.
Append a connection to the component.
Append key-value metadata to the component.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Component
impl UnwindSafe for Component
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.