[−][src]Struct heim_disk::Ratio
Ratio measurement unit.
It is dimensionless and represents the value in the [0.0 … 1.0]
range
Methods
impl Ratio
[src]
pub fn new(inner: f32) -> Ratio
[src]
Creates a new type instance with a inner
value.
pub fn get(self) -> f32
[src]
Consumes the type instance and returns inner value.
Trait Implementations
impl AsMut<f32> for Ratio
[src]
impl Debug for Ratio
[src]
impl Clone for Ratio
[src]
fn clone(&self) -> Ratio
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<Ratio> for Ratio
[src]
impl PartialOrd<Ratio> for Ratio
[src]
fn partial_cmp(&self, other: &Ratio) -> Option<Ordering>
[src]
fn lt(&self, other: &Ratio) -> bool
[src]
fn le(&self, other: &Ratio) -> bool
[src]
fn gt(&self, other: &Ratio) -> bool
[src]
fn ge(&self, other: &Ratio) -> bool
[src]
impl AsRef<f32> for Ratio
[src]
impl Div<f32> for Ratio
[src]
type Output = Ratio
The resulting type after applying the /
operator.
fn div(self, other: f32) -> <Ratio as Div<f32>>::Output
[src]
impl Div<Ratio> for Ratio
[src]
type Output = Ratio
The resulting type after applying the /
operator.
fn div(self, other: Ratio) -> <Ratio as Div<Ratio>>::Output
[src]
impl Add<f32> for Ratio
[src]
type Output = Ratio
The resulting type after applying the +
operator.
fn add(self, other: f32) -> <Ratio as Add<f32>>::Output
[src]
impl Add<Ratio> for Ratio
[src]
type Output = Ratio
The resulting type after applying the +
operator.
fn add(self, other: Ratio) -> <Ratio as Add<Ratio>>::Output
[src]
impl Sub<f32> for Ratio
[src]
type Output = Ratio
The resulting type after applying the -
operator.
fn sub(self, other: f32) -> <Ratio as Sub<f32>>::Output
[src]
impl Sub<Ratio> for Ratio
[src]
type Output = Ratio
The resulting type after applying the -
operator.
fn sub(self, other: Ratio) -> <Ratio as Sub<Ratio>>::Output
[src]
impl Default for Ratio
[src]
impl Copy for Ratio
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,