pub struct EcucReferenceValue(/* private fields */);
Expand description
An EcucReferenceValue
allows the ecu tonfiguration to refer to any identifiable element in the Autosar model
Implementations§
Source§impl EcucReferenceValue
impl EcucReferenceValue
Sourcepub fn set_definition<T: AbstractEcucReferenceDef>(
&self,
definition: &T,
) -> Result<(), AutosarAbstractionError>
pub fn set_definition<T: AbstractEcucReferenceDef>( &self, definition: &T, ) -> Result<(), AutosarAbstractionError>
set the parameter definition reference
Sourcepub fn definition(&self) -> Option<EcucAnyReferenceDef>
pub fn definition(&self) -> Option<EcucAnyReferenceDef>
get the reference definition
This function returns the definition as an EcucParameterDef
enum, which
could contain either an EcucFloatParamDef
or an EcucIntegerParamDef
.
If the definition is not loaded, use definition_ref()
instead.
Sourcepub fn definition_ref(&self) -> Option<String>
pub fn definition_ref(&self) -> Option<String>
get the referenced definition ref as a string
This function is an alternative to definition()
; it is useful when the
referenced definition is not loaded and can’t be resolved.
Sourcepub fn set_target(
&self,
target: &Element,
) -> Result<(), AutosarAbstractionError>
pub fn set_target( &self, target: &Element, ) -> Result<(), AutosarAbstractionError>
Set the target of the reference
Sourcepub fn set_index(
&self,
index: Option<u64>,
) -> Result<(), AutosarAbstractionError>
pub fn set_index( &self, index: Option<u64>, ) -> Result<(), AutosarAbstractionError>
set the index of the reference
If the reference definition has requiresIndex
set to true
, then the reference
must have an index. Otherwise the index is meaningless.
Sourcepub fn index(&self) -> Option<u64>
pub fn index(&self) -> Option<u64>
get the index of the reference
If the reference definition has requiresIndex
set to true
, then the reference
must have an index. Otherwise the index is meaningless.
Sourcepub fn set_is_auto_value(
&self,
is_auto_value: Option<bool>,
) -> Result<(), AutosarAbstractionError>
pub fn set_is_auto_value( &self, is_auto_value: Option<bool>, ) -> Result<(), AutosarAbstractionError>
set the isAutoValue flag
If the reference definition has withAuto
set to true
, then the reference is allowed to have an auto value.
Sourcepub fn is_auto_value(&self) -> Option<bool>
pub fn is_auto_value(&self) -> Option<bool>
get the isAutoValue flag
Trait Implementations§
Source§impl Clone for EcucReferenceValue
impl Clone for EcucReferenceValue
Source§fn clone(&self) -> EcucReferenceValue
fn clone(&self) -> EcucReferenceValue
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for EcucReferenceValue
impl Debug for EcucReferenceValue
Source§impl From<EcucReferenceValue> for Element
impl From<EcucReferenceValue> for Element
Source§fn from(val: EcucReferenceValue) -> Self
fn from(val: EcucReferenceValue) -> Self
Source§impl Hash for EcucReferenceValue
impl Hash for EcucReferenceValue
Source§impl PartialEq for EcucReferenceValue
impl PartialEq for EcucReferenceValue
Source§impl TryFrom<Element> for EcucReferenceValue
impl TryFrom<Element> for EcucReferenceValue
impl Eq for EcucReferenceValue
impl StructuralPartialEq for EcucReferenceValue
Auto Trait Implementations§
impl Freeze for EcucReferenceValue
impl !RefUnwindSafe for EcucReferenceValue
impl Send for EcucReferenceValue
impl Sync for EcucReferenceValue
impl Unpin for EcucReferenceValue
impl !UnwindSafe for EcucReferenceValue
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
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
key
and return true
if they are equal.