pub struct VariableAccess(/* private fields */);
Expand description
A VariableAccess
allows a RunnableEntity
to access a variable in various contexts
Implementations§
Source§impl VariableAccess
impl VariableAccess
Sourcepub fn set_accessed_variable(
&self,
data_element: &VariableDataPrototype,
context_port: &PortPrototype,
) -> Result<(), AutosarAbstractionError>
pub fn set_accessed_variable( &self, data_element: &VariableDataPrototype, context_port: &PortPrototype, ) -> Result<(), AutosarAbstractionError>
Set the accessed variable
Sourcepub fn accessed_variable(
&self,
) -> Option<(VariableDataPrototype, PortPrototype)>
pub fn accessed_variable( &self, ) -> Option<(VariableDataPrototype, PortPrototype)>
Get the accessed variable
Sourcepub fn runnable_entity(&self) -> Option<RunnableEntity>
pub fn runnable_entity(&self) -> Option<RunnableEntity>
Get the RunnableEntity
that contains the VariableAccess
Trait Implementations§
Source§impl AbstractionElement for VariableAccess
impl AbstractionElement for VariableAccess
Source§impl Clone for VariableAccess
impl Clone for VariableAccess
Source§fn clone(&self) -> VariableAccess
fn clone(&self) -> VariableAccess
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 VariableAccess
impl Debug for VariableAccess
Source§impl From<VariableAccess> for Element
impl From<VariableAccess> for Element
Source§fn from(val: VariableAccess) -> Self
fn from(val: VariableAccess) -> Self
Converts to this type from the input type.
Source§impl Hash for VariableAccess
impl Hash for VariableAccess
Source§impl PartialEq for VariableAccess
impl PartialEq for VariableAccess
Source§impl TryFrom<Element> for VariableAccess
impl TryFrom<Element> for VariableAccess
impl Eq for VariableAccess
impl StructuralPartialEq for VariableAccess
Auto Trait Implementations§
impl Freeze for VariableAccess
impl !RefUnwindSafe for VariableAccess
impl Send for VariableAccess
impl Sync for VariableAccess
impl Unpin for VariableAccess
impl !UnwindSafe for VariableAccess
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.