pub struct Best {
pub val: f64,
pub unit: &'static str,
pub singular: &'static str,
pub plural: &'static str,
}Expand description
The best matching unit found by Conversion::to_best.
Fields§
§val: f64The converted value.
unit: &'static strThe chosen unit’s abbreviation.
singular: &'static strThe chosen unit’s singular name.
plural: &'static strThe chosen unit’s plural name.
Trait Implementations§
impl Copy for Best
impl StructuralPartialEq for Best
Auto Trait Implementations§
impl Freeze for Best
impl RefUnwindSafe for Best
impl Send for Best
impl Sync for Best
impl Unpin for Best
impl UnsafeUnpin for Best
impl UnwindSafe for Best
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