pub enum ComponentPrototype {
SwComponent(SwComponentPrototype),
RootComposition(RootSwCompositionPrototype),
}
Expand description
The ComponentPrototype
enum represents all possible types of software component prototypes
Variants§
SwComponent(SwComponentPrototype)
the component prototype is a SwComponentPrototype
RootComposition(RootSwCompositionPrototype)
the component prototype is a RootSwCompositionPrototype
Implementations§
Source§impl ComponentPrototype
impl ComponentPrototype
Sourcepub fn component_type(&self) -> Option<SwComponentType>
pub fn component_type(&self) -> Option<SwComponentType>
get the sw component type that this prototype is based on
Sourcepub fn parent_composition(
&self,
) -> Result<Option<CompositionSwComponentType>, AutosarAbstractionError>
pub fn parent_composition( &self, ) -> Result<Option<CompositionSwComponentType>, AutosarAbstractionError>
get the composition containing this component
if the component is a root composition, this will always return None
Trait Implementations§
Source§impl Clone for ComponentPrototype
impl Clone for ComponentPrototype
Source§fn clone(&self) -> ComponentPrototype
fn clone(&self) -> ComponentPrototype
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 ComponentPrototype
impl Debug for ComponentPrototype
Source§impl Hash for ComponentPrototype
impl Hash for ComponentPrototype
Source§impl PartialEq for ComponentPrototype
impl PartialEq for ComponentPrototype
Source§impl TryFrom<Element> for ComponentPrototype
impl TryFrom<Element> for ComponentPrototype
impl Eq for ComponentPrototype
impl StructuralPartialEq for ComponentPrototype
Auto Trait Implementations§
impl Freeze for ComponentPrototype
impl !RefUnwindSafe for ComponentPrototype
impl Send for ComponentPrototype
impl Sync for ComponentPrototype
impl Unpin for ComponentPrototype
impl !UnwindSafe for ComponentPrototype
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.