Struct simba::scalar::FixedI8

source ·
#[repr(transparent)]
pub struct FixedI8<Fract>(pub FixedI8<Fract>);
Expand description

Signed fixed-point number with a generic number of bits for the fractional part.

Tuple Fields§

§0: FixedI8<Fract>

Implementations§

source§

impl<Fract: LeEqU8> FixedI8<Fract>

source

pub fn from_num<N: ToFixed>(val: N) -> Self

Creates a fixed-point number from another number.

source§

impl<Fract> FixedI8<Fract>

source

pub const fn from_bits(bits: i8) -> Self

Creates a fixed-point number that has a bitwise representation identical to the given integer.

source

pub const fn to_bits(self) -> i8

Creates an integer that has a bitwise representation identical to the given fixed-point number.

Trait Implementations§

source§

impl<Fract: LeEqU8> AbsDiffEq<FixedI8<Fract>> for FixedI8<Fract>

§

type Epsilon = FixedI8<Fract>

Used for specifying relative comparisons.
source§

fn default_epsilon() -> Self::Epsilon

The default tolerance to use when testing values that are close together. Read more
source§

fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool

A test for equality that uses the absolute difference to compute the approximate equality of two numbers.
source§

fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool

The inverse of AbsDiffEq::abs_diff_eq.
source§

impl<Fract: LeEqU8> Add<FixedI8<Fract>> for FixedI8<Fract>

§

type Output = FixedI8<Fract>

The resulting type after applying the + operator.
source§

fn add(self, rhs: Self) -> Self

Performs the + operation. Read more
source§

impl<Fract: LeEqU8> AddAssign<FixedI8<Fract>> for FixedI8<Fract>

source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
source§

impl<Fract: LeEqU8> Bounded for FixedI8<Fract>

source§

fn min_value() -> Self

Returns the smallest finite number this type can represent
source§

fn max_value() -> Self

Returns the largest finite number this type can represent
source§

impl<Fract: Clone> Clone for FixedI8<Fract>

source§

fn clone(&self) -> FixedI8<Fract>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<Fract> ComplexField for FixedI8<Fract>where Fract: Unsigned + LeEqU8 + IsLessOrEqual<U7, Output = True> + IsLessOrEqual<U6, Output = True> + IsLessOrEqual<U5, Output = True> + IsLessOrEqual<U4, Output = True> + Send + Sync + 'static,

§

type RealField = FixedI8<Fract>

source§

fn from_real(re: Self::RealField) -> Self

Builds a pure-real complex number from the given value.
source§

fn real(self) -> Self::RealField

The real part of this complex number.
source§

fn imaginary(self) -> Self::RealField

The imaginary part of this complex number.
source§

fn norm1(self) -> Self::RealField

The sum of the absolute value of this complex number’s real and imaginary part.
source§

fn modulus(self) -> Self::RealField

The modulus of this complex number.
source§

fn modulus_squared(self) -> Self::RealField

The squared modulus of this complex number.
source§

fn argument(self) -> Self::RealField

The argument of this complex number.
source§

fn to_exp(self) -> (Self, Self)

The exponential form of this complex number: (modulus, e^{i arg})
source§

fn recip(self) -> Self

source§

fn conjugate(self) -> Self

source§

fn scale(self, factor: Self::RealField) -> Self

Multiplies this complex number by factor.
source§

fn unscale(self, factor: Self::RealField) -> Self

Divides this complex number by factor.
source§

fn floor(self) -> Self

source§

fn ceil(self) -> Self

source§

fn round(self) -> Self

source§

fn trunc(self) -> Self

source§

fn fract(self) -> Self

source§

fn abs(self) -> Self

The absolute value of this complex number: self / self.signum(). Read more
source§

fn signum(self) -> Self

The exponential part of this complex number: self / self.modulus()
source§

fn mul_add(self, a: Self, b: Self) -> Self

source§

fn powi(self, _n: i32) -> Self

source§

fn powf(self, _n: Self) -> Self

source§

fn powc(self, _n: Self) -> Self

source§

fn sqrt(self) -> Self

source§

fn try_sqrt(self) -> Option<Self>

source§

fn exp(self) -> Self

source§

fn exp2(self) -> Self

source§

fn exp_m1(self) -> Self

source§

fn ln_1p(self) -> Self

source§

fn ln(self) -> Self

source§

fn log(self, _base: Self) -> Self

source§

fn log2(self) -> Self

source§

fn log10(self) -> Self

source§

fn cbrt(self) -> Self

source§

fn hypot(self, _other: Self) -> Self::RealField

Computes (self.conjugate() * self + other.conjugate() * other).sqrt()
source§

fn sin(self) -> Self

source§

fn cos(self) -> Self

source§

fn tan(self) -> Self

source§

fn asin(self) -> Self

source§

fn acos(self) -> Self

source§

fn atan(self) -> Self

source§

fn sin_cos(self) -> (Self, Self)

source§

fn sinh(self) -> Self

source§

fn cosh(self) -> Self

source§

fn tanh(self) -> Self

source§

fn asinh(self) -> Self

source§

fn acosh(self) -> Self

source§

fn atanh(self) -> Self

source§

fn is_finite(&self) -> bool

source§

fn to_polar(self) -> (Self::RealField, Self::RealField)

The polar form of this complex number: (modulus, arg)
source§

fn sinh_cosh(self) -> (Self, Self)

source§

fn sinc(self) -> Self

Cardinal sine
source§

fn sinhc(self) -> Self

source§

fn cosc(self) -> Self

Cardinal cos
source§

fn coshc(self) -> Self

source§

impl<Fract: LeEqU8> Debug for FixedI8<Fract>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de, Fract: LeEqU8> Deserialize<'de> for FixedI8<Fract>

source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
source§

impl<Fract: LeEqU8> Display for FixedI8<Fract>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<Fract: LeEqU8> Distribution<FixedI8<Fract>> for OpenClosed01

source§

fn sample<'a, G: Rng + ?Sized>(&self, rng: &mut G) -> FixedI8<Fract>

Generate a random value of T, using rng as the source of randomness.
source§

fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>where R: Rng, Self: Sized,

Create an iterator that generates random values of T, using rng as the source of randomness. Read more
source§

fn map<F, S>(self, func: F) -> DistMap<Self, F, T, S>where F: Fn(T) -> S, Self: Sized,

Create a distribution of values of ‘S’ by mapping the output of Self through the closure F Read more
source§

impl<Fract: LeEqU8> Distribution<FixedI8<Fract>> for Standard

source§

fn sample<'a, G: Rng + ?Sized>(&self, rng: &mut G) -> FixedI8<Fract>

Generate a random value of T, using rng as the source of randomness.
source§

fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>where R: Rng, Self: Sized,

Create an iterator that generates random values of T, using rng as the source of randomness. Read more
source§

fn map<F, S>(self, func: F) -> DistMap<Self, F, T, S>where F: Fn(T) -> S, Self: Sized,

Create a distribution of values of ‘S’ by mapping the output of Self through the closure F Read more
source§

impl<Fract: LeEqU8> Div<FixedI8<Fract>> for FixedI8<Fract>

§

type Output = FixedI8<Fract>

The resulting type after applying the / operator.
source§

fn div(self, rhs: Self) -> Self

Performs the / operation. Read more
source§

impl<Fract: LeEqU8> Div<i8> for FixedI8<Fract>

§

type Output = FixedI8<Fract>

The resulting type after applying the / operator.
source§

fn div(self, rhs: i8) -> Self

Performs the / operation. Read more
source§

impl<Fract: LeEqU8> DivAssign<FixedI8<Fract>> for FixedI8<Fract>

source§

fn div_assign(&mut self, rhs: Self)

Performs the /= operation. Read more
source§

impl<Fract: LeEqU8> DivAssign<i8> for FixedI8<Fract>

source§

fn div_assign(&mut self, rhs: i8)

Performs the /= operation. Read more
source§

impl<Fract: LeEqU8> FromPrimitive for FixedI8<Fract>

source§

fn from_i64(n: i64) -> Option<Self>

Converts an i64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u64(n: u64) -> Option<Self>

Converts an u64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_isize(n: isize) -> Option<Self>

Converts an isize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i8(n: i8) -> Option<Self>

Converts an i8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i16(n: i16) -> Option<Self>

Converts an i16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i32(n: i32) -> Option<Self>

Converts an i32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_usize(n: usize) -> Option<Self>

Converts a usize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u8(n: u8) -> Option<Self>

Converts an u8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u16(n: u16) -> Option<Self>

Converts an u16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u32(n: u32) -> Option<Self>

Converts an u32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_f32(n: f32) -> Option<Self>

Converts a f32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_f64(n: f64) -> Option<Self>

Converts a f64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
source§

fn from_i128(n: i128) -> Option<Self>

Converts an i128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
source§

fn from_u128(n: u128) -> Option<Self>

Converts an u128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
source§

impl<Fract: LeEqU8> Hash for FixedI8<Fract>

source§

fn hash<H: Hasher>(&self, h: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<Fract: LeEqU8> Mul<FixedI8<Fract>> for FixedI8<Fract>

§

type Output = FixedI8<Fract>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Self) -> Self

Performs the * operation. Read more
source§

impl<Fract: LeEqU8> Mul<i8> for FixedI8<Fract>

§

type Output = FixedI8<Fract>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i8) -> Self

Performs the * operation. Read more
source§

impl<Fract: LeEqU8> MulAssign<FixedI8<Fract>> for FixedI8<Fract>

source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
source§

impl<Fract: LeEqU8> MulAssign<i8> for FixedI8<Fract>

source§

fn mul_assign(&mut self, rhs: i8)

Performs the *= operation. Read more
source§

impl<Fract: LeEqU8> Neg for FixedI8<Fract>

§

type Output = FixedI8<Fract>

The resulting type after applying the - operator.
source§

fn neg(self) -> Self

Performs the unary - operation. Read more
source§

impl<Fract: LeEqU8> Num for FixedI8<Fract>

§

type FromStrRadixErr = ()

source§

fn from_str_radix( _str: &str, _radix: u32 ) -> Result<Self, Self::FromStrRadixErr>

Convert from a string and radix (typically 2..=36). Read more
source§

impl<Fract: LeEqU8> One for FixedI8<Fract>

source§

fn one() -> Self

Returns the multiplicative identity element of Self, 1. Read more
source§

fn set_one(&mut self)

Sets self to the multiplicative identity element of Self, 1.
source§

fn is_one(&self) -> boolwhere Self: PartialEq<Self>,

Returns true if self is equal to the multiplicative identity. Read more
source§

impl<Fract: LeEqU8> Ord for FixedI8<Fract>

source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl<Fract: LeEqU8> PartialEq<FixedI8<Fract>> for FixedI8<Fract>

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Fract: LeEqU8> PartialOrd<FixedI8<Fract>> for FixedI8<Fract>

source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<Fract> RealField for FixedI8<Fract>where Fract: Unsigned + LeEqU8 + IsLessOrEqual<U7, Output = True> + IsLessOrEqual<U6, Output = True> + IsLessOrEqual<U5, Output = True> + IsLessOrEqual<U4, Output = True> + Send + Sync + 'static,

source§

fn pi() -> Self

Archimedes’ constant.

source§

fn two_pi() -> Self

2.0 * pi.

source§

fn frac_pi_2() -> Self

pi / 2.0.

source§

fn frac_pi_3() -> Self

pi / 3.0.

source§

fn frac_pi_4() -> Self

pi / 4.0.

source§

fn frac_pi_6() -> Self

pi / 6.0.

source§

fn frac_pi_8() -> Self

pi / 8.0.

source§

fn frac_1_pi() -> Self

1.0 / pi.

source§

fn frac_2_pi() -> Self

2.0 / pi.

source§

fn frac_2_sqrt_pi() -> Self

2.0 / sqrt(pi).

source§

fn e() -> Self

Euler’s number.

source§

fn log2_e() -> Self

log2(e).

source§

fn log10_e() -> Self

log10(e).

source§

fn ln_2() -> Self

ln(2.0).

source§

fn ln_10() -> Self

ln(10.0).

source§

fn is_sign_positive(&self) -> bool

Is the sign of this real number positive?
source§

fn is_sign_negative(&self) -> bool

Is the sign of this real number negative?
source§

fn copysign(self, sign: Self) -> Self

Copies the sign of sign to self. Read more
source§

fn max(self, other: Self) -> Self

source§

fn min(self, other: Self) -> Self

source§

fn clamp(self, min: Self, max: Self) -> Self

source§

fn atan2(self, other: Self) -> Self

source§

fn min_value() -> Option<Self>

The smallest finite positive value representable using this type.
source§

fn max_value() -> Option<Self>

The largest finite positive value representable using this type.
source§

impl<Fract: LeEqU8> RelativeEq<FixedI8<Fract>> for FixedI8<Fract>

source§

fn default_max_relative() -> Self::Epsilon

The default relative tolerance for testing values that are far-apart. Read more
source§

fn relative_eq( &self, other: &Self, epsilon: Self::Epsilon, max_relative: Self::Epsilon ) -> bool

A test for equality that uses a relative comparison if the values are far apart.
source§

fn relative_ne( &self, other: &Rhs, epsilon: Self::Epsilon, max_relative: Self::Epsilon ) -> bool

The inverse of RelativeEq::relative_eq.
source§

impl<Fract: LeEqU8> Rem<FixedI8<Fract>> for FixedI8<Fract>

§

type Output = FixedI8<Fract>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Self) -> Self

Performs the % operation. Read more
source§

impl<Fract: LeEqU8> Rem<i8> for FixedI8<Fract>

§

type Output = FixedI8<Fract>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i8) -> Self

Performs the % operation. Read more
source§

impl<Fract: LeEqU8> RemAssign<FixedI8<Fract>> for FixedI8<Fract>

source§

fn rem_assign(&mut self, rhs: Self)

Performs the %= operation. Read more
source§

impl<Fract: LeEqU8> RemAssign<i8> for FixedI8<Fract>

source§

fn rem_assign(&mut self, rhs: i8)

Performs the %= operation. Read more
source§

impl<Fract: LeEqU8> Serialize for FixedI8<Fract>

source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
source§

impl<Fract: LeEqU8> Signed for FixedI8<Fract>

source§

fn abs(&self) -> Self

Computes the absolute value. Read more
source§

fn abs_sub(&self, other: &Self) -> Self

The positive difference of two numbers. Read more
source§

fn signum(&self) -> Self

Returns the sign of the number. Read more
source§

fn is_positive(&self) -> bool

Returns true if the number is positive and false if the number is zero or negative.
source§

fn is_negative(&self) -> bool

Returns true if the number is negative and false if the number is zero or positive.
source§

impl<Fract: LeEqU8> SimdValue for FixedI8<Fract>

§

type Element = FixedI8<Fract>

The type of the elements of each lane of this SIMD value.
§

type SimdBool = bool

Type of the result of comparing two SIMD values like self.
source§

fn lanes() -> usize

The number of lanes of this SIMD value.
source§

fn splat(val: Self::Element) -> Self

Initializes an SIMD value with each lanes set to val.
source§

fn extract(&self, _: usize) -> Self::Element

Extracts the i-th lane of self. Read more
source§

unsafe fn extract_unchecked(&self, _: usize) -> Self::Element

Extracts the i-th lane of self without bound-checking.
source§

fn replace(&mut self, _: usize, val: Self::Element)

Replaces the i-th lane of self by val. Read more
source§

unsafe fn replace_unchecked(&mut self, _: usize, val: Self::Element)

Replaces the i-th lane of self by val without bound-checking.
source§

fn select(self, cond: Self::SimdBool, other: Self) -> Self

Merges self and other depending on the lanes of cond. Read more
source§

fn map_lanes(self, f: impl Fn(Self::Element) -> Self::Element) -> Selfwhere Self: Clone,

Applies a function to each lane of self. Read more
source§

fn zip_map_lanes( self, b: Self, f: impl Fn(Self::Element, Self::Element) -> Self::Element ) -> Selfwhere Self: Clone,

Applies a function to each lane of self paired with the corresponding lane of b. Read more
source§

impl<Fract: LeEqU8> Sub<FixedI8<Fract>> for FixedI8<Fract>

§

type Output = FixedI8<Fract>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Self) -> Self

Performs the - operation. Read more
source§

impl<Fract: LeEqU8> SubAssign<FixedI8<Fract>> for FixedI8<Fract>

source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
source§

impl<Fract: LeEqU8> SubsetOf<FixedI8<Fract>> for FixedI8<Fract>

source§

fn to_superset(&self) -> FixedI8<Fract>

The inclusion map: converts self to the equivalent element of its superset.
source§

fn from_superset(element: &FixedI8<Fract>) -> Option<Self>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
source§

fn from_superset_unchecked(element: &FixedI8<Fract>) -> Self

Use with care! Same as self.to_superset but without any property checks. Always succeeds.
source§

fn is_in_subset(_: &FixedI8<Fract>) -> bool

Checks if element is actually part of the subset Self (and can be converted to it).
source§

impl<Fract: LeEqU8> SubsetOf<FixedI8<Fract>> for f64

source§

fn to_superset(&self) -> FixedI8<Fract>

The inclusion map: converts self to the equivalent element of its superset.
source§

fn from_superset(element: &FixedI8<Fract>) -> Option<Self>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
source§

fn from_superset_unchecked(element: &FixedI8<Fract>) -> Self

Use with care! Same as self.to_superset but without any property checks. Always succeeds.
source§

fn is_in_subset(_: &FixedI8<Fract>) -> bool

Checks if element is actually part of the subset Self (and can be converted to it).
source§

impl<Fract: LeEqU8> UlpsEq<FixedI8<Fract>> for FixedI8<Fract>

source§

fn default_max_ulps() -> u32

The default ULPs to tolerate when testing values that are far-apart. Read more
source§

fn ulps_eq(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool

A test for equality that uses units in the last place (ULP) if the values are far apart.
source§

fn ulps_ne(&self, other: &Rhs, epsilon: Self::Epsilon, max_ulps: u32) -> bool

The inverse of UlpsEq::ulps_eq.
source§

impl<Fract: LeEqU8> Zero for FixedI8<Fract>

source§

fn zero() -> Self

Returns the additive identity element of Self, 0. Read more
source§

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.
source§

fn set_zero(&mut self)

Sets self to the additive identity element of Self, 0.
source§

impl<Fract: Copy> Copy for FixedI8<Fract>

source§

impl<Fract: LeEqU8> Eq for FixedI8<Fract>

source§

impl<Fract: LeEqU8> Field for FixedI8<Fract>

source§

impl<Fract: LeEqU8> PrimitiveSimdValue for FixedI8<Fract>

Auto Trait Implementations§

§

impl<Fract> RefUnwindSafe for FixedI8<Fract>where Fract: RefUnwindSafe,

§

impl<Fract> Send for FixedI8<Fract>where Fract: Send,

§

impl<Fract> Sync for FixedI8<Fract>where Fract: Sync,

§

impl<Fract> Unpin for FixedI8<Fract>where Fract: Unpin,

§

impl<Fract> UnwindSafe for FixedI8<Fract>where Fract: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> ArchivePointee for T

§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
source§

impl<T> Az for T

source§

fn az<Dst>(self) -> Dstwhere T: Cast<Dst>,

Casts the value.
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CallHasher for Twhere T: Hash + ?Sized,

§

default fn get_hash<H, B>(value: &H, build_hasher: &B) -> u64where H: Hash + ?Sized, B: BuildHasher,

source§

impl<T, U> Cast<U> for Twhere U: FromCast<T>,

source§

fn cast(self) -> U

Numeric cast from self to T.
source§

impl<Src, Dst> CastFrom<Src> for Dstwhere Src: Cast<Dst>,

source§

fn cast_from(src: Src) -> Dst

Casts the value.
source§

impl<T> CheckedAs for T

source§

fn checked_as<Dst>(self) -> Option<Dst>where T: CheckedCast<Dst>,

Casts the value.
source§

impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere Src: CheckedCast<Dst>,

source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
source§

impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,

source§

fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>

Deserializes using the given deserializer
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> FromBits<T> for T

source§

fn from_bits(t: T) -> T

Safe lossless bitwise transmute from T to Self.
source§

impl<T> FromCast<T> for T

source§

fn from_cast(t: T) -> T

Numeric cast from T to Self.
source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> IntoBits<U> for Twhere U: FromBits<T>,

source§

fn into_bits(self) -> U

Safe lossless bitwise transmute from self to T.
source§

impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere Dst: LosslessTryFrom<Src>,

source§

fn lossless_try_into(self) -> Option<Dst>

Performs the conversion.
source§

impl<Src, Dst> LossyInto<Dst> for Srcwhere Dst: LossyFrom<Src>,

source§

fn lossy_into(self) -> Dst

Performs the conversion.
source§

impl<T> LowerBounded for Twhere T: Bounded,

source§

fn min_value() -> T

Returns the smallest finite number this type can represent
source§

impl<T> OverflowingAs for T

source§

fn overflowing_as<Dst>(self) -> (Dst, bool)where T: OverflowingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere Src: OverflowingCast<Dst>,

source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
§

impl<T> Pointee for T

§

type Metadata = ()

The type for metadata in pointers and references to Self.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> SaturatingAs for T

source§

fn saturating_as<Dst>(self) -> Dstwhere T: SaturatingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere Src: SaturatingCast<Dst>,

source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> UnwrappedAs for T

source§

fn unwrapped_as<Dst>(self) -> Dstwhere T: UnwrappedCast<Dst>,

Casts the value.
source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere Src: UnwrappedCast<Dst>,

source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
source§

impl<T> UpperBounded for Twhere T: Bounded,

source§

fn max_value() -> T

Returns the largest finite number this type can represent
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WrappingAs for T

source§

fn wrapping_as<Dst>(self) -> Dstwhere T: WrappingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere Src: WrappingCast<Dst>,

source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,

source§

impl<T> NumAssign for Twhere T: Num + NumAssignOps<T>,

source§

impl<T, Rhs> NumAssignOps<Rhs> for Twhere T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for Twhere T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,