#[non_exhaustive]pub enum Units {
ratio(ratio),
part_per_hundred(part_per_hundred),
percent(percent),
part_per_thousand(part_per_thousand),
per_mille(per_mille),
part_per_ten_thousand(part_per_ten_thousand),
basis_point(basis_point),
part_per_million(part_per_million),
part_per_billion(part_per_billion),
part_per_trillion(part_per_trillion),
part_per_quadrillion(part_per_quadrillion),
}
Expand description
Unit enum.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ratio(ratio)
part_per_hundred(part_per_hundred)
parts per hundred
percent(percent)
percent
part_per_thousand(part_per_thousand)
parts per thousand
per_mille(per_mille)
per mille
part_per_ten_thousand(part_per_ten_thousand)
parts per ten thousand
basis_point(basis_point)
basis points
part_per_million(part_per_million)
parts per million
part_per_billion(part_per_billion)
parts per billion
part_per_trillion(part_per_trillion)
parts per trillion
part_per_quadrillion(part_per_quadrillion)
parts per quadrillion
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Units
impl RefUnwindSafe for Units
impl Send for Units
impl Sync for Units
impl Unpin for Units
impl UnwindSafe for Units
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