pub struct Unit(/* private fields */);
Expand description
Unit
represents a unit of measurement.
Use ArPackage::create_unit
to create a new unit.
Implementations§
Source§impl Unit
impl Unit
Sourcepub fn set_display_name(
&self,
display_name: Option<&str>,
) -> Result<(), AutosarAbstractionError>
pub fn set_display_name( &self, display_name: Option<&str>, ) -> Result<(), AutosarAbstractionError>
Set the display name of the unit
Sourcepub fn display_name(&self) -> Option<String>
pub fn display_name(&self) -> Option<String>
Get the display name of the unit
Trait Implementations§
Source§impl AbstractionElement for Unit
impl AbstractionElement for Unit
impl Eq for Unit
impl StructuralPartialEq for Unit
Auto Trait Implementations§
impl Freeze for Unit
impl !RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin for Unit
impl !UnwindSafe for Unit
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.