Struct simba::scalar::FixedI8[][src]

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

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

Implementations

impl<Fract: LeEqU8> FixedI8<Fract>[src]

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

Creates a fixed-point number from another number.

impl<Fract> FixedI8<Fract>[src]

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

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

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

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

Trait Implementations

impl<Fract: LeEqU8> AbsDiffEq<FixedI8<Fract>> for FixedI8<Fract>[src]

type Epsilon = Self

Used for specifying relative comparisons.

impl<Fract: LeEqU8> Add<FixedI8<Fract>> for FixedI8<Fract>[src]

type Output = Self

The resulting type after applying the + operator.

impl<Fract: LeEqU8> AddAssign<FixedI8<Fract>> for FixedI8<Fract>[src]

impl<Fract: LeEqU8> Bounded for FixedI8<Fract>[src]

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

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

type RealField = Self

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

impl<Fract: LeEqU8> Debug for FixedI8<Fract>[src]

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

impl<Fract: LeEqU8> Display for FixedI8<Fract>[src]

impl<Fract: LeEqU8> Div<FixedI8<Fract>> for FixedI8<Fract>[src]

type Output = Self

The resulting type after applying the / operator.

impl<Fract: LeEqU8> Div<i8> for FixedI8<Fract>[src]

type Output = Self

The resulting type after applying the / operator.

impl<Fract: LeEqU8> DivAssign<FixedI8<Fract>> for FixedI8<Fract>[src]

impl<Fract: LeEqU8> DivAssign<i8> for FixedI8<Fract>[src]

impl<Fract: LeEqU8> Eq for FixedI8<Fract>[src]

impl<Fract: LeEqU8> Field for FixedI8<Fract>[src]

impl<Fract: LeEqU8> FromPrimitive for FixedI8<Fract>[src]

impl<Fract: LeEqU8> Hash for FixedI8<Fract>[src]

impl<Fract: LeEqU8> Mul<FixedI8<Fract>> for FixedI8<Fract>[src]

type Output = Self

The resulting type after applying the * operator.

impl<Fract: LeEqU8> Mul<i8> for FixedI8<Fract>[src]

type Output = Self

The resulting type after applying the * operator.

impl<Fract: LeEqU8> MulAssign<FixedI8<Fract>> for FixedI8<Fract>[src]

impl<Fract: LeEqU8> MulAssign<i8> for FixedI8<Fract>[src]

impl<Fract: LeEqU8> Neg for FixedI8<Fract>[src]

type Output = Self

The resulting type after applying the - operator.

impl<Fract: LeEqU8> Num for FixedI8<Fract>[src]

type FromStrRadixErr = ()

impl<Fract: LeEqU8> One for FixedI8<Fract>[src]

impl<Fract: LeEqU8> Ord for FixedI8<Fract>[src]

impl<Fract: LeEqU8> PartialEq<FixedI8<Fract>> for FixedI8<Fract>[src]

impl<Fract: LeEqU8> PartialOrd<FixedI8<Fract>> for FixedI8<Fract>[src]

impl<Fract: LeEqU8> PrimitiveSimdValue for FixedI8<Fract>[src]

impl<Fract: Send + Sync + 'static> RealField for FixedI8<Fract> where
    Fract: Unsigned + LeEqU8 + IsLessOrEqual<U7, Output = True> + IsLessOrEqual<U6, Output = True> + IsLessOrEqual<U5, Output = True> + IsLessOrEqual<U4, 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: LeEqU8> RelativeEq<FixedI8<Fract>> for FixedI8<Fract>[src]

impl<Fract: LeEqU8> Rem<FixedI8<Fract>> for FixedI8<Fract>[src]

type Output = Self

The resulting type after applying the % operator.

impl<Fract: LeEqU8> Rem<i8> for FixedI8<Fract>[src]

type Output = Self

The resulting type after applying the % operator.

impl<Fract: LeEqU8> RemAssign<FixedI8<Fract>> for FixedI8<Fract>[src]

impl<Fract: LeEqU8> RemAssign<i8> for FixedI8<Fract>[src]

impl<Fract: LeEqU8> Serialize for FixedI8<Fract>[src]

impl<Fract: LeEqU8> Signed for FixedI8<Fract>[src]

impl<Fract: LeEqU8> SimdValue for FixedI8<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: LeEqU8> Sub<FixedI8<Fract>> for FixedI8<Fract>[src]

type Output = Self

The resulting type after applying the - operator.

impl<Fract: LeEqU8> SubAssign<FixedI8<Fract>> for FixedI8<Fract>[src]

impl<Fract: LeEqU8> SubsetOf<FixedI8<Fract>> for f64[src]

impl<Fract: LeEqU8> SubsetOf<FixedI8<Fract>> for FixedI8<Fract>[src]

impl<Fract: LeEqU8> UlpsEq<FixedI8<Fract>> for FixedI8<Fract>[src]

impl<Fract: LeEqU8> Zero for FixedI8<Fract>[src]

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

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>, 
[src]

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[src]

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

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

impl<T, U> IntoBits<U> for T where
    U: FromBits<T>, 
[src]

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>,