pub struct CompuMethod(/* private fields */);
Expand description
A CompuMethod
describes the conversion between physical and internal values
Use ArPackage::create_compu_method
to create a new CompuMethod
Implementations§
Source§impl CompuMethod
impl CompuMethod
Sourcepub fn category(&self) -> Option<CompuMethodCategory>
pub fn category(&self) -> Option<CompuMethodCategory>
Get the category of the CompuMethod
Sourcepub fn set_content(
&self,
content: CompuMethodContent,
) -> Result<(), AutosarAbstractionError>
pub fn set_content( &self, content: CompuMethodContent, ) -> Result<(), AutosarAbstractionError>
Apply CompumethodContent
to the CompuMethod
This will remove any existing content
Sourcepub fn content(&self) -> Option<CompuMethodContent>
pub fn content(&self) -> Option<CompuMethodContent>
get the content of the CompuMethod
Sourcepub fn create_compu_scale(
&self,
direction: CompuScaleDirection,
lower_limit: Option<f64>,
upper_limit: Option<f64>,
) -> Result<CompuScale, AutosarAbstractionError>
pub fn create_compu_scale( &self, direction: CompuScaleDirection, lower_limit: Option<f64>, upper_limit: Option<f64>, ) -> Result<CompuScale, AutosarAbstractionError>
create a CompuScale
in the CompuMethod
Sourcepub fn int_to_phys_compu_scales(
&self,
) -> impl Iterator<Item = CompuScale> + Send + 'static
pub fn int_to_phys_compu_scales( &self, ) -> impl Iterator<Item = CompuScale> + Send + 'static
Create an iterator over the internal-to-physical CompuScales
Sourcepub fn phys_to_int_compu_scales(
&self,
) -> impl Iterator<Item = CompuScale> + Send + 'static
pub fn phys_to_int_compu_scales( &self, ) -> impl Iterator<Item = CompuScale> + Send + 'static
Create an iterator over the physical-to-internal CompuScales
Trait Implementations§
Source§impl AbstractionElement for CompuMethod
impl AbstractionElement for CompuMethod
Source§impl Clone for CompuMethod
impl Clone for CompuMethod
Source§fn clone(&self) -> CompuMethod
fn clone(&self) -> CompuMethod
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 CompuMethod
impl Debug for CompuMethod
Source§impl From<CompuMethod> for Element
impl From<CompuMethod> for Element
Source§fn from(val: CompuMethod) -> Self
fn from(val: CompuMethod) -> Self
Converts to this type from the input type.
Source§impl Hash for CompuMethod
impl Hash for CompuMethod
Source§impl PartialEq for CompuMethod
impl PartialEq for CompuMethod
Source§impl TryFrom<Element> for CompuMethod
impl TryFrom<Element> for CompuMethod
impl Eq for CompuMethod
impl StructuralPartialEq for CompuMethod
Auto Trait Implementations§
impl Freeze for CompuMethod
impl !RefUnwindSafe for CompuMethod
impl Send for CompuMethod
impl Sync for CompuMethod
impl Unpin for CompuMethod
impl !UnwindSafe for CompuMethod
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.