pub struct EcucContainerValue(/* private fields */);
Expand description
The EcucContainerValue
is a container in the ECU configuration
Implementations§
Source§impl EcucContainerValue
impl EcucContainerValue
Sourcepub fn set_definition<T: AbstractEcucContainerDef>(
&self,
definition: &T,
) -> Result<(), AutosarAbstractionError>
pub fn set_definition<T: AbstractEcucContainerDef>( &self, definition: &T, ) -> Result<(), AutosarAbstractionError>
set the container definition reference
Sourcepub fn definition(&self) -> Option<EcucContainerDef>
pub fn definition(&self) -> Option<EcucContainerDef>
get the container definition
This function returns the definition as an EcucContainerDef
object.
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 definition reference 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 create_sub_container<T: AbstractEcucContainerDef>(
&self,
name: &str,
definition: &T,
) -> Result<EcucContainerValue, AutosarAbstractionError>
pub fn create_sub_container<T: AbstractEcucContainerDef>( &self, name: &str, definition: &T, ) -> Result<EcucContainerValue, AutosarAbstractionError>
create a sub-container
Sourcepub fn sub_containers(
&self,
) -> impl Iterator<Item = EcucContainerValue> + Send + 'static
pub fn sub_containers( &self, ) -> impl Iterator<Item = EcucContainerValue> + Send + 'static
iterate over the sub-containers in this container
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 container
If the container definition has requiresIndex
set to true
, then the container
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 container
If the container definition has requiresIndex
set to true
, then the container
must have an index. Otherwise the index is meaningless.
Sourcepub fn create_numerical_param_value<T: EcucParamDef>(
&self,
definition: &T,
value: &str,
) -> Result<EcucNumericalParamValue, AutosarAbstractionError>
pub fn create_numerical_param_value<T: EcucParamDef>( &self, definition: &T, value: &str, ) -> Result<EcucNumericalParamValue, AutosarAbstractionError>
create a new EcucNumericalParamValue
in the container
Sourcepub fn create_textual_param_value<T: EcucParamDef>(
&self,
definition: &T,
value: &str,
) -> Result<EcucTextualParamValue, AutosarAbstractionError>
pub fn create_textual_param_value<T: EcucParamDef>( &self, definition: &T, value: &str, ) -> Result<EcucTextualParamValue, AutosarAbstractionError>
create a new EcucTextualParamValue
in the container
Sourcepub fn create_add_info_param_value(
&self,
definition: &EcucAddInfoParamDef,
) -> Result<EcucAddInfoParamValue, AutosarAbstractionError>
pub fn create_add_info_param_value( &self, definition: &EcucAddInfoParamDef, ) -> Result<EcucAddInfoParamValue, AutosarAbstractionError>
create a new EcucAddInfoParamValue
in the container
Sourcepub fn parameter_values(
&self,
) -> impl Iterator<Item = EcucParameterValue> + Send + 'static
pub fn parameter_values( &self, ) -> impl Iterator<Item = EcucParameterValue> + Send + 'static
iterate over the parameter values in the container
Sourcepub fn create_instance_reference(
&self,
definition: &EcucInstanceReferenceDef,
target_context: &[&Element],
target: &Element,
) -> Result<EcucInstanceReferenceValue, AutosarAbstractionError>
pub fn create_instance_reference( &self, definition: &EcucInstanceReferenceDef, target_context: &[&Element], target: &Element, ) -> Result<EcucInstanceReferenceValue, AutosarAbstractionError>
create a new instance reference value in the container
Sourcepub fn create_reference_value<T: AbstractEcucReferenceDef>(
&self,
definition: &T,
target: &Element,
) -> Result<EcucReferenceValue, AutosarAbstractionError>
pub fn create_reference_value<T: AbstractEcucReferenceDef>( &self, definition: &T, target: &Element, ) -> Result<EcucReferenceValue, AutosarAbstractionError>
create a new reference value in the container
Sourcepub fn reference_values(
&self,
) -> impl Iterator<Item = EcucAnyReferenceValue> + Send + 'static
pub fn reference_values( &self, ) -> impl Iterator<Item = EcucAnyReferenceValue> + Send + 'static
iterate over the reference values in the container
Trait Implementations§
Source§impl Clone for EcucContainerValue
impl Clone for EcucContainerValue
Source§fn clone(&self) -> EcucContainerValue
fn clone(&self) -> EcucContainerValue
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for EcucContainerValue
impl Debug for EcucContainerValue
Source§impl From<EcucContainerValue> for Element
impl From<EcucContainerValue> for Element
Source§fn from(val: EcucContainerValue) -> Self
fn from(val: EcucContainerValue) -> Self
Source§impl Hash for EcucContainerValue
impl Hash for EcucContainerValue
Source§impl PartialEq for EcucContainerValue
impl PartialEq for EcucContainerValue
Source§impl TryFrom<Element> for EcucContainerValue
impl TryFrom<Element> for EcucContainerValue
impl Eq for EcucContainerValue
impl StructuralPartialEq for EcucContainerValue
Auto Trait Implementations§
impl Freeze for EcucContainerValue
impl !RefUnwindSafe for EcucContainerValue
impl Send for EcucContainerValue
impl Sync for EcucContainerValue
impl Unpin for EcucContainerValue
impl !UnwindSafe for EcucContainerValue
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.