Struct simba::scalar::FixedI32 [−][src]
#[repr(transparent)]pub struct FixedI32<Fract>(pub FixedI32<Fract>);
Expand description
Signed fixed-point number with a generic number of bits for the fractional part.
Tuple Fields
0: FixedI32<Fract>
Implementations
Trait Implementations
type Epsilon = Self
type Epsilon = Self
Used for specifying relative comparisons.
The default tolerance to use when testing values that are close together. Read more
A test for equality that uses the absolute difference to compute the approximate equality of two numbers. Read more
The inverse of AbsDiffEq::abs_diff_eq
.
Performs the +=
operation. Read more
type RealField = Self
Builds a pure-real complex number from the given value.
The sum of the absolute value of this complex number’s real and imaginary part.
The squared modulus of this complex number.
The exponential form of this complex number: (modulus, e^{i arg})
Computes (self.conjugate() * self + other.conjugate() * other).sqrt()
The polar form of this complex number: (modulus, arg)
Deserialize this value from the given Serde deserializer. Read more
Generate a random value of T
, using rng
as the source of randomness.
Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
Generate a random value of T
, using rng
as the source of randomness.
Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
Performs the /=
operation. Read more
Performs the /=
operation. Read more
Converts an i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts an u64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts an isize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts an i8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts an i16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts an i32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts a usize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts an u8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts an u16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts an u32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts a f32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
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
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
Performs the *=
operation. Read more
Performs the *=
operation. Read more
type FromStrRadixErr = ()
Convert from a string and radix (typically 2..=36
). Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
2.0 / sqrt(pi).
Is the sign of this real number positive?
Is the sign of this real number negative?
The default relative tolerance for testing values that are far-apart. Read more
A test for equality that uses a relative comparison if the values are far apart.
The inverse of RelativeEq::relative_eq
.
Performs the %=
operation. Read more
Performs the %=
operation. Read more
Returns true if the number is positive and false if the number is zero or negative.
Returns true if the number is negative and false if the number is zero or positive.
type Element = Self
type Element = Self
The type of the elements of each lane of this SIMD value.
Extracts the i-th lane of self
without bound-checking.
Replaces the i-th lane of self
by val
. Read more
Replaces the i-th lane of self
by val
without bound-checking.
Merges self
and other
depending on the lanes of cond
. Read more
Applies a function to each lane of self
. Read more
Performs the -=
operation. Read more
The inclusion map: converts self
to the equivalent element of its superset.
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
Checks if element
is actually part of the subset Self
(and can be converted to it).
The inclusion map: converts self
to the equivalent element of its superset.
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
Checks if element
is actually part of the subset Self
(and can be converted to it).
The default ULPs to tolerate when testing values that are far-apart. Read more
A test for equality that uses units in the last place (ULP) if the values are far apart.
Auto Trait Implementations
impl<Fract> RefUnwindSafe for FixedI32<Fract> where
Fract: RefUnwindSafe,
impl<Fract> UnwindSafe for FixedI32<Fract> where
Fract: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Performs the conversion.
Performs the conversion.
Casts the value.
type Output = T
type Output = T
Should always be Self
Casts the value.
Casts the value.
pub fn vzip(self) -> V
Casts the value.