general_tools::conversions::length

Struct Lenght

Source
pub struct Lenght {
    pub lenght_type: String,
    pub value: f64,
}

Fields§

§lenght_type: String§value: f64

Implementations§

Source§

impl Lenght

Source

pub fn new() -> Lenght

Source

pub fn to_yoctometre(&self) -> f64

Source

pub fn to_zeptometre(&self) -> f64

Source

pub fn to_attometre(&self) -> f64

Source

pub fn to_femtometre(&self) -> f64

Source

pub fn to_picometre(&self) -> f64

Source

pub fn to_nanometre(&self) -> f64

Source

pub fn to_micrometre(&self) -> f64

Source

pub fn to_millimetre(&self) -> f64

Source

pub fn to_centimetre(&self) -> f64

Source

pub fn to_decimetre(&self) -> f64

Source

pub fn to_metre(&self) -> f64

Source

pub fn to_decametre(&self) -> f64

Source

pub fn to_hectometre(&self) -> f64

Source

pub fn to_kilometre(&self) -> f64

Source

pub fn to_megametre(&self) -> f64

Source

pub fn to_gigametre(&self) -> f64

Source

pub fn to_terametre(&self) -> f64

Source

pub fn to_petametre(&self) -> f64

Source

pub fn to_exametre(&self) -> f64

Source

pub fn to_zettametre(&self) -> f64

Source

pub fn to_yottametre(&self) -> f64

Source

pub fn to_mile(&self) -> f64

Source

pub fn to_yard(&self) -> f64

Source

pub fn to_foot(&self) -> f64

Source

pub fn to_inch(&self) -> f64

Source

pub fn to_light_year(&self) -> f64

Source

pub fn to_rod(&self) -> f64

Source

pub fn to_chain(&self) -> f64

Auto Trait Implementations§

§

impl Freeze for Lenght

§

impl RefUnwindSafe for Lenght

§

impl Send for Lenght

§

impl Sync for Lenght

§

impl Unpin for Lenght

§

impl UnwindSafe for Lenght

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.