pub trait EcucDefinitionElement: AbstractionElement {
// Provided methods
fn set_lower_multiplicity(
&self,
lower_multiplicity: Option<u32>,
) -> Result<(), AutosarAbstractionError> { ... }
fn lower_multiplicity(&self) -> Option<u32> { ... }
fn set_upper_multiplicity(
&self,
upper_multiplicity: Option<u32>,
) -> Result<(), AutosarAbstractionError> { ... }
fn upper_multiplicity(&self) -> Option<u32> { ... }
fn set_upper_multiplicity_infinite(
&self,
infinite: Option<bool>,
) -> Result<(), AutosarAbstractionError> { ... }
fn upper_multiplicity_infinite(&self) -> Option<bool> { ... }
}
Expand description
EcucDefinitionElement
provides methods to modify attributes that are shared by all elements of the ecuc definition
Provided Methods§
Sourcefn 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
Sourcefn lower_multiplicity(&self) -> Option<u32>
fn lower_multiplicity(&self) -> Option<u32>
get the lower multiplicity attribute
Sourcefn 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
Sourcefn upper_multiplicity(&self) -> Option<u32>
fn upper_multiplicity(&self) -> Option<u32>
get the upper multiplicity attribute
Sourcefn 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
if this attribute is set to true, the upper multiplicity is infinite (i.e. the module definition can be used an arbitrary number of times) When this attribute is true, the upper multiplicity attribute automatically removed.
Sourcefn upper_multiplicity_infinite(&self) -> Option<bool>
fn upper_multiplicity_infinite(&self) -> Option<bool>
get the upper multiplicity infinite attribute
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.