[−][src]Struct uno::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.
fn add(self, other: &Self) -> Self
[src]
impl Add<Unorm16> for Unorm16
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self
[src]
impl<'_> AddAssign<&'_ Unorm16> for Unorm16
[src]
fn add_assign(&mut self, other: &Self)
[src]
impl AddAssign<Unorm16> for Unorm16
[src]
fn add_assign(&mut self, other: Self)
[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.
fn div(self, other: &Self) -> Self
[src]
impl Div<Unorm16> for Unorm16
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, other: Self) -> Self
[src]
impl<'_> DivAssign<&'_ Unorm16> for Unorm16
[src]
fn div_assign(&mut self, other: &Self)
[src]
impl DivAssign<Unorm16> for Unorm16
[src]
fn div_assign(&mut self, other: Self)
[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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Into<u16> for Unorm16
[src]
impl<'_> Mul<&'_ Unorm16> for Unorm16
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: &Self) -> Self
[src]
impl Mul<Unorm16> for Unorm16
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: Self) -> Self
[src]
impl<'_> MulAssign<&'_ Unorm16> for Unorm16
[src]
fn mul_assign(&mut self, other: &Self)
[src]
impl MulAssign<Unorm16> for Unorm16
[src]
fn mul_assign(&mut self, other: Self)
[src]
impl Num for Unorm16
[src]
type FromStrRadixErr = <u16 as Num>::FromStrRadixErr
fn from_str_radix(s: &str, radix: u32) -> Result<Self, Self::FromStrRadixErr>
[src]
impl NumCast for Unorm16
[src]
fn from<T: ToPrimitive>(n: T) -> Option<Self>
[src]
impl One for Unorm16
[src]
impl Ord for Unorm16
[src]
fn cmp(&self, other: &Unorm16) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Unorm16> for Unorm16
[src]
impl PartialOrd<Unorm16> for Unorm16
[src]
fn partial_cmp(&self, other: &Unorm16) -> Option<Ordering>
[src]
fn lt(&self, other: &Unorm16) -> bool
[src]
fn le(&self, other: &Unorm16) -> bool
[src]
fn gt(&self, other: &Unorm16) -> bool
[src]
fn ge(&self, other: &Unorm16) -> bool
[src]
impl<'_> Rem<&'_ Unorm16> for Unorm16
[src]
type Output = Self
The resulting type after applying the %
operator.
fn rem(self, other: &Self) -> Self
[src]
impl Rem<Unorm16> for Unorm16
[src]
type Output = Self
The resulting type after applying the %
operator.
fn rem(self, other: Self) -> Self
[src]
impl<'_> RemAssign<&'_ Unorm16> for Unorm16
[src]
fn rem_assign(&mut self, other: &Self)
[src]
impl RemAssign<Unorm16> for Unorm16
[src]
fn rem_assign(&mut self, other: Self)
[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.
fn sub(self, other: &Self) -> Self
[src]
impl Sub<Unorm16> for Unorm16
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Self
[src]
impl<'_> SubAssign<&'_ Unorm16> for Unorm16
[src]
fn sub_assign(&mut self, other: &Self)
[src]
impl SubAssign<Unorm16> for Unorm16
[src]
fn sub_assign(&mut self, other: Self)
[src]
impl ToPrimitive for Unorm16
[src]
fn to_i64(&self) -> Option<i64>
[src]
fn to_u64(&self) -> Option<u64>
[src]
fn to_isize(&self) -> Option<isize>
[src]
fn to_i8(&self) -> Option<i8>
[src]
fn to_i16(&self) -> Option<i16>
[src]
fn to_i32(&self) -> Option<i32>
[src]
fn to_i128(&self) -> Option<i128>
[src]
fn to_usize(&self) -> Option<usize>
[src]
fn to_u8(&self) -> Option<u8>
[src]
fn to_u16(&self) -> Option<u16>
[src]
fn to_u32(&self) -> Option<u32>
[src]
fn to_u128(&self) -> Option<u128>
[src]
fn to_f32(&self) -> Option<f32>
[src]
fn to_f64(&self) -> Option<f64>
[src]
impl TryFrom<f32> for Unorm16
[src]
type Error = FloatToUnormError<f32>
The type returned in the event of a conversion error.
fn try_from(f: f32) -> Result<Self, Self::Error>
[src]
impl TryFrom<f64> for Unorm16
[src]
type Error = FloatToUnormError<f64>
The type returned in the event of a conversion error.
fn try_from(f: f64) -> Result<Self, Self::Error>
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Max for T where
T: PartialOrd<T>,
[src]
T: PartialOrd<T>,
impl<T> Min for T where
T: PartialOrd<T>,
[src]
T: PartialOrd<T>,
impl<T> Num for T where
T: Copy + Debug + Max + Min + Num + NumCast + NumRef,
[src]
T: Copy + Debug + Max + Min + Num + NumCast + NumRef,
fn two() -> Self
[src]
fn three() -> Self
[src]
fn four() -> Self
[src]
fn five() -> Self
[src]
fn six() -> Self
[src]
fn seven() -> Self
[src]
fn halved(self) -> Self
[src]
impl<T> NumAssign for T where
T: Num + NumAssignOps<T>,
[src]
T: Num + NumAssignOps<T>,
impl<T, Rhs> NumAssignOps<Rhs> for T where
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
[src]
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
impl<T> NumAssignRef for T where
T: NumAssign + for<'r> NumAssignOps<&'r T>,
[src]
T: NumAssign + for<'r> NumAssignOps<&'r T>,
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]
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
impl<T> NumRef for T where
T: Num + for<'r> NumOps<&'r T, T>,
[src]
T: Num + for<'r> NumOps<&'r T, T>,
impl<T, Base> RefNum<Base> for T where
T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,
[src]
T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,