Struct usvg::NormalizedValue
source · [−]pub struct NormalizedValue(_);
Expand description
A normalized value.
Just like f64
but immutable and guarantee to be in a 0..1 range.
Implementations
Trait Implementations
sourceimpl Clone for NormalizedValue
impl Clone for NormalizedValue
sourcefn clone(&self) -> NormalizedValue
fn clone(&self) -> NormalizedValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NormalizedValue
impl Debug for NormalizedValue
sourceimpl Default for NormalizedValue
impl Default for NormalizedValue
sourceimpl From<f64> for NormalizedValue
impl From<f64> for NormalizedValue
sourceimpl Mul<NormalizedValue> for NormalizedValue
impl Mul<NormalizedValue> for NormalizedValue
type Output = NormalizedValue
type Output = NormalizedValue
The resulting type after applying the *
operator.
sourcefn mul(self, rhs: NormalizedValue) -> Self::Output
fn mul(self, rhs: NormalizedValue) -> Self::Output
Performs the *
operation. Read more
sourceimpl PartialEq<NormalizedValue> for NormalizedValue
impl PartialEq<NormalizedValue> for NormalizedValue
impl Copy for NormalizedValue
Auto Trait Implementations
impl RefUnwindSafe for NormalizedValue
impl Send for NormalizedValue
impl Sync for NormalizedValue
impl Unpin for NormalizedValue
impl UnwindSafe for NormalizedValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IsDefault for T where
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for T where
T: Default + PartialEq<T> + Copy,
sourcefn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.