pub struct Distance(/* private fields */);Implementations§
Source§impl Distance
impl Distance
pub fn from_megameters(meter: f64) -> Self
pub fn from_kilometers(meter: f64) -> Self
pub fn from_meters(meter: f64) -> Self
pub fn from_millimeters(meter: f64) -> Self
pub fn from_micrometers(meter: f64) -> Self
pub fn from_nanometers(meter: f64) -> Self
pub fn to_megameters(&self) -> f64
pub fn to_kilometers(&self) -> f64
pub fn to_meters(&self) -> f64
pub fn to_millimeters(&self) -> f64
pub fn to_micrometers(&self) -> f64
pub fn to_nanometers(&self) -> f64
pub fn to_str(&self) -> String
Trait Implementations§
impl StructuralPartialEq for Distance
Auto Trait Implementations§
impl Freeze for Distance
impl RefUnwindSafe for Distance
impl Send for Distance
impl Sync for Distance
impl Unpin for Distance
impl UnwindSafe for Distance
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