pub struct EcucModuleConfigurationValues(/* private fields */);
Expand description
The EcucModuleConfigurationValues
is a container for the configuration of a single base software module
Implementations§
Source§impl EcucModuleConfigurationValues
impl EcucModuleConfigurationValues
Sourcepub fn set_definition(
&self,
module_definition: &EcucModuleDef,
) -> Result<(), AutosarAbstractionError>
pub fn set_definition( &self, module_definition: &EcucModuleDef, ) -> Result<(), AutosarAbstractionError>
set the module definition reference
Sourcepub fn definition(&self) -> Option<EcucModuleDef>
pub fn definition(&self) -> Option<EcucModuleDef>
get the module definition
This function returns the definition as an EcucModuleDef
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_container_value<T: AbstractEcucContainerDef>(
&self,
name: &str,
definition: &T,
) -> Result<EcucContainerValue, AutosarAbstractionError>
pub fn create_container_value<T: AbstractEcucContainerDef>( &self, name: &str, definition: &T, ) -> Result<EcucContainerValue, AutosarAbstractionError>
Create a new EcucContainerValue
in the module configuration
Sourcepub fn container_values(
&self,
) -> impl Iterator<Item = EcucContainerValue> + Send + 'static
pub fn container_values( &self, ) -> impl Iterator<Item = EcucContainerValue> + Send + 'static
create an iterator over the container values in the module configuration
Trait Implementations§
Source§impl Clone for EcucModuleConfigurationValues
impl Clone for EcucModuleConfigurationValues
Source§fn clone(&self) -> EcucModuleConfigurationValues
fn clone(&self) -> EcucModuleConfigurationValues
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 From<EcucModuleConfigurationValues> for Element
impl From<EcucModuleConfigurationValues> for Element
Source§fn from(val: EcucModuleConfigurationValues) -> Self
fn from(val: EcucModuleConfigurationValues) -> Self
Converts to this type from the input type.
Source§impl Hash for EcucModuleConfigurationValues
impl Hash for EcucModuleConfigurationValues
Source§impl PartialEq for EcucModuleConfigurationValues
impl PartialEq for EcucModuleConfigurationValues
Source§fn eq(&self, other: &EcucModuleConfigurationValues) -> bool
fn eq(&self, other: &EcucModuleConfigurationValues) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Eq for EcucModuleConfigurationValues
impl StructuralPartialEq for EcucModuleConfigurationValues
Auto Trait Implementations§
impl Freeze for EcucModuleConfigurationValues
impl !RefUnwindSafe for EcucModuleConfigurationValues
impl Send for EcucModuleConfigurationValues
impl Sync for EcucModuleConfigurationValues
impl Unpin for EcucModuleConfigurationValues
impl !UnwindSafe for EcucModuleConfigurationValues
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.