[−][src]Struct simba::scalar::FixedI16
Signed fixed-point number with a generic number of bits for the fractional part.
Implementations
impl<Fract: LeEqU16> FixedI16<Fract>
[src]
impl<Fract> FixedI16<Fract>
[src]
pub const fn from_bits(bits: i16) -> Self
[src]
Creates a fixed-point number that has a bitwise representation identical to the given integer.
pub const fn to_bits(self) -> i16
[src]
Creates an integer that has a bitwise representation identical to the given fixed-point number.
Trait Implementations
impl<Fract: LeEqU16> AbsDiffEq<FixedI16<Fract>> for FixedI16<Fract>
[src]
type Epsilon = Self
Used for specifying relative comparisons.
fn default_epsilon() -> Self::Epsilon
[src]
fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
[src]
fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
[src]
impl<Fract: LeEqU16> Add<FixedI16<Fract>> for FixedI16<Fract>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self
[src]
impl<Fract: LeEqU16> AddAssign<FixedI16<Fract>> for FixedI16<Fract>
[src]
fn add_assign(&mut self, rhs: Self)
[src]
impl<Fract: LeEqU16> Bounded for FixedI16<Fract>
[src]
impl<Fract: Clone> Clone for FixedI16<Fract>
[src]
impl<Fract: Send + Sync + 'static> ComplexField for FixedI16<Fract> where
Fract: Unsigned + LeEqU16 + IsLessOrEqual<U15, Output = True> + IsLessOrEqual<U14, Output = True> + IsLessOrEqual<U13, Output = True> + IsLessOrEqual<U12, Output = True>,
[src]
Fract: Unsigned + LeEqU16 + IsLessOrEqual<U15, Output = True> + IsLessOrEqual<U14, Output = True> + IsLessOrEqual<U13, Output = True> + IsLessOrEqual<U12, Output = True>,
type RealField = Self
fn from_real(re: Self::RealField) -> Self
[src]
fn real(self) -> Self::RealField
[src]
fn imaginary(self) -> Self::RealField
[src]
fn norm1(self) -> Self::RealField
[src]
fn modulus(self) -> Self::RealField
[src]
fn modulus_squared(self) -> Self::RealField
[src]
fn argument(self) -> Self::RealField
[src]
fn to_exp(self) -> (Self, Self)
[src]
fn recip(self) -> Self
[src]
fn conjugate(self) -> Self
[src]
fn scale(self, factor: Self::RealField) -> Self
[src]
fn unscale(self, factor: Self::RealField) -> Self
[src]
fn floor(self) -> Self
[src]
fn ceil(self) -> Self
[src]
fn round(self) -> Self
[src]
fn trunc(self) -> Self
[src]
fn fract(self) -> Self
[src]
fn abs(self) -> Self
[src]
fn signum(self) -> Self
[src]
fn mul_add(self, a: Self, b: Self) -> Self
[src]
fn powi(self, _n: i32) -> Self
[src]
fn powf(self, _n: Self) -> Self
[src]
fn powc(self, _n: Self) -> Self
[src]
fn sqrt(self) -> Self
[src]
fn try_sqrt(self) -> Option<Self>
[src]
fn exp(self) -> Self
[src]
fn exp2(self) -> Self
[src]
fn exp_m1(self) -> Self
[src]
fn ln_1p(self) -> Self
[src]
fn ln(self) -> Self
[src]
fn log(self, _base: Self) -> Self
[src]
fn log2(self) -> Self
[src]
fn log10(self) -> Self
[src]
fn cbrt(self) -> Self
[src]
fn hypot(self, _other: Self) -> Self::RealField
[src]
fn sin(self) -> Self
[src]
fn cos(self) -> Self
[src]
fn tan(self) -> Self
[src]
fn asin(self) -> Self
[src]
fn acos(self) -> Self
[src]
fn atan(self) -> Self
[src]
fn sin_cos(self) -> (Self, Self)
[src]
fn sinh(self) -> Self
[src]
fn cosh(self) -> Self
[src]
fn tanh(self) -> Self
[src]
fn asinh(self) -> Self
[src]
fn acosh(self) -> Self
[src]
fn atanh(self) -> Self
[src]
fn is_finite(&self) -> bool
[src]
fn to_polar(self) -> (Self::RealField, Self::RealField)
[src]
fn sinh_cosh(self) -> (Self, Self)
[src]
fn sinc(self) -> Self
[src]
fn sinhc(self) -> Self
[src]
fn cosc(self) -> Self
[src]
fn coshc(self) -> Self
[src]
impl<Fract: Copy> Copy for FixedI16<Fract>
[src]
impl<Fract: LeEqU16> Debug for FixedI16<Fract>
[src]
impl<'de, Fract: LeEqU16> Deserialize<'de> for FixedI16<Fract>
[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]
impl<Fract: LeEqU16> Display for FixedI16<Fract>
[src]
impl<Fract: LeEqU16> Distribution<FixedI16<Fract>> for Standard
[src]
fn sample<'a, G: Rng + ?Sized>(&self, rng: &mut G) -> FixedI16<Fract>
[src]
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
[src]
R: Rng,
impl<Fract: LeEqU16> Distribution<FixedI16<Fract>> for OpenClosed01
[src]
fn sample<'a, G: Rng + ?Sized>(&self, rng: &mut G) -> FixedI16<Fract>
[src]
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
[src]
R: Rng,
impl<Fract: LeEqU16> Div<FixedI16<Fract>> for FixedI16<Fract>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: Self) -> Self
[src]
impl<Fract: LeEqU16> Div<i16> for FixedI16<Fract>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: i16) -> Self
[src]
impl<Fract: LeEqU16> DivAssign<FixedI16<Fract>> for FixedI16<Fract>
[src]
fn div_assign(&mut self, rhs: Self)
[src]
impl<Fract: LeEqU16> DivAssign<i16> for FixedI16<Fract>
[src]
fn div_assign(&mut self, rhs: i16)
[src]
impl<Fract: LeEqU16> Eq for FixedI16<Fract>
[src]
impl<Fract: LeEqU16> Field for FixedI16<Fract>
[src]
impl<Fract: LeEqU16> FromPrimitive for FixedI16<Fract>
[src]
fn from_i64(n: i64) -> Option<Self>
[src]
fn from_u64(n: u64) -> Option<Self>
[src]
fn from_isize(n: isize) -> Option<Self>
[src]
fn from_i8(n: i8) -> Option<Self>
[src]
fn from_i16(n: i16) -> Option<Self>
[src]
fn from_i32(n: i32) -> Option<Self>
[src]
fn from_usize(n: usize) -> Option<Self>
[src]
fn from_u8(n: u8) -> Option<Self>
[src]
fn from_u16(n: u16) -> Option<Self>
[src]
fn from_u32(n: u32) -> Option<Self>
[src]
fn from_f32(n: f32) -> Option<Self>
[src]
fn from_f64(n: f64) -> Option<Self>
[src]
fn from_i128(n: i128) -> Option<Self>
[src]
fn from_u128(n: u128) -> Option<Self>
[src]
impl<Fract: LeEqU16> Hash for FixedI16<Fract>
[src]
fn hash<H: Hasher>(&self, h: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<Fract: LeEqU16> Mul<FixedI16<Fract>> for FixedI16<Fract>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self
[src]
impl<Fract: LeEqU16> Mul<i16> for FixedI16<Fract>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: i16) -> Self
[src]
impl<Fract: LeEqU16> MulAssign<FixedI16<Fract>> for FixedI16<Fract>
[src]
fn mul_assign(&mut self, rhs: Self)
[src]
impl<Fract: LeEqU16> MulAssign<i16> for FixedI16<Fract>
[src]
fn mul_assign(&mut self, rhs: i16)
[src]
impl<Fract: LeEqU16> Neg for FixedI16<Fract>
[src]
impl<Fract: LeEqU16> Num for FixedI16<Fract>
[src]
type FromStrRadixErr = ()
fn from_str_radix(
_str: &str,
_radix: u32
) -> Result<Self, Self::FromStrRadixErr>
[src]
_str: &str,
_radix: u32
) -> Result<Self, Self::FromStrRadixErr>
impl<Fract: LeEqU16> One for FixedI16<Fract>
[src]
fn one() -> Self
[src]
fn set_one(&mut self)
[src]
fn is_one(&self) -> bool where
Self: PartialEq<Self>,
[src]
Self: PartialEq<Self>,
impl<Fract: LeEqU16> Ord for FixedI16<Fract>
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<Fract: LeEqU16> PartialEq<FixedI16<Fract>> for FixedI16<Fract>
[src]
impl<Fract: LeEqU16> PartialOrd<FixedI16<Fract>> for FixedI16<Fract>
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<Fract: LeEqU16> PrimitiveSimdValue for FixedI16<Fract>
[src]
impl<Fract: Send + Sync + 'static> RealField for FixedI16<Fract> where
Fract: Unsigned + LeEqU16 + IsLessOrEqual<U15, Output = True> + IsLessOrEqual<U14, Output = True> + IsLessOrEqual<U13, Output = True> + IsLessOrEqual<U12, Output = True>,
[src]
Fract: Unsigned + LeEqU16 + IsLessOrEqual<U15, Output = True> + IsLessOrEqual<U14, Output = True> + IsLessOrEqual<U13, Output = True> + IsLessOrEqual<U12, Output = True>,
fn is_sign_positive(self) -> bool
[src]
fn is_sign_negative(self) -> bool
[src]
fn copysign(self, sign: Self) -> Self
[src]
fn max(self, other: Self) -> Self
[src]
fn min(self, other: Self) -> Self
[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
fn atan2(self, other: Self) -> Self
[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: LeEqU16> RelativeEq<FixedI16<Fract>> for FixedI16<Fract>
[src]
fn default_max_relative() -> Self::Epsilon
[src]
fn relative_eq(
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
[src]
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
fn relative_ne(
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
[src]
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
impl<Fract: LeEqU16> Rem<FixedI16<Fract>> for FixedI16<Fract>
[src]
type Output = Self
The resulting type after applying the %
operator.
fn rem(self, rhs: Self) -> Self
[src]
impl<Fract: LeEqU16> Rem<i16> for FixedI16<Fract>
[src]
type Output = Self
The resulting type after applying the %
operator.
fn rem(self, rhs: i16) -> Self
[src]
impl<Fract: LeEqU16> RemAssign<FixedI16<Fract>> for FixedI16<Fract>
[src]
fn rem_assign(&mut self, rhs: Self)
[src]
impl<Fract: LeEqU16> RemAssign<i16> for FixedI16<Fract>
[src]
fn rem_assign(&mut self, rhs: i16)
[src]
impl<Fract: LeEqU16> Serialize for FixedI16<Fract>
[src]
impl<Fract: LeEqU16> Signed for FixedI16<Fract>
[src]
fn abs(&self) -> Self
[src]
fn abs_sub(&self, other: &Self) -> Self
[src]
fn signum(&self) -> Self
[src]
fn is_positive(&self) -> bool
[src]
fn is_negative(&self) -> bool
[src]
impl<Fract: LeEqU16> SimdValue for FixedI16<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
.
fn lanes() -> usize
[src]
fn splat(val: Self::Element) -> Self
[src]
fn extract(&self, _: usize) -> Self::Element
[src]
unsafe fn extract_unchecked(&self, _: usize) -> Self::Element
[src]
fn replace(&mut self, _: usize, val: Self::Element)
[src]
unsafe fn replace_unchecked(&mut self, _: usize, val: Self::Element)
[src]
fn select(self, cond: Self::SimdBool, other: Self) -> Self
[src]
fn map_lanes(self, f: impl Fn(Self::Element) -> Self::Element) -> Self where
Self: Clone,
[src]
Self: Clone,
fn zip_map_lanes(
self,
b: Self,
f: impl Fn(Self::Element, Self::Element) -> Self::Element
) -> Self where
Self: Clone,
[src]
self,
b: Self,
f: impl Fn(Self::Element, Self::Element) -> Self::Element
) -> Self where
Self: Clone,
impl<Fract: LeEqU16> Sub<FixedI16<Fract>> for FixedI16<Fract>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Self
[src]
impl<Fract: LeEqU16> SubAssign<FixedI16<Fract>> for FixedI16<Fract>
[src]
fn sub_assign(&mut self, rhs: Self)
[src]
impl<Fract: LeEqU16> SubsetOf<FixedI16<Fract>> for f64
[src]
fn to_superset(&self) -> FixedI16<Fract>
[src]
fn from_superset(element: &FixedI16<Fract>) -> Option<Self>
[src]
fn from_superset_unchecked(element: &FixedI16<Fract>) -> Self
[src]
fn is_in_subset(_: &FixedI16<Fract>) -> bool
[src]
impl<Fract: LeEqU16> SubsetOf<FixedI16<Fract>> for FixedI16<Fract>
[src]
fn to_superset(&self) -> FixedI16<Fract>
[src]
fn from_superset(element: &FixedI16<Fract>) -> Option<Self>
[src]
fn from_superset_unchecked(element: &FixedI16<Fract>) -> Self
[src]
fn is_in_subset(_: &FixedI16<Fract>) -> bool
[src]
impl<Fract: LeEqU16> UlpsEq<FixedI16<Fract>> for FixedI16<Fract>
[src]
fn default_max_ulps() -> u32
[src]
fn ulps_eq(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool
[src]
fn ulps_ne(&self, other: &Rhs, epsilon: Self::Epsilon, max_ulps: u32) -> bool
[src]
impl<Fract: LeEqU16> Zero for FixedI16<Fract>
[src]
Auto Trait Implementations
impl<Fract> RefUnwindSafe for FixedI16<Fract> where
Fract: RefUnwindSafe,
Fract: RefUnwindSafe,
impl<Fract> Send for FixedI16<Fract> where
Fract: Send,
Fract: Send,
impl<Fract> Sync for FixedI16<Fract> where
Fract: Sync,
Fract: Sync,
impl<Fract> Unpin for FixedI16<Fract> where
Fract: Unpin,
Fract: Unpin,
impl<Fract> UnwindSafe for FixedI16<Fract> where
Fract: UnwindSafe,
Fract: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> Cast<U> for T where
U: FromCast<T>,
U: FromCast<T>,
pub fn cast(self) -> U
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> FromBits<T> for T
pub fn from_bits(t: T) -> T
impl<T> FromCast<T> for T
pub fn from_cast(t: T) -> T
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> IntoBits<U> for T where
U: FromBits<T>,
U: FromBits<T>,
pub fn into_bits(self) -> U
impl<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>,
[src]
Dst: LosslessTryFrom<Src>,
pub fn lossless_try_into(self) -> Option<Dst>
[src]
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>,
[src]
Dst: LossyFrom<Src>,
pub fn lossy_into(self) -> Dst
[src]
impl<T> NumAssign for T where
T: Num + NumAssignOps<T>,
[src]
T: Num + NumAssignOps<T>,
impl<T, Rhs> NumAssignOps<Rhs> for T where
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
[src]
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
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]
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,