pub enum DefinitionKind {
Unit,
Prefix,
Function,
Table,
Alias,
}Expand description
The kind of a definition entry in the GNU units database.
Variants§
Unit
A plain unit (e.g. meter, second).
Prefix
A unit prefix (e.g. kilo-, mega-).
Function
A conversion function (e.g. tempC(x)).
Table
A piecewise unit table (e.g. dBV[...]).
Alias
A unit list alias (defined via !unitlist).
Trait Implementations§
Source§impl Clone for DefinitionKind
impl Clone for DefinitionKind
Source§fn clone(&self) -> DefinitionKind
fn clone(&self) -> DefinitionKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DefinitionKind
impl Debug for DefinitionKind
Source§impl Ord for DefinitionKind
impl Ord for DefinitionKind
Source§fn cmp(&self, other: &DefinitionKind) -> Ordering
fn cmp(&self, other: &DefinitionKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DefinitionKind
impl PartialEq for DefinitionKind
Source§fn eq(&self, other: &DefinitionKind) -> bool
fn eq(&self, other: &DefinitionKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DefinitionKind
impl PartialOrd for DefinitionKind
impl Eq for DefinitionKind
impl StructuralPartialEq for DefinitionKind
Auto Trait Implementations§
impl Freeze for DefinitionKind
impl RefUnwindSafe for DefinitionKind
impl Send for DefinitionKind
impl Sync for DefinitionKind
impl Unpin for DefinitionKind
impl UnsafeUnpin for DefinitionKind
impl UnwindSafe for DefinitionKind
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