[][src]Struct uno::Unorm16

#[repr(transparent)]pub struct Unorm16(_);

Implementations

impl Unorm16[src]

pub const fn from_inner(inner: u16) -> Self[src]

pub const fn zero() -> Self[src]

pub const fn one() -> Self[src]

pub const fn min_value() -> Self[src]

pub const fn max_value() -> Self[src]

pub const fn epsilon() -> Self[src]

pub fn from_denominator(denominator: u16) -> Self[src]

pub fn try_from_float<F: Float>(f: F) -> Result<Self, FloatToUnormError<F>>[src]

pub fn from_float<F: Float>(f: F) -> Self[src]

pub fn from_float_clamped<F: Float>(f: F) -> Self[src]

pub const fn to_inner(self) -> u16[src]

pub fn to_float<F: Float>(self) -> F[src]

pub fn saturating_add(self, other: Self) -> Self[src]

pub fn saturating_mul(self, other: Self) -> Self[src]

pub fn saturating_pow(self, other: u32) -> Self[src]

pub fn saturating_sub(self, other: Self) -> Self[src]

pub fn wrapping_add(self, other: Self) -> Self[src]

pub fn wrapping_div(self, other: Self) -> Self[src]

pub fn wrapping_mul(self, other: Self) -> Self[src]

pub fn wrapping_neg(self) -> Self[src]

pub fn wrapping_pow(self, other: u32) -> Self[src]

pub fn wrapping_rem(self, other: Self) -> Self[src]

pub fn wrapping_shl(self, other: u32) -> Self[src]

pub fn wrapping_shr(self, other: u32) -> Self[src]

pub fn wrapping_sub(self, other: Self) -> Self[src]

Trait Implementations

impl<'_> Add<&'_ Unorm16> for Unorm16[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<Unorm16> for Unorm16[src]

type Output = Self

The resulting type after applying the + operator.

impl<'_> AddAssign<&'_ Unorm16> for Unorm16[src]

impl AddAssign<Unorm16> for Unorm16[src]

impl Bounded for Unorm16[src]

impl Clone for Unorm16[src]

impl Copy for Unorm16[src]

impl Debug for Unorm16[src]

impl Default for Unorm16[src]

impl Display for Unorm16[src]

impl<'_> Div<&'_ Unorm16> for Unorm16[src]

type Output = Self

The resulting type after applying the / operator.

impl Div<Unorm16> for Unorm16[src]

type Output = Self

The resulting type after applying the / operator.

impl<'_> DivAssign<&'_ Unorm16> for Unorm16[src]

impl DivAssign<Unorm16> for Unorm16[src]

impl Eq for Unorm16[src]

impl From<Unorm16> for Unorm32[src]

impl From<Unorm16> for Unorm64[src]

impl From<Unorm8> for Unorm16[src]

impl From<u16> for Unorm16[src]

impl Hash for Unorm16[src]

impl Into<u16> for Unorm16[src]

impl<'_> Mul<&'_ Unorm16> for Unorm16[src]

type Output = Self

The resulting type after applying the * operator.

impl Mul<Unorm16> for Unorm16[src]

type Output = Self

The resulting type after applying the * operator.

impl<'_> MulAssign<&'_ Unorm16> for Unorm16[src]

impl MulAssign<Unorm16> for Unorm16[src]

impl Num for Unorm16[src]

type FromStrRadixErr = <u16 as Num>::FromStrRadixErr

impl NumCast for Unorm16[src]

impl One for Unorm16[src]

impl Ord for Unorm16[src]

impl PartialEq<Unorm16> for Unorm16[src]

impl PartialOrd<Unorm16> for Unorm16[src]

impl<'_> Rem<&'_ Unorm16> for Unorm16[src]

type Output = Self

The resulting type after applying the % operator.

impl Rem<Unorm16> for Unorm16[src]

type Output = Self

The resulting type after applying the % operator.

impl<'_> RemAssign<&'_ Unorm16> for Unorm16[src]

impl RemAssign<Unorm16> for Unorm16[src]

impl StructuralEq for Unorm16[src]

impl StructuralPartialEq for Unorm16[src]

impl<'_> Sub<&'_ Unorm16> for Unorm16[src]

type Output = Self

The resulting type after applying the - operator.

impl Sub<Unorm16> for Unorm16[src]

type Output = Self

The resulting type after applying the - operator.

impl<'_> SubAssign<&'_ Unorm16> for Unorm16[src]

impl SubAssign<Unorm16> for Unorm16[src]

impl ToPrimitive for Unorm16[src]

impl TryFrom<f32> for Unorm16[src]

type Error = FloatToUnormError<f32>

The type returned in the event of a conversion error.

impl TryFrom<f64> for Unorm16[src]

type Error = FloatToUnormError<f64>

The type returned in the event of a conversion error.

impl Unsigned for Unorm16[src]

impl Zero for Unorm16[src]

Auto Trait Implementations

impl RefUnwindSafe for Unorm16

impl Send for Unorm16

impl Sync for Unorm16

impl Unpin for Unorm16

impl UnwindSafe for Unorm16

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Max for T where
    T: PartialOrd<T>, 
[src]

impl<T> Min for T where
    T: PartialOrd<T>, 
[src]

impl<T> Num for T where
    T: Copy + Debug + Max + Min + Num + NumCast + NumRef
[src]

impl<T> NumAssign for T where
    T: Num + NumAssignOps<T>, 
[src]

impl<T, Rhs> NumAssignOps<Rhs> for T where
    T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>, 
[src]

impl<T> NumAssignRef for T where
    T: NumAssign + for<'r> NumAssignOps<&'r T>, 
[src]

impl<T, Rhs, Output> NumOps<Rhs, Output> for T where
    T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>, 
[src]

impl<T> NumRef for T where
    T: Num + for<'r> NumOps<&'r T, T>, 
[src]

impl<T, Base> RefNum<Base> for T where
    T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.