pub struct CompuScale(/* private fields */);
Expand description
A CompuScale
describes the conversion between physical and internal values, as well as the limits of the scale
Implementations§
Source§impl CompuScale
impl CompuScale
Sourcepub fn lower_limit(&self) -> Option<f64>
pub fn lower_limit(&self) -> Option<f64>
get the lower limit of the CompuScale
Sourcepub fn upper_limit(&self) -> Option<f64>
pub fn upper_limit(&self) -> Option<f64>
get the upper limit of the CompuScale
Sourcepub fn set_mask(&self, mask: u64) -> Result<(), AutosarAbstractionError>
pub fn set_mask(&self, mask: u64) -> Result<(), AutosarAbstractionError>
Set the mask of the CompuScale
, applicable for BitfieldTextTable
Sourcepub fn mask(&self) -> Option<u64>
pub fn mask(&self) -> Option<u64>
Get the mask of the CompuScale
, applicable for BitfieldTextTable
Sourcepub fn set_content(
&self,
content: CompuScaleContent,
) -> Result<(), AutosarAbstractionError>
pub fn set_content( &self, content: CompuScaleContent, ) -> Result<(), AutosarAbstractionError>
Set the content of the CompuScale
Sourcepub fn content(&self) -> Option<CompuScaleContent>
pub fn content(&self) -> Option<CompuScaleContent>
Get the content of the CompuScale
Trait Implementations§
Source§impl AbstractionElement for CompuScale
impl AbstractionElement for CompuScale
Source§impl Clone for CompuScale
impl Clone for CompuScale
Source§fn clone(&self) -> CompuScale
fn clone(&self) -> CompuScale
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 CompuScale
impl Debug for CompuScale
Source§impl From<CompuScale> for Element
impl From<CompuScale> for Element
Source§fn from(val: CompuScale) -> Self
fn from(val: CompuScale) -> Self
Converts to this type from the input type.
Source§impl Hash for CompuScale
impl Hash for CompuScale
Source§impl PartialEq for CompuScale
impl PartialEq for CompuScale
Source§impl TryFrom<Element> for CompuScale
impl TryFrom<Element> for CompuScale
impl Eq for CompuScale
impl StructuralPartialEq for CompuScale
Auto Trait Implementations§
impl Freeze for CompuScale
impl !RefUnwindSafe for CompuScale
impl Send for CompuScale
impl Sync for CompuScale
impl Unpin for CompuScale
impl !UnwindSafe for CompuScale
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.