pub struct ComponentDefinition {
pub name: Token,
pub loc: FileLocation,
pub parameters: Map<String, Variable>,
pub variables: Map<String, Variable>,
pub groups: Map<String, VariableGroup>,
pub relations: Map<String, Relation>,
pub components: Map<String, Component>,
pub designs: Map<String, Design>,
pub goals: Map<String, Goal>,
pub transformations: Map<String, Transformation>,
pub behaviors: Map<String, Behavior>,
pub needs: Map<String, Need>,
}
Expand description
Component definition.
Fields§
§name: Token
Name of this component definition.
loc: FileLocation
Textual location of this component definition.
parameters: Map<String, Variable>
Map of parameter variables.
variables: Map<String, Variable>
Map of internal variables.
groups: Map<String, VariableGroup>
Map of internal variable groupings.
relations: Map<String, Relation>
Map of instantiated relations.
components: Map<String, Component>
Map of instantiated components.
designs: Map<String, Design>
Map of design requirements and constraints.
goals: Map<String, Goal>
Map of goal requirements and constraints.
transformations: Map<String, Transformation>
Map of transformation requirements and constraints.
behaviors: Map<String, Behavior>
Map of behavior requirements and constraints.
needs: Map<String, Need>
Map of needs.
Trait Implementations§
Source§impl Clone for ComponentDefinition
impl Clone for ComponentDefinition
Source§fn clone(&self) -> ComponentDefinition
fn clone(&self) -> ComponentDefinition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ComponentDefinition
impl Debug for ComponentDefinition
Source§impl Default for ComponentDefinition
impl Default for ComponentDefinition
Source§fn default() -> ComponentDefinition
fn default() -> ComponentDefinition
Returns the “default value” for a type. Read more
Source§impl Display for ComponentDefinition
impl Display for ComponentDefinition
Source§impl<'a> FetchTarget<'a, ComponentDefinition> for ComponentDefinitionTarget
impl<'a> FetchTarget<'a, ComponentDefinition> for ComponentDefinitionTarget
Source§fn fetch_values(
&self,
spec: &'a Specification,
) -> Result<&'a [ComponentDefinition], TargetError<Self>>
fn fetch_values( &self, spec: &'a Specification, ) -> Result<&'a [ComponentDefinition], TargetError<Self>>
Fetch the map reference containing the targeted item.
Source§fn fetch_values_mut(
&self,
spec: &'a mut Specification,
) -> Result<&'a mut [ComponentDefinition], TargetError<Self>>
fn fetch_values_mut( &self, spec: &'a mut Specification, ) -> Result<&'a mut [ComponentDefinition], TargetError<Self>>
Fetch the mutable map reference containing the targeted item.
Source§fn fetch(&self, spec: &'a Specification) -> Result<&'a V, TargetError<Self>>
fn fetch(&self, spec: &'a Specification) -> Result<&'a V, TargetError<Self>>
Fetch a reference to the target from the specification.
Source§fn fetch_mut(
&self,
spec: &'a mut Specification,
) -> Result<&'a mut V, TargetError<Self>>
fn fetch_mut( &self, spec: &'a mut Specification, ) -> Result<&'a mut V, TargetError<Self>>
Fetch a mutable reference to the target from the specification.
Source§impl PartialEq for ComponentDefinition
impl PartialEq for ComponentDefinition
impl StructuralPartialEq for ComponentDefinition
Auto Trait Implementations§
impl Freeze for ComponentDefinition
impl RefUnwindSafe for ComponentDefinition
impl !Send for ComponentDefinition
impl !Sync for ComponentDefinition
impl Unpin for ComponentDefinition
impl UnwindSafe for ComponentDefinition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more