Struct swiss_army_knife::fixed_point_arithmetic::Unsigned3232FixedPoint [−][src]
#[repr(C)]pub struct Unsigned3232FixedPoint(_);
Expand description
A Q-format Q32.32
unsigned fixed point number, viz:-
- Integer component is unsigned and 32 bits (
u32
). - Fraction component is 32 bits.
See upstream library https://github.com/PetteriAimonen/libfixmath
for example code to implement trigonometric functions.
Implementations
Inclusive minimum.
Inclusive maximum.
Saturating addition.
Saturating subtraction.
Checked addition.
Checked subtraction.
Saturating multiply by a scalar.
Checked multiply by a scalar.
Checked divide by a scalar.
Trait Implementations
Performs the +=
operation. Read more
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
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
Performs the %=
operation. Read more
Performs the -=
operation. Read more
type Error = ParseNumberError
type Error = ParseNumberError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ParseNumberError
type Error = ParseNumberError
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Unsigned3232FixedPoint
impl Send for Unsigned3232FixedPoint
impl Sync for Unsigned3232FixedPoint
impl Unpin for Unsigned3232FixedPoint
impl UnwindSafe for Unsigned3232FixedPoint
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,