[][src]Struct simba::scalar::FixedI32

#[repr(transparent)]pub struct FixedI32<Fract>(pub FixedI32<Fract>);

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

Implementations

impl<Fract: LeEqU32> FixedI32<Fract>[src]

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

Creates a fixed-point number from another number.

impl<Fract> FixedI32<Fract>[src]

pub const fn from_bits(bits: i32) -> Self[src]

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

pub const fn to_bits(self) -> i32[src]

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

Trait Implementations

impl<Fract: LeEqU32> AbsDiffEq<FixedI32<Fract>> for FixedI32<Fract>[src]

type Epsilon = Self

Used for specifying relative comparisons.

impl<Fract: LeEqU32> Add<FixedI32<Fract>> for FixedI32<Fract>[src]

type Output = Self

The resulting type after applying the + operator.

impl<Fract: LeEqU32> AddAssign<FixedI32<Fract>> for FixedI32<Fract>[src]

impl<Fract: LeEqU32> Bounded for FixedI32<Fract>[src]

impl<Fract: Clone> Clone for FixedI32<Fract>[src]

impl<Fract: Send + Sync + 'static> ComplexField for FixedI32<Fract> where
    Fract: Unsigned + LeEqU32 + IsLessOrEqual<U31, Output = True> + IsLessOrEqual<U30, Output = True> + IsLessOrEqual<U29, Output = True> + IsLessOrEqual<U28, Output = True>, 
[src]

type RealField = Self

impl<Fract: Copy> Copy for FixedI32<Fract>[src]

impl<Fract: LeEqU32> Debug for FixedI32<Fract>[src]

impl<'de, Fract: LeEqU32> Deserialize<'de> for FixedI32<Fract>[src]

impl<Fract: LeEqU32> Display for FixedI32<Fract>[src]

impl<Fract: LeEqU32> Distribution<FixedI32<Fract>> for Standard[src]

impl<Fract: LeEqU32> Distribution<FixedI32<Fract>> for OpenClosed01[src]

impl<Fract: LeEqU32> Div<FixedI32<Fract>> for FixedI32<Fract>[src]

type Output = Self

The resulting type after applying the / operator.

impl<Fract: LeEqU32> Div<i32> for FixedI32<Fract>[src]

type Output = Self

The resulting type after applying the / operator.

impl<Fract: LeEqU32> DivAssign<FixedI32<Fract>> for FixedI32<Fract>[src]

impl<Fract: LeEqU32> DivAssign<i32> for FixedI32<Fract>[src]

impl<Fract: LeEqU32> Eq for FixedI32<Fract>[src]

impl<Fract: LeEqU32> Field for FixedI32<Fract>[src]

impl<Fract: LeEqU32> FromPrimitive for FixedI32<Fract>[src]

impl<Fract: LeEqU32> Hash for FixedI32<Fract>[src]

impl<Fract: LeEqU32> Mul<FixedI32<Fract>> for FixedI32<Fract>[src]

type Output = Self

The resulting type after applying the * operator.

impl<Fract: LeEqU32> Mul<i32> for FixedI32<Fract>[src]

type Output = Self

The resulting type after applying the * operator.

impl<Fract: LeEqU32> MulAssign<FixedI32<Fract>> for FixedI32<Fract>[src]

impl<Fract: LeEqU32> MulAssign<i32> for FixedI32<Fract>[src]

impl<Fract: LeEqU32> Neg for FixedI32<Fract>[src]

type Output = Self

The resulting type after applying the - operator.

impl<Fract: LeEqU32> Num for FixedI32<Fract>[src]

type FromStrRadixErr = ()

impl<Fract: LeEqU32> One for FixedI32<Fract>[src]

impl<Fract: LeEqU32> Ord for FixedI32<Fract>[src]

impl<Fract: LeEqU32> PartialEq<FixedI32<Fract>> for FixedI32<Fract>[src]

impl<Fract: LeEqU32> PartialOrd<FixedI32<Fract>> for FixedI32<Fract>[src]

impl<Fract: LeEqU32> PrimitiveSimdValue for FixedI32<Fract>[src]

impl<Fract: Send + Sync + 'static> RealField for FixedI32<Fract> where
    Fract: Unsigned + LeEqU32 + IsLessOrEqual<U31, Output = True> + IsLessOrEqual<U30, Output = True> + IsLessOrEqual<U29, Output = True> + IsLessOrEqual<U28, Output = True>, 
[src]

fn pi() -> Self[src]

Archimedes' constant.

fn two_pi() -> Self[src]

2.0 * pi.

fn frac_pi_2() -> Self[src]

pi / 2.0.

fn frac_pi_3() -> Self[src]

pi / 3.0.

fn frac_pi_4() -> Self[src]

pi / 4.0.

fn frac_pi_6() -> Self[src]

pi / 6.0.

fn frac_pi_8() -> Self[src]

pi / 8.0.

fn frac_1_pi() -> Self[src]

1.0 / pi.

fn frac_2_pi() -> Self[src]

2.0 / pi.

fn frac_2_sqrt_pi() -> Self[src]

2.0 / sqrt(pi).

fn e() -> Self[src]

Euler's number.

fn log2_e() -> Self[src]

log2(e).

fn log10_e() -> Self[src]

log10(e).

fn ln_2() -> Self[src]

ln(2.0).

fn ln_10() -> Self[src]

ln(10.0).

impl<Fract: LeEqU32> RelativeEq<FixedI32<Fract>> for FixedI32<Fract>[src]

impl<Fract: LeEqU32> Rem<FixedI32<Fract>> for FixedI32<Fract>[src]

type Output = Self

The resulting type after applying the % operator.

impl<Fract: LeEqU32> Rem<i32> for FixedI32<Fract>[src]

type Output = Self

The resulting type after applying the % operator.

impl<Fract: LeEqU32> RemAssign<FixedI32<Fract>> for FixedI32<Fract>[src]

impl<Fract: LeEqU32> RemAssign<i32> for FixedI32<Fract>[src]

impl<Fract: LeEqU32> Serialize for FixedI32<Fract>[src]

impl<Fract: LeEqU32> Signed for FixedI32<Fract>[src]

impl<Fract: LeEqU32> SimdValue for FixedI32<Fract>[src]

type Element = Self

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.

impl<Fract: LeEqU32> Sub<FixedI32<Fract>> for FixedI32<Fract>[src]

type Output = Self

The resulting type after applying the - operator.

impl<Fract: LeEqU32> SubAssign<FixedI32<Fract>> for FixedI32<Fract>[src]

impl<Fract: LeEqU32> SubsetOf<FixedI32<Fract>> for f64[src]

impl<Fract: LeEqU32> SubsetOf<FixedI32<Fract>> for FixedI32<Fract>[src]

impl<Fract: LeEqU32> UlpsEq<FixedI32<Fract>> for FixedI32<Fract>[src]

impl<Fract: LeEqU32> Zero for FixedI32<Fract>[src]

Auto Trait Implementations

impl<Fract> RefUnwindSafe for FixedI32<Fract> where
    Fract: RefUnwindSafe

impl<Fract> Send for FixedI32<Fract> where
    Fract: Send

impl<Fract> Sync for FixedI32<Fract> where
    Fract: Sync

impl<Fract> Unpin for FixedI32<Fract> where
    Fract: Unpin

impl<Fract> UnwindSafe for FixedI32<Fract> where
    Fract: UnwindSafe

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, U> Cast<U> for T where
    U: FromCast<T>, 

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T> FromBits<T> for T

impl<T> FromCast<T> for T

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

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

impl<Src, Dst> LosslessTryInto<Dst> for Src where
    Dst: LosslessTryFrom<Src>, 
[src]

impl<Src, Dst> LossyInto<Dst> for Src where
    Dst: LossyFrom<Src>, 
[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, 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> Same<T> for T

type Output = T

Should always be Self

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.

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