pub struct EcucChoiceContainerDef(/* private fields */);
Expand description
The EcucChoiceContainerDef
is used to define configuration containers
that provide a choice between several EcucParamConfContainerDef
Implementations§
Source§impl EcucChoiceContainerDef
impl EcucChoiceContainerDef
Sourcepub fn create_param_conf_container_def(
&self,
name: &str,
) -> Result<EcucParamConfContainerDef, AutosarAbstractionError>
pub fn create_param_conf_container_def( &self, name: &str, ) -> Result<EcucParamConfContainerDef, AutosarAbstractionError>
create a new EcucParamConfContainerDef
as one of the choices in this choice container
Sourcepub fn choices(
&self,
) -> impl Iterator<Item = EcucParamConfContainerDef> + Send + 'static
pub fn choices( &self, ) -> impl Iterator<Item = EcucParamConfContainerDef> + Send + 'static
iterate over the choices in the container
Trait Implementations§
Source§impl Clone for EcucChoiceContainerDef
impl Clone for EcucChoiceContainerDef
Source§fn clone(&self) -> EcucChoiceContainerDef
fn clone(&self) -> EcucChoiceContainerDef
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 EcucChoiceContainerDef
impl Debug for EcucChoiceContainerDef
Source§impl EcucDefinitionElement for EcucChoiceContainerDef
impl EcucDefinitionElement for EcucChoiceContainerDef
Source§fn set_lower_multiplicity(
&self,
lower_multiplicity: Option<u32>,
) -> Result<(), AutosarAbstractionError>
fn set_lower_multiplicity( &self, lower_multiplicity: Option<u32>, ) -> Result<(), AutosarAbstractionError>
set or remove the lower multiplicity attribute
Source§fn lower_multiplicity(&self) -> Option<u32>
fn lower_multiplicity(&self) -> Option<u32>
get the lower multiplicity attribute
Source§fn set_upper_multiplicity(
&self,
upper_multiplicity: Option<u32>,
) -> Result<(), AutosarAbstractionError>
fn set_upper_multiplicity( &self, upper_multiplicity: Option<u32>, ) -> Result<(), AutosarAbstractionError>
set or remove the upper multiplicity attribute
Source§fn upper_multiplicity(&self) -> Option<u32>
fn upper_multiplicity(&self) -> Option<u32>
get the upper multiplicity attribute
Source§fn set_upper_multiplicity_infinite(
&self,
infinite: Option<bool>,
) -> Result<(), AutosarAbstractionError>
fn set_upper_multiplicity_infinite( &self, infinite: Option<bool>, ) -> Result<(), AutosarAbstractionError>
set or remove the upper multiplicity infinite attribute Read more
Source§fn upper_multiplicity_infinite(&self) -> Option<bool>
fn upper_multiplicity_infinite(&self) -> Option<bool>
get the upper multiplicity infinite attribute
Source§impl From<EcucChoiceContainerDef> for Element
impl From<EcucChoiceContainerDef> for Element
Source§fn from(val: EcucChoiceContainerDef) -> Self
fn from(val: EcucChoiceContainerDef) -> Self
Converts to this type from the input type.
Source§impl Hash for EcucChoiceContainerDef
impl Hash for EcucChoiceContainerDef
Source§impl PartialEq for EcucChoiceContainerDef
impl PartialEq for EcucChoiceContainerDef
Source§impl TryFrom<Element> for EcucChoiceContainerDef
impl TryFrom<Element> for EcucChoiceContainerDef
impl AbstractEcucContainerDef for EcucChoiceContainerDef
impl Eq for EcucChoiceContainerDef
impl StructuralPartialEq for EcucChoiceContainerDef
Auto Trait Implementations§
impl Freeze for EcucChoiceContainerDef
impl !RefUnwindSafe for EcucChoiceContainerDef
impl Send for EcucChoiceContainerDef
impl Sync for EcucChoiceContainerDef
impl Unpin for EcucChoiceContainerDef
impl !UnwindSafe for EcucChoiceContainerDef
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.