pub struct SwComponentPrototype(/* private fields */);
Expand description
A SwComponentPrototype
is an instance of a software component type
Implementations§
Source§impl SwComponentPrototype
impl SwComponentPrototype
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<CompositionSwComponentType, AutosarAbstractionError>
pub fn parent_composition( &self, ) -> Result<CompositionSwComponentType, AutosarAbstractionError>
get the composition containing this component
Trait Implementations§
Source§impl Clone for SwComponentPrototype
impl Clone for SwComponentPrototype
Source§fn clone(&self) -> SwComponentPrototype
fn clone(&self) -> SwComponentPrototype
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 SwComponentPrototype
impl Debug for SwComponentPrototype
Source§impl From<SwComponentPrototype> for Element
impl From<SwComponentPrototype> for Element
Source§fn from(val: SwComponentPrototype) -> Self
fn from(val: SwComponentPrototype) -> Self
Converts to this type from the input type.
Source§impl Hash for SwComponentPrototype
impl Hash for SwComponentPrototype
Source§impl PartialEq for SwComponentPrototype
impl PartialEq for SwComponentPrototype
Source§impl TryFrom<Element> for SwComponentPrototype
impl TryFrom<Element> for SwComponentPrototype
impl Eq for SwComponentPrototype
impl StructuralPartialEq for SwComponentPrototype
Auto Trait Implementations§
impl Freeze for SwComponentPrototype
impl !RefUnwindSafe for SwComponentPrototype
impl Send for SwComponentPrototype
impl Sync for SwComponentPrototype
impl Unpin for SwComponentPrototype
impl !UnwindSafe for SwComponentPrototype
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.