pub struct EcucFunctionNameDef(/* private fields */);
Expand description
EcucFunctionNameDef
is used to specify a function name parameter in the ECU configuration
Trait Implementations§
Source§impl Clone for EcucFunctionNameDef
impl Clone for EcucFunctionNameDef
Source§fn clone(&self) -> EcucFunctionNameDef
fn clone(&self) -> EcucFunctionNameDef
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 EcucFunctionNameDef
impl Debug for EcucFunctionNameDef
Source§impl EcucAbstractStringParamDef for EcucFunctionNameDef
impl EcucAbstractStringParamDef for EcucFunctionNameDef
Source§fn max_length(&self) -> Option<u32>
fn max_length(&self) -> Option<u32>
get the max length attribute
Source§fn set_min_length(
&self,
min_length: Option<u32>,
) -> Result<(), AutosarAbstractionError>
fn set_min_length( &self, min_length: Option<u32>, ) -> Result<(), AutosarAbstractionError>
set or remove the min length attribute
Source§fn min_length(&self) -> Option<u32>
fn min_length(&self) -> Option<u32>
get the min length attribute
Source§fn set_regular_expression(
&self,
regular_expression: Option<&str>,
) -> Result<(), AutosarAbstractionError>
fn set_regular_expression( &self, regular_expression: Option<&str>, ) -> Result<(), AutosarAbstractionError>
set or remove the regular expression attribute The regular expression is a string that is used to validate the string parameter
Source§fn regular_expression(&self) -> Option<String>
fn regular_expression(&self) -> Option<String>
get the regular expression attribute The regular expression is a string that is used to validate the string parameter
Source§fn set_default_value(
&self,
default_value: Option<&str>,
) -> Result<(), AutosarAbstractionError>
fn set_default_value( &self, default_value: Option<&str>, ) -> Result<(), AutosarAbstractionError>
set or remove the default value attribute
Source§fn default_value(&self) -> Option<String>
fn default_value(&self) -> Option<String>
get the default value attribute
Source§fn set_max_length(
&self,
max_length: Option<u32>,
) -> Result<(), AutosarAbstractionError>
fn set_max_length( &self, max_length: Option<u32>, ) -> Result<(), AutosarAbstractionError>
set or remove the max length attribute
Source§impl EcucCommonAttributes for EcucFunctionNameDef
impl EcucCommonAttributes for EcucFunctionNameDef
Source§fn set_multiplicity_config_classes(
&self,
config: &[(EcucConfigurationClass, EcucConfigurationVariant)],
) -> Result<(), AutosarAbstractionError>
fn set_multiplicity_config_classes( &self, config: &[(EcucConfigurationClass, EcucConfigurationVariant)], ) -> Result<(), AutosarAbstractionError>
set the multiplicity config classes of the parameter definition.
If an empty list is provided, the multiplicity config classes are removed. Read more
Source§fn multiplicity_config_classes(
&self,
) -> Vec<(EcucConfigurationClass, EcucConfigurationVariant)>
fn multiplicity_config_classes( &self, ) -> Vec<(EcucConfigurationClass, EcucConfigurationVariant)>
get the multiplicity config classes of the parameter definition
Source§fn set_origin(&self, origin: &str) -> Result<(), AutosarAbstractionError>
fn set_origin(&self, origin: &str) -> Result<(), AutosarAbstractionError>
set the origin of the parameter definition Read more
Source§fn set_post_build_variant_multiplicity(
&self,
post_build_variant_multiplicity: Option<bool>,
) -> Result<(), AutosarAbstractionError>
fn set_post_build_variant_multiplicity( &self, post_build_variant_multiplicity: Option<bool>, ) -> Result<(), AutosarAbstractionError>
set or remove the postBuildVariantMultiplicity attribute Read more
Source§fn post_build_variant_multiplicity(&self) -> Option<bool>
fn post_build_variant_multiplicity(&self) -> Option<bool>
get the postBuildVariantMultiplicity attribute Read more
Source§fn set_post_build_variant_value(
&self,
post_build_variant_value: Option<bool>,
) -> Result<(), AutosarAbstractionError>
fn set_post_build_variant_value( &self, post_build_variant_value: Option<bool>, ) -> Result<(), AutosarAbstractionError>
set or remove the postBuildVariantValue attribute Read more
Source§fn post_build_variant_value(&self) -> Option<bool>
fn post_build_variant_value(&self) -> Option<bool>
get the postBuildVariantValue attribute Read more
Source§fn set_requires_index(
&self,
requires_index: Option<bool>,
) -> Result<(), AutosarAbstractionError>
fn set_requires_index( &self, requires_index: Option<bool>, ) -> Result<(), AutosarAbstractionError>
set or remove the requiresIndex attribute
Source§fn requires_index(&self) -> Option<bool>
fn requires_index(&self) -> Option<bool>
get the requiresIndex attribute
Source§fn set_value_config_classes(
&self,
config: &[(EcucConfigurationClass, EcucConfigurationVariant)],
) -> Result<(), AutosarAbstractionError>
fn set_value_config_classes( &self, config: &[(EcucConfigurationClass, EcucConfigurationVariant)], ) -> Result<(), AutosarAbstractionError>
set the value config classes of the parameter definition. Read more
Source§fn value_config_classes(
&self,
) -> Vec<(EcucConfigurationClass, EcucConfigurationVariant)>
fn value_config_classes( &self, ) -> Vec<(EcucConfigurationClass, EcucConfigurationVariant)>
get the value config classes of the parameter definition Read more
Source§fn set_with_auto(
&self,
with_auto: Option<bool>,
) -> Result<(), AutosarAbstractionError>
fn set_with_auto( &self, with_auto: Option<bool>, ) -> Result<(), AutosarAbstractionError>
set or remove the withAuto attribute Read more
Source§impl EcucDefinitionElement for EcucFunctionNameDef
impl EcucDefinitionElement for EcucFunctionNameDef
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<EcucFunctionNameDef> for Element
impl From<EcucFunctionNameDef> for Element
Source§fn from(val: EcucFunctionNameDef) -> Self
fn from(val: EcucFunctionNameDef) -> Self
Converts to this type from the input type.
Source§impl Hash for EcucFunctionNameDef
impl Hash for EcucFunctionNameDef
Source§impl PartialEq for EcucFunctionNameDef
impl PartialEq for EcucFunctionNameDef
Source§impl TryFrom<Element> for EcucFunctionNameDef
impl TryFrom<Element> for EcucFunctionNameDef
impl EcucParamDef for EcucFunctionNameDef
impl EcucTextualParamDef for EcucFunctionNameDef
impl Eq for EcucFunctionNameDef
impl StructuralPartialEq for EcucFunctionNameDef
Auto Trait Implementations§
impl Freeze for EcucFunctionNameDef
impl !RefUnwindSafe for EcucFunctionNameDef
impl Send for EcucFunctionNameDef
impl Sync for EcucFunctionNameDef
impl Unpin for EcucFunctionNameDef
impl !UnwindSafe for EcucFunctionNameDef
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.