pub enum Length {
}Variants§
Meter
Centimeter
Kilometer
Inch
Foot
Yard
Mile
Mil
Point
NauticalMile
Fermi
Micron
AstroUnit
LightYear
LightMinute
LightSecond
LightDay
Parsec
Millimeter
Micrometer
Nanometer
Angstrom
Megaparsec
Gigaparsec
Custom(f64, Box<Length>)
Implementations§
Source§impl Length
impl Length
pub fn convert_to(self, to: Self) -> Self
pub fn to_meters(&self) -> f64
Source§impl Length
impl Length
pub fn per_time_squared(&self, time1: Time, time2: Time) -> Acceleration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Length
impl RefUnwindSafe for Length
impl Send for Length
impl Sync for Length
impl Unpin for Length
impl UnwindSafe for Length
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