#[non_exhaustive]pub struct Measure<'a> {
pub number: Number,
pub unit: MeasureUnit<'a>,
pub flags: u32,
}Expand description
A number with a currency or a unit, and the options its function added.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.number: NumberThe number, with its resolved numeric options.
unit: MeasureUnit<'a>The currency or the unit.
flags: u32The resolving crate’s own encoding of the options it adds
(currencyDisplay, currencySign, fractionDigits, unitDisplay),
inherited by a later :currency / :unit that takes this value as
its operand. The runtime never reads it.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for Measure<'a>
impl<'a> !RefUnwindSafe for Measure<'a>
impl<'a> !Sync for Measure<'a>
impl<'a> Send for Measure<'a>
impl<'a> Unpin for Measure<'a>
impl<'a> UnsafeUnpin for Measure<'a>
impl<'a> UnwindSafe for Measure<'a>
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