pub enum Meaning {
Plain,
Delta(DeltaKind),
Time,
Length(LengthKind),
Area(AreaKind),
Volume(VolumeKind),
Speed(SpeedKind),
Mass(MassKind),
Temp(TempKind),
Data(DataKind),
}Variants§
Plain
Delta(DeltaKind)
Time
Length(LengthKind)
Area(AreaKind)
Volume(VolumeKind)
Speed(SpeedKind)
Mass(MassKind)
Temp(TempKind)
Data(DataKind)
Implementations§
Source§impl Meaning
impl Meaning
pub fn get_meanings() -> MyResult<Meanings>
pub fn get_symbol(&self) -> Option<String>
pub fn undo_meaning(self, number: &BigRational) -> Cow<'_, BigRational>
pub fn redo_meaning(self, number: &BigRational) -> Cow<'_, BigRational>
pub fn select_only_plain(self) -> Result<(), EngineError>
pub fn select_not_time(self) -> Result<(), EngineError>
pub fn combine_cast_value(lhs: Self, rhs: Self) -> Option<Self>
pub fn combine_add_time(lhs: Self, rhs: Self) -> Option<Self>
pub fn combine_sub_time(lhs: Self, rhs: Self) -> Option<Self>
pub fn combine_mul_unit(lhs: Self, rhs: Self) -> Option<Self>
pub fn combine_div_unit(lhs: Self, rhs: Self) -> Option<Self>
pub fn combine_copy_left(lhs: Self, rhs: Self) -> Option<Self>
pub fn combine_copy_right(lhs: Self, rhs: Self) -> Option<Self>
pub fn combine_copy_same(lhs: Self, rhs: Self) -> Option<Self>
pub fn combine_only_plain(lhs: Self, rhs: Self) -> Option<Self>
Trait Implementations§
impl Copy for Meaning
impl StructuralPartialEq for Meaning
Auto Trait Implementations§
impl Freeze for Meaning
impl RefUnwindSafe for Meaning
impl Send for Meaning
impl Sync for Meaning
impl Unpin for Meaning
impl UnwindSafe for Meaning
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more