pub struct ModeDeclaration(/* private fields */);
Expand description
A ModeDeclaration
represents a mode declaration in a ModeDeclarationGroup
Implementations§
Source§impl ModeDeclaration
impl ModeDeclaration
Sourcepub fn set_value(
&self,
value: Option<u64>,
) -> Result<(), AutosarAbstractionError>
pub fn set_value( &self, value: Option<u64>, ) -> Result<(), AutosarAbstractionError>
Set the value that should be used to represent the mode in the RTE
Sourcepub fn value(&self) -> Option<u64>
pub fn value(&self) -> Option<u64>
Get the value that should be used to represent the mode in the RTE
Sourcepub fn mode_declaration_group(
&self,
) -> Result<ModeDeclarationGroup, AutosarAbstractionError>
pub fn mode_declaration_group( &self, ) -> Result<ModeDeclarationGroup, AutosarAbstractionError>
Get the mode declaration group that this mode declaration belongs to
Trait Implementations§
Source§impl AbstractionElement for ModeDeclaration
impl AbstractionElement for ModeDeclaration
Source§impl Clone for ModeDeclaration
impl Clone for ModeDeclaration
Source§fn clone(&self) -> ModeDeclaration
fn clone(&self) -> ModeDeclaration
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 ModeDeclaration
impl Debug for ModeDeclaration
Source§impl From<ModeDeclaration> for Element
impl From<ModeDeclaration> for Element
Source§fn from(val: ModeDeclaration) -> Self
fn from(val: ModeDeclaration) -> Self
Converts to this type from the input type.
Source§impl Hash for ModeDeclaration
impl Hash for ModeDeclaration
Source§impl PartialEq for ModeDeclaration
impl PartialEq for ModeDeclaration
Source§impl TryFrom<Element> for ModeDeclaration
impl TryFrom<Element> for ModeDeclaration
impl Eq for ModeDeclaration
impl StructuralPartialEq for ModeDeclaration
Auto Trait Implementations§
impl Freeze for ModeDeclaration
impl !RefUnwindSafe for ModeDeclaration
impl Send for ModeDeclaration
impl Sync for ModeDeclaration
impl Unpin for ModeDeclaration
impl !UnwindSafe for ModeDeclaration
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.