pub struct ModeSwitchPoint(/* private fields */);Expand description
A ModeSwitchPoint allows a RunnableEntity to switch modes in a ModeDeclarationGroup
Implementations§
Source§impl ModeSwitchPoint
 
impl ModeSwitchPoint
Sourcepub fn set_mode_group<T: Into<PortPrototype> + Clone>(
    &self,
    mode_group: &ModeGroup,
    context_port: &T,
) -> Result<(), AutosarAbstractionError>
 
pub fn set_mode_group<T: Into<PortPrototype> + Clone>( &self, mode_group: &ModeGroup, context_port: &T, ) -> Result<(), AutosarAbstractionError>
Set the mode group and context port for the mode switch point
Sourcepub fn mode_group(&self) -> Option<(ModeGroup, PortPrototype)>
 
pub fn mode_group(&self) -> Option<(ModeGroup, PortPrototype)>
Get the mode group and context port for the mode switch point
Sourcepub fn runnable_entity(&self) -> Option<RunnableEntity>
 
pub fn runnable_entity(&self) -> Option<RunnableEntity>
Get the RunnableEntity that contains the ModeSwitchPoint
Trait Implementations§
Source§impl AbstractionElement for ModeSwitchPoint
 
impl AbstractionElement for ModeSwitchPoint
Source§impl Clone for ModeSwitchPoint
 
impl Clone for ModeSwitchPoint
Source§fn clone(&self) -> ModeSwitchPoint
 
fn clone(&self) -> ModeSwitchPoint
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 ModeSwitchPoint
 
impl Debug for ModeSwitchPoint
Source§impl From<ModeSwitchPoint> for Element
 
impl From<ModeSwitchPoint> for Element
Source§fn from(val: ModeSwitchPoint) -> Self
 
fn from(val: ModeSwitchPoint) -> Self
Converts to this type from the input type.
Source§impl Hash for ModeSwitchPoint
 
impl Hash for ModeSwitchPoint
Source§impl PartialEq for ModeSwitchPoint
 
impl PartialEq for ModeSwitchPoint
Source§impl TryFrom<Element> for ModeSwitchPoint
 
impl TryFrom<Element> for ModeSwitchPoint
impl Eq for ModeSwitchPoint
impl StructuralPartialEq for ModeSwitchPoint
Auto Trait Implementations§
impl Freeze for ModeSwitchPoint
impl !RefUnwindSafe for ModeSwitchPoint
impl Send for ModeSwitchPoint
impl Sync for ModeSwitchPoint
impl Unpin for ModeSwitchPoint
impl !UnwindSafe for ModeSwitchPoint
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.