#[repr(transparent)]pub struct DistortionScale(pub u32);Expand description
Fixed point arithmetic version of distortion scale
Tuple Fields§
§0: u32Implementations§
Trait Implementations§
Source§impl Clone for DistortionScale
 
impl Clone for DistortionScale
Source§fn clone(&self) -> DistortionScale
 
fn clone(&self) -> DistortionScale
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for DistortionScale
 
impl Debug for DistortionScale
Source§impl Default for DistortionScale
 
impl Default for DistortionScale
Source§impl From<DistortionScale> for f64
 
impl From<DistortionScale> for f64
Source§fn from(scale: DistortionScale) -> Self
 
fn from(scale: DistortionScale) -> Self
Converts to this type from the input type.
Source§impl From<f64> for DistortionScale
 
impl From<f64> for DistortionScale
Source§impl Mul<DistortionScale> for Distortion
 
impl Mul<DistortionScale> for Distortion
Source§type Output = ScaledDistortion
 
type Output = ScaledDistortion
The resulting type after applying the 
* operator.Source§fn mul(self, rhs: DistortionScale) -> ScaledDistortion
 
fn mul(self, rhs: DistortionScale) -> ScaledDistortion
Performs the 
* operation. Read moreSource§impl Mul<DistortionScale> for RawDistortion
 
impl Mul<DistortionScale> for RawDistortion
Source§type Output = Distortion
 
type Output = Distortion
The resulting type after applying the 
* operator.Source§fn mul(self, rhs: DistortionScale) -> Distortion
 
fn mul(self, rhs: DistortionScale) -> Distortion
Performs the 
* operation. Read moreSource§impl Mul for DistortionScale
 
impl Mul for DistortionScale
Source§impl MulAssign for DistortionScale
 
impl MulAssign for DistortionScale
Source§fn mul_assign(&mut self, rhs: Self)
 
fn mul_assign(&mut self, rhs: Self)
Performs the 
*= operation. Read moreimpl Copy for DistortionScale
Auto Trait Implementations§
impl Freeze for DistortionScale
impl RefUnwindSafe for DistortionScale
impl Send for DistortionScale
impl Sync for DistortionScale
impl Unpin for DistortionScale
impl UnwindSafe for DistortionScale
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more