pub struct SignedUnitInterval<T = f32>(/* private fields */);Expand description
A floating-point value constrained to the closed signed unit interval [-1, 1].
SignedUnitInterval is useful for normalized signed values such as direction,
balance, centered offsets, joystick axes, and correlation-like coefficients.
Implementations§
Source§impl<T: UnitIntervalFloat> SignedUnitInterval<T>
impl<T: UnitIntervalFloat> SignedUnitInterval<T>
Sourcepub fn new(v: T) -> Option<Self>
pub fn new(v: T) -> Option<Self>
Creates a value if v is inside [-1, 1].
Returns None for values outside the interval and for NaN.
Sourcepub const unsafe fn new_unchecked(v: T) -> Self
Available on crate feature unsafe only.
pub const unsafe fn new_unchecked(v: T) -> Self
unsafe only.Creates a value without checking that v is inside [-1, 1].
§Safety
The caller must guarantee that v is greater than or equal to negative
one, less than or equal to one, and not NaN.
Sourcepub fn contains(v: T) -> bool
pub fn contains(v: T) -> bool
Returns whether v is inside [-1, 1].
NaN is not contained in the interval.
Sourcepub fn saturating(v: T) -> Self
pub fn saturating(v: T) -> Self
Creates a value by clamping v into [-1, 1].
NaN is treated as zero.
Sourcepub const fn into_inner(self) -> T
pub const fn into_inner(self) -> T
Consumes the wrapper and returns the inner floating-point value.
Sourcepub fn is_neg_one(self) -> bool
pub fn is_neg_one(self) -> bool
Returns whether this value is exactly negative one.
Sourcepub fn complement(self) -> T
pub fn complement(self) -> T
Returns 1 - self.
Sourcepub fn min<R: Into<Self>>(self, rhs: R) -> Self
pub fn min<R: Into<Self>>(self, rhs: R) -> Self
Returns the smaller of two signed unit interval values.
Sourcepub fn max<R: Into<Self>>(self, rhs: R) -> Self
pub fn max<R: Into<Self>>(self, rhs: R) -> Self
Returns the larger of two signed unit interval values.
Sourcepub fn midpoint<R: Into<Self>>(self, rhs: R) -> Self
pub fn midpoint<R: Into<Self>>(self, rhs: R) -> Self
Returns the midpoint between two signed unit interval values.
Sourcepub fn distance_to<R: Into<Self>>(self, rhs: R) -> T
pub fn distance_to<R: Into<Self>>(self, rhs: R) -> T
Returns the absolute distance between two signed unit interval values.
Sourcepub fn checked_add<R: Into<Self>>(self, rhs: R) -> Option<Self>
pub fn checked_add<R: Into<Self>>(self, rhs: R) -> Option<Self>
Adds two values, returning None if the result is outside [-1, 1].
Sourcepub unsafe fn add_unchecked<R: Into<Self>>(self, rhs: R) -> Self
Available on crate feature unsafe only.
pub unsafe fn add_unchecked<R: Into<Self>>(self, rhs: R) -> Self
unsafe only.Adds two values without checking that the result is inside [-1, 1].
§Safety
The caller must guarantee that self + rhs is inside [-1, 1] and not
NaN.
Sourcepub fn saturating_add<R: Into<Self>>(self, rhs: R) -> Self
pub fn saturating_add<R: Into<Self>>(self, rhs: R) -> Self
Adds two values and clamps the result into [-1, 1].
Sourcepub fn checked_sub<R: Into<Self>>(self, rhs: R) -> Option<Self>
pub fn checked_sub<R: Into<Self>>(self, rhs: R) -> Option<Self>
Subtracts rhs, returning None if the result is outside [-1, 1].
Sourcepub unsafe fn sub_unchecked<R: Into<Self>>(self, rhs: R) -> Self
Available on crate feature unsafe only.
pub unsafe fn sub_unchecked<R: Into<Self>>(self, rhs: R) -> Self
unsafe only.Subtracts rhs without checking that the result is inside [-1, 1].
§Safety
The caller must guarantee that self - rhs is inside [-1, 1] and not
NaN.
Sourcepub fn saturating_sub<R: Into<Self>>(self, rhs: R) -> Self
pub fn saturating_sub<R: Into<Self>>(self, rhs: R) -> Self
Subtracts rhs and clamps the result into [-1, 1].
Sourcepub fn checked_div<R: Into<Self>>(self, rhs: R) -> Option<Self>
pub fn checked_div<R: Into<Self>>(self, rhs: R) -> Option<Self>
Divides by rhs, returning None if the result is outside [-1, 1].
Sourcepub unsafe fn div_unchecked<R: Into<Self>>(self, rhs: R) -> Self
Available on crate feature unsafe only.
pub unsafe fn div_unchecked<R: Into<Self>>(self, rhs: R) -> Self
unsafe only.Divides by rhs without checking that the result is inside [-1, 1].
§Safety
The caller must guarantee that self / rhs is inside [-1, 1] and not
NaN.
Sourcepub fn saturating_div<R: Into<Self>>(self, rhs: R) -> Self
pub fn saturating_div<R: Into<Self>>(self, rhs: R) -> Self
Divides by rhs and clamps the result into [-1, 1].
Sourcepub fn checked_scale(self, factor: T) -> Option<Self>
pub fn checked_scale(self, factor: T) -> Option<Self>
Multiplies by an arbitrary float, returning None if the result is outside [-1, 1].
Sourcepub unsafe fn scale_unchecked(self, factor: T) -> Self
Available on crate feature unsafe only.
pub unsafe fn scale_unchecked(self, factor: T) -> Self
unsafe only.Multiplies by an arbitrary float without checking that the result is
inside [-1, 1].
§Safety
The caller must guarantee that self * factor is inside [-1, 1] and
not NaN.
Sourcepub fn saturating_scale(self, factor: T) -> Self
pub fn saturating_scale(self, factor: T) -> Self
Multiplies by an arbitrary float and clamps the result into [-1, 1].
Source§impl SignedUnitInterval<f32>
impl SignedUnitInterval<f32>
Sourcepub fn abs(self) -> UnitInterval<f32>
pub fn abs(self) -> UnitInterval<f32>
Returns the absolute value.
Sourcepub fn is_sign_positive(self) -> bool
pub fn is_sign_positive(self) -> bool
Returns true if this value is positive zero or positive.
Sourcepub fn is_sign_negative(self) -> bool
pub fn is_sign_negative(self) -> bool
Returns true if this value is negative zero or negative.
Sourcepub fn is_infinite(self) -> bool
pub fn is_infinite(self) -> bool
Returns false; signed unit interval values cannot be infinite.
Source§impl SignedUnitInterval<f32>
impl SignedUnitInterval<f32>
Sourcepub fn floor(self) -> Self
Available on crate features std only.
pub fn floor(self) -> Self
std only.Returns the largest integer less than or equal to this value.
Sourcepub fn ceil(self) -> Self
Available on crate features std only.
pub fn ceil(self) -> Self
std only.Returns the smallest integer greater than or equal to this value.
Sourcepub fn round(self) -> Self
Available on crate features std only.
pub fn round(self) -> Self
std only.Returns the nearest integer to this value, rounding halfway cases away from zero.
Sourcepub fn trunc(self) -> Self
Available on crate features std only.
pub fn trunc(self) -> Self
std only.Returns the integer part of this value.
Sourcepub fn fract(self) -> Self
Available on crate features std only.
pub fn fract(self) -> Self
std only.Returns the fractional part of this value.
Sourcepub fn powi(self, n: i32) -> f32
Available on crate features std only.
pub fn powi(self, n: i32) -> f32
std only.Raises this value to an integer power.
Sourcepub fn powf(self, n: f32) -> f32
Available on crate features std only.
pub fn powf(self, n: f32) -> f32
std only.Raises this value to a floating-point power.
Sourcepub fn mul_add(self, a: f32, b: f32) -> f32
Available on crate features std only.
pub fn mul_add(self, a: f32, b: f32) -> f32
std only.Computes self * a + b with one rounding error.
Sourcepub fn div_euclid(self, rhs: f32) -> f32
Available on crate features std only.
pub fn div_euclid(self, rhs: f32) -> f32
std only.Returns the Euclidean division of this value by rhs.
Sourcepub fn rem_euclid(self, rhs: f32) -> f32
Available on crate features std only.
pub fn rem_euclid(self, rhs: f32) -> f32
std only.Returns the least non-negative remainder of this value divided by rhs.
Sourcepub fn log(self, base: f32) -> f32
Available on crate features std only.
pub fn log(self, base: f32) -> f32
std only.Returns the logarithm with respect to an arbitrary base.
Sourcepub fn cos(self) -> UnitInterval<f32>
Available on crate features std only.
pub fn cos(self) -> UnitInterval<f32>
std only.Returns the cosine, in radians.
Sourcepub fn sin_cos(self) -> (Self, UnitInterval<f32>)
Available on crate features std only.
pub fn sin_cos(self) -> (Self, UnitInterval<f32>)
std only.Returns both sine and cosine, in radians.
Sourcepub fn acos(self) -> f32
Available on crate features std only.
pub fn acos(self) -> f32
std only.Returns the arccosine, in radians.
Sourcepub fn atan(self) -> Self
Available on crate features std only.
pub fn atan(self) -> Self
std only.Returns the arctangent, in radians.
Sourcepub fn atan2(self, other: f32) -> f32
Available on crate features std only.
pub fn atan2(self, other: f32) -> f32
std only.Returns the four-quadrant arctangent of self and other, in radians.
Sourcepub fn asinh(self) -> Self
Available on crate features std only.
pub fn asinh(self) -> Self
std only.Returns the inverse hyperbolic sine.
Sourcepub fn acosh(self) -> f32
Available on crate features std only.
pub fn acosh(self) -> f32
std only.Returns the inverse hyperbolic cosine.
Source§impl SignedUnitInterval<f64>
impl SignedUnitInterval<f64>
Sourcepub fn abs(self) -> UnitInterval<f64>
pub fn abs(self) -> UnitInterval<f64>
Returns the absolute value.
Sourcepub fn is_sign_positive(self) -> bool
pub fn is_sign_positive(self) -> bool
Returns true if this value is positive zero or positive.
Sourcepub fn is_sign_negative(self) -> bool
pub fn is_sign_negative(self) -> bool
Returns true if this value is negative zero or negative.
Sourcepub fn is_infinite(self) -> bool
pub fn is_infinite(self) -> bool
Returns false; signed unit interval values cannot be infinite.
Source§impl SignedUnitInterval<f64>
impl SignedUnitInterval<f64>
Sourcepub fn floor(self) -> Self
Available on crate features std only.
pub fn floor(self) -> Self
std only.Returns the largest integer less than or equal to this value.
Sourcepub fn ceil(self) -> Self
Available on crate features std only.
pub fn ceil(self) -> Self
std only.Returns the smallest integer greater than or equal to this value.
Sourcepub fn round(self) -> Self
Available on crate features std only.
pub fn round(self) -> Self
std only.Returns the nearest integer to this value, rounding halfway cases away from zero.
Sourcepub fn trunc(self) -> Self
Available on crate features std only.
pub fn trunc(self) -> Self
std only.Returns the integer part of this value.
Sourcepub fn fract(self) -> Self
Available on crate features std only.
pub fn fract(self) -> Self
std only.Returns the fractional part of this value.
Sourcepub fn powi(self, n: i32) -> f64
Available on crate features std only.
pub fn powi(self, n: i32) -> f64
std only.Raises this value to an integer power.
Sourcepub fn powf(self, n: f64) -> f64
Available on crate features std only.
pub fn powf(self, n: f64) -> f64
std only.Raises this value to a floating-point power.
Sourcepub fn mul_add(self, a: f64, b: f64) -> f64
Available on crate features std only.
pub fn mul_add(self, a: f64, b: f64) -> f64
std only.Computes self * a + b with one rounding error.
Sourcepub fn div_euclid(self, rhs: f64) -> f64
Available on crate features std only.
pub fn div_euclid(self, rhs: f64) -> f64
std only.Returns the Euclidean division of this value by rhs.
Sourcepub fn rem_euclid(self, rhs: f64) -> f64
Available on crate features std only.
pub fn rem_euclid(self, rhs: f64) -> f64
std only.Returns the least non-negative remainder of this value divided by rhs.
Sourcepub fn log(self, base: f64) -> f64
Available on crate features std only.
pub fn log(self, base: f64) -> f64
std only.Returns the logarithm with respect to an arbitrary base.
Sourcepub fn cos(self) -> UnitInterval<f64>
Available on crate features std only.
pub fn cos(self) -> UnitInterval<f64>
std only.Returns the cosine, in radians.
Sourcepub fn sin_cos(self) -> (Self, UnitInterval<f64>)
Available on crate features std only.
pub fn sin_cos(self) -> (Self, UnitInterval<f64>)
std only.Returns both sine and cosine, in radians.
Sourcepub fn acos(self) -> f64
Available on crate features std only.
pub fn acos(self) -> f64
std only.Returns the arccosine, in radians.
Sourcepub fn atan(self) -> Self
Available on crate features std only.
pub fn atan(self) -> Self
std only.Returns the arctangent, in radians.
Sourcepub fn atan2(self, other: f64) -> f64
Available on crate features std only.
pub fn atan2(self, other: f64) -> f64
std only.Returns the four-quadrant arctangent of self and other, in radians.
Sourcepub fn asinh(self) -> Self
Available on crate features std only.
pub fn asinh(self) -> Self
std only.Returns the inverse hyperbolic sine.
Sourcepub fn acosh(self) -> f64
Available on crate features std only.
pub fn acosh(self) -> f64
std only.Returns the inverse hyperbolic cosine.
Trait Implementations§
Source§impl Add<SignedUnitInterval<f64>> for UnitInterval<f64>
impl Add<SignedUnitInterval<f64>> for UnitInterval<f64>
Source§impl Add<SignedUnitInterval> for UnitInterval<f32>
impl Add<SignedUnitInterval> for UnitInterval<f32>
Source§impl Add<SignedUnitInterval> for f32
impl Add<SignedUnitInterval> for f32
Source§impl Add<UnitInterval<f64>> for SignedUnitInterval<f64>
impl Add<UnitInterval<f64>> for SignedUnitInterval<f64>
Source§impl Add<UnitInterval> for SignedUnitInterval<f32>
impl Add<UnitInterval> for SignedUnitInterval<f32>
Source§impl Add for SignedUnitInterval<f32>
impl Add for SignedUnitInterval<f32>
Source§impl Add for SignedUnitInterval<f64>
impl Add for SignedUnitInterval<f64>
Source§impl<'a> Arbitrary<'a> for SignedUnitInterval<f32>
Available on crate feature arbitrary only.
impl<'a> Arbitrary<'a> for SignedUnitInterval<f32>
arbitrary only.Source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Self from the given unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Unstructured this type
needs to construct itself. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Self from the entirety of the given
unstructured data. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Unstructured this type
needs to construct itself. Read moreSource§impl<'a> Arbitrary<'a> for SignedUnitInterval<f64>
Available on crate feature arbitrary only.
impl<'a> Arbitrary<'a> for SignedUnitInterval<f64>
arbitrary only.Source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Self from the given unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Unstructured this type
needs to construct itself. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Self from the entirety of the given
unstructured data. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Unstructured this type
needs to construct itself. Read moreSource§impl<T> Archive for SignedUnitInterval<T>where
T: Archive,
impl<T> Archive for SignedUnitInterval<T>where
T: Archive,
Source§type Archived = ArchivedSignedUnitInterval<T>
type Archived = ArchivedSignedUnitInterval<T>
Source§type Resolver = SignedUnitIntervalResolver<T>
type Resolver = SignedUnitIntervalResolver<T>
Source§fn resolve(&self, resolver: Self::Resolver, out: Place<Self::Archived>)
fn resolve(&self, resolver: Self::Resolver, out: Place<Self::Archived>)
Source§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
serialize. Read moreSource§impl AsPrimitive<SignedUnitInterval<f64>> for SignedUnitInterval<f32>
Available on crate feature num-traits only.
impl AsPrimitive<SignedUnitInterval<f64>> for SignedUnitInterval<f32>
num-traits only.Source§fn as_(self) -> SignedUnitInterval<f64>
fn as_(self) -> SignedUnitInterval<f64>
as operator.Source§impl AsPrimitive<SignedUnitInterval<f64>> for SignedUnitInterval<f64>
Available on crate feature num-traits only.
impl AsPrimitive<SignedUnitInterval<f64>> for SignedUnitInterval<f64>
num-traits only.Source§fn as_(self) -> SignedUnitInterval<f64>
fn as_(self) -> SignedUnitInterval<f64>
as operator.Source§impl AsPrimitive<SignedUnitInterval> for SignedUnitInterval<f32>
Available on crate feature num-traits only.
impl AsPrimitive<SignedUnitInterval> for SignedUnitInterval<f32>
num-traits only.Source§fn as_(self) -> SignedUnitInterval<f32>
fn as_(self) -> SignedUnitInterval<f32>
as operator.Source§impl AsPrimitive<SignedUnitInterval> for SignedUnitInterval<f64>
Available on crate feature num-traits only.
impl AsPrimitive<SignedUnitInterval> for SignedUnitInterval<f64>
num-traits only.Source§fn as_(self) -> SignedUnitInterval<f32>
fn as_(self) -> SignedUnitInterval<f32>
as operator.Source§impl AsPrimitive<f32> for SignedUnitInterval<f32>
Available on crate feature num-traits only.
impl AsPrimitive<f32> for SignedUnitInterval<f32>
num-traits only.Source§impl AsPrimitive<f32> for SignedUnitInterval<f64>
Available on crate feature num-traits only.
impl AsPrimitive<f32> for SignedUnitInterval<f64>
num-traits only.Source§impl AsPrimitive<f64> for SignedUnitInterval<f32>
Available on crate feature num-traits only.
impl AsPrimitive<f64> for SignedUnitInterval<f32>
num-traits only.Source§impl AsPrimitive<f64> for SignedUnitInterval<f64>
Available on crate feature num-traits only.
impl AsPrimitive<f64> for SignedUnitInterval<f64>
num-traits only.Source§impl<T> AsRef<T> for SignedUnitInterval<T>
Borrows the inner floating-point value.
impl<T> AsRef<T> for SignedUnitInterval<T>
Borrows the inner floating-point value.
Source§impl Bounded for SignedUnitInterval<f32>
Available on crate feature num-traits only.
impl Bounded for SignedUnitInterval<f32>
num-traits only.Source§impl Bounded for SignedUnitInterval<f64>
Available on crate feature num-traits only.
impl Bounded for SignedUnitInterval<f64>
num-traits only.Source§impl<T> CheckedBitPattern for SignedUnitInterval<T>where
T: UnitIntervalFloat + AnyBitPattern,
Available on crate feature bytemuck only.
impl<T> CheckedBitPattern for SignedUnitInterval<T>where
T: UnitIntervalFloat + AnyBitPattern,
bytemuck only.Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
bits
as &Self.Source§impl CheckedMul for SignedUnitInterval<f32>
Available on crate feature num-traits only.
impl CheckedMul for SignedUnitInterval<f32>
num-traits only.Source§fn checked_mul(&self, v: &Self) -> Option<Self>
fn checked_mul(&self, v: &Self) -> Option<Self>
None is returned.Source§impl CheckedMul for SignedUnitInterval<f64>
Available on crate feature num-traits only.
impl CheckedMul for SignedUnitInterval<f64>
num-traits only.Source§fn checked_mul(&self, v: &Self) -> Option<Self>
fn checked_mul(&self, v: &Self) -> Option<Self>
None is returned.Source§impl CheckedNeg for SignedUnitInterval<f32>
Available on crate feature num-traits only.
impl CheckedNeg for SignedUnitInterval<f32>
num-traits only.Source§fn checked_neg(&self) -> Option<Self>
fn checked_neg(&self) -> Option<Self>
None for results that can’t be represented, like signed MIN
values that can’t be positive, or non-zero unsigned values that can’t be negative. Read moreSource§impl CheckedNeg for SignedUnitInterval<f64>
Available on crate feature num-traits only.
impl CheckedNeg for SignedUnitInterval<f64>
num-traits only.Source§fn checked_neg(&self) -> Option<Self>
fn checked_neg(&self) -> Option<Self>
None for results that can’t be represented, like signed MIN
values that can’t be positive, or non-zero unsigned values that can’t be negative. Read moreSource§impl<T: Clone> Clone for SignedUnitInterval<T>
impl<T: Clone> Clone for SignedUnitInterval<T>
Source§fn clone(&self) -> SignedUnitInterval<T>
fn clone(&self) -> SignedUnitInterval<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl ConstOne for SignedUnitInterval<f32>
Available on crate feature num-traits only.
impl ConstOne for SignedUnitInterval<f32>
num-traits only.Source§impl ConstOne for SignedUnitInterval<f64>
Available on crate feature num-traits only.
impl ConstOne for SignedUnitInterval<f64>
num-traits only.Source§impl<T: Debug> Debug for SignedUnitInterval<T>
impl<T: Debug> Debug for SignedUnitInterval<T>
Source§impl<T: UnitIntervalFloat> Default for SignedUnitInterval<T>
Returns SignedUnitInterval::ZERO.
impl<T: UnitIntervalFloat> Default for SignedUnitInterval<T>
Returns SignedUnitInterval::ZERO.
Source§impl<T> Deref for SignedUnitInterval<T>
Dereferences to the inner floating-point value.
impl<T> Deref for SignedUnitInterval<T>
Dereferences to the inner floating-point value.
Source§impl<'de, T> Deserialize<'de> for SignedUnitInterval<T>where
T: UnitIntervalFloat + Deserialize<'de>,
Available on crate feature serde only.
impl<'de, T> Deserialize<'de> for SignedUnitInterval<T>where
T: UnitIntervalFloat + Deserialize<'de>,
serde only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Source§impl<T, D> Distribution<SignedUnitInterval<T>> for SaturatingSignedUnitIntervalDistribution<D>where
T: UnitIntervalFloat,
D: Distribution<T>,
Available on crate feature rand_distr only.
impl<T, D> Distribution<SignedUnitInterval<T>> for SaturatingSignedUnitIntervalDistribution<D>where
T: UnitIntervalFloat,
D: Distribution<T>,
rand_distr only.Source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> SignedUnitInterval<T>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> SignedUnitInterval<T>
T, using rng as the source of randomness.Source§fn sample_iter<R>(self, rng: R) -> Iter<Self, R, T>
fn sample_iter<R>(self, rng: R) -> Iter<Self, R, T>
T, using rng as
the source of randomness. Read moreSource§impl<T> Distribution<SignedUnitInterval<T>> for StandardUniform
Available on crate feature rand_distr only.
impl<T> Distribution<SignedUnitInterval<T>> for StandardUniform
rand_distr only.Source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> SignedUnitInterval<T>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> SignedUnitInterval<T>
T, using rng as the source of randomness.Source§fn sample_iter<R>(self, rng: R) -> Iter<Self, R, T>
fn sample_iter<R>(self, rng: R) -> Iter<Self, R, T>
T, using rng as
the source of randomness. Read moreSource§impl Div<SignedUnitInterval<f64>> for UnitInterval<f64>
impl Div<SignedUnitInterval<f64>> for UnitInterval<f64>
Source§impl Div<SignedUnitInterval> for UnitInterval<f32>
impl Div<SignedUnitInterval> for UnitInterval<f32>
Source§impl Div<SignedUnitInterval> for f32
impl Div<SignedUnitInterval> for f32
Source§impl Div<UnitInterval<f64>> for SignedUnitInterval<f64>
impl Div<UnitInterval<f64>> for SignedUnitInterval<f64>
Source§impl Div<UnitInterval> for SignedUnitInterval<f32>
impl Div<UnitInterval> for SignedUnitInterval<f32>
Source§impl Div for SignedUnitInterval<f32>
impl Div for SignedUnitInterval<f32>
Source§impl Div for SignedUnitInterval<f64>
impl Div for SignedUnitInterval<f64>
Source§impl From<SignedUnitInterval<f64>> for SignedUnitInterval<f32>
Converts a SignedUnitInterval<f64> into SignedUnitInterval<f32>.
impl From<SignedUnitInterval<f64>> for SignedUnitInterval<f32>
Converts a SignedUnitInterval<f64> into SignedUnitInterval<f32>.
Source§fn from(u: SignedUnitInterval<f64>) -> Self
fn from(u: SignedUnitInterval<f64>) -> Self
Source§impl From<SignedUnitInterval<f64>> for f64
impl From<SignedUnitInterval<f64>> for f64
Source§fn from(u: SignedUnitInterval<f64>) -> Self
fn from(u: SignedUnitInterval<f64>) -> Self
Source§impl From<SignedUnitInterval> for SignedUnitInterval<f64>
Converts a SignedUnitInterval<f32> into SignedUnitInterval<f64>.
impl From<SignedUnitInterval> for SignedUnitInterval<f64>
Converts a SignedUnitInterval<f32> into SignedUnitInterval<f64>.
Source§fn from(u: SignedUnitInterval<f32>) -> Self
fn from(u: SignedUnitInterval<f32>) -> Self
Source§impl From<SignedUnitInterval> for f32
impl From<SignedUnitInterval> for f32
Source§fn from(u: SignedUnitInterval<f32>) -> Self
fn from(u: SignedUnitInterval<f32>) -> Self
Source§impl From<SignedUnitInterval> for f64
Converts a SignedUnitInterval<f32> into its inner value widened to f64.
impl From<SignedUnitInterval> for f64
Converts a SignedUnitInterval<f32> into its inner value widened to f64.
Source§fn from(u: SignedUnitInterval) -> Self
fn from(u: SignedUnitInterval) -> Self
Source§impl<T: UnitIntervalFloat> From<UnitInterval<T>> for SignedUnitInterval<T>
impl<T: UnitIntervalFloat> From<UnitInterval<T>> for SignedUnitInterval<T>
Source§fn from(u: UnitInterval<T>) -> Self
fn from(u: UnitInterval<T>) -> Self
Source§impl FromPrimitive for SignedUnitInterval<f32>
Available on crate feature num-traits only.
impl FromPrimitive for SignedUnitInterval<f32>
num-traits only.Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_f32(n: f32) -> Option<Self>
fn from_f32(n: f32) -> Option<Self>
f32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_f64(n: f64) -> Option<Self>
fn from_f64(n: f64) -> Option<Self>
f64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§impl FromPrimitive for SignedUnitInterval<f64>
Available on crate feature num-traits only.
impl FromPrimitive for SignedUnitInterval<f64>
num-traits only.Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_f32(n: f32) -> Option<Self>
fn from_f32(n: f32) -> Option<Self>
f32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_f64(n: f64) -> Option<Self>
fn from_f64(n: f64) -> Option<Self>
f64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§impl<T: UnitIntervalFloat> Mul<SignedUnitInterval<T>> for UnitInterval<T>
Multiplies a unit interval by a signed unit interval.
impl<T: UnitIntervalFloat> Mul<SignedUnitInterval<T>> for UnitInterval<T>
Multiplies a unit interval by a signed unit interval.
Source§type Output = SignedUnitInterval<T>
type Output = SignedUnitInterval<T>
* operator.Source§impl Mul<SignedUnitInterval> for f32
impl Mul<SignedUnitInterval> for f32
Source§impl<T: UnitIntervalFloat> Mul<UnitInterval<T>> for SignedUnitInterval<T>
Multiplies a signed unit interval by a unit interval.
impl<T: UnitIntervalFloat> Mul<UnitInterval<T>> for SignedUnitInterval<T>
Multiplies a signed unit interval by a unit interval.
Source§type Output = SignedUnitInterval<T>
type Output = SignedUnitInterval<T>
* operator.Source§impl<T: UnitIntervalFloat> Mul for SignedUnitInterval<T>
Multiplies two signed unit interval values.
impl<T: UnitIntervalFloat> Mul for SignedUnitInterval<T>
Multiplies two signed unit interval values.
Source§impl Neg for SignedUnitInterval<f32>
impl Neg for SignedUnitInterval<f32>
Source§impl Neg for SignedUnitInterval<f64>
impl Neg for SignedUnitInterval<f64>
Source§impl NumCast for SignedUnitInterval<f32>
Available on crate feature num-traits only.
impl NumCast for SignedUnitInterval<f32>
num-traits only.Source§impl NumCast for SignedUnitInterval<f64>
Available on crate feature num-traits only.
impl NumCast for SignedUnitInterval<f64>
num-traits only.Source§impl One for SignedUnitInterval<f32>
Available on crate feature num-traits only.
impl One for SignedUnitInterval<f32>
num-traits only.Source§impl One for SignedUnitInterval<f64>
Available on crate feature num-traits only.
impl One for SignedUnitInterval<f64>
num-traits only.Source§impl PartialEq<SignedUnitInterval> for f32
impl PartialEq<SignedUnitInterval> for f32
Source§impl<T: PartialEq> PartialEq for SignedUnitInterval<T>
impl<T: PartialEq> PartialEq for SignedUnitInterval<T>
Source§impl PartialOrd<SignedUnitInterval<f64>> for f64
impl PartialOrd<SignedUnitInterval<f64>> for f64
Source§impl PartialOrd<SignedUnitInterval> for f32
impl PartialOrd<SignedUnitInterval> for f32
Source§impl PartialOrd<f32> for SignedUnitInterval<f32>
impl PartialOrd<f32> for SignedUnitInterval<f32>
Source§impl PartialOrd<f64> for SignedUnitInterval<f64>
impl PartialOrd<f64> for SignedUnitInterval<f64>
Source§impl<T: PartialOrd> PartialOrd for SignedUnitInterval<T>
impl<T: PartialOrd> PartialOrd for SignedUnitInterval<T>
Source§impl<T: UnitIntervalFloat> Pow<&u16> for &SignedUnitInterval<T>
Available on crate feature num-traits only.
impl<T: UnitIntervalFloat> Pow<&u16> for &SignedUnitInterval<T>
num-traits only.Source§impl<T: UnitIntervalFloat> Pow<&u16> for SignedUnitInterval<T>
Available on crate feature num-traits only.
impl<T: UnitIntervalFloat> Pow<&u16> for SignedUnitInterval<T>
num-traits only.Source§impl<T: UnitIntervalFloat> Pow<&u32> for &SignedUnitInterval<T>
Available on crate feature num-traits only.
impl<T: UnitIntervalFloat> Pow<&u32> for &SignedUnitInterval<T>
num-traits only.Source§impl<T: UnitIntervalFloat> Pow<&u32> for SignedUnitInterval<T>
Available on crate feature num-traits only.
impl<T: UnitIntervalFloat> Pow<&u32> for SignedUnitInterval<T>
num-traits only.Source§impl<T: UnitIntervalFloat> Pow<&u8> for &SignedUnitInterval<T>
Available on crate feature num-traits only.
impl<T: UnitIntervalFloat> Pow<&u8> for &SignedUnitInterval<T>
num-traits only.Source§impl<T: UnitIntervalFloat> Pow<&u8> for SignedUnitInterval<T>
Available on crate feature num-traits only.
impl<T: UnitIntervalFloat> Pow<&u8> for SignedUnitInterval<T>
num-traits only.Source§impl<T: UnitIntervalFloat> Pow<&usize> for &SignedUnitInterval<T>
Available on crate feature num-traits only.
impl<T: UnitIntervalFloat> Pow<&usize> for &SignedUnitInterval<T>
num-traits only.Source§impl<T: UnitIntervalFloat> Pow<&usize> for SignedUnitInterval<T>
Available on crate feature num-traits only.
impl<T: UnitIntervalFloat> Pow<&usize> for SignedUnitInterval<T>
num-traits only.Source§impl<T: UnitIntervalFloat> Pow<u16> for &SignedUnitInterval<T>
Available on crate feature num-traits only.
impl<T: UnitIntervalFloat> Pow<u16> for &SignedUnitInterval<T>
num-traits only.Source§impl<T: UnitIntervalFloat> Pow<u16> for SignedUnitInterval<T>
Available on crate feature num-traits only.
impl<T: UnitIntervalFloat> Pow<u16> for SignedUnitInterval<T>
num-traits only.Source§impl<T: UnitIntervalFloat> Pow<u32> for &SignedUnitInterval<T>
Available on crate feature num-traits only.
impl<T: UnitIntervalFloat> Pow<u32> for &SignedUnitInterval<T>
num-traits only.Source§impl<T: UnitIntervalFloat> Pow<u32> for SignedUnitInterval<T>
Available on crate feature num-traits only.
impl<T: UnitIntervalFloat> Pow<u32> for SignedUnitInterval<T>
num-traits only.Source§impl<T: UnitIntervalFloat> Pow<u8> for &SignedUnitInterval<T>
Available on crate feature num-traits only.
impl<T: UnitIntervalFloat> Pow<u8> for &SignedUnitInterval<T>
num-traits only.Source§impl<T: UnitIntervalFloat> Pow<u8> for SignedUnitInterval<T>
Available on crate feature num-traits only.
impl<T: UnitIntervalFloat> Pow<u8> for SignedUnitInterval<T>
num-traits only.Source§impl<T: UnitIntervalFloat> Pow<usize> for &SignedUnitInterval<T>
Available on crate feature num-traits only.
impl<T: UnitIntervalFloat> Pow<usize> for &SignedUnitInterval<T>
num-traits only.Source§impl<T: UnitIntervalFloat> Pow<usize> for SignedUnitInterval<T>
Available on crate feature num-traits only.
impl<T: UnitIntervalFloat> Pow<usize> for SignedUnitInterval<T>
num-traits only.Source§impl Rem<SignedUnitInterval<f64>> for UnitInterval<f64>
impl Rem<SignedUnitInterval<f64>> for UnitInterval<f64>
Source§impl Rem<SignedUnitInterval> for UnitInterval<f32>
impl Rem<SignedUnitInterval> for UnitInterval<f32>
Source§impl Rem<SignedUnitInterval> for f32
impl Rem<SignedUnitInterval> for f32
Source§impl Rem<UnitInterval<f64>> for SignedUnitInterval<f64>
impl Rem<UnitInterval<f64>> for SignedUnitInterval<f64>
Source§impl Rem<UnitInterval> for SignedUnitInterval<f32>
impl Rem<UnitInterval> for SignedUnitInterval<f32>
Source§impl Rem for SignedUnitInterval<f32>
impl Rem for SignedUnitInterval<f32>
Source§impl Rem for SignedUnitInterval<f64>
impl Rem for SignedUnitInterval<f64>
Source§impl SaturatingMul for SignedUnitInterval<f32>
Available on crate feature num-traits only.
impl SaturatingMul for SignedUnitInterval<f32>
num-traits only.Source§fn saturating_mul(&self, v: &Self) -> Self
fn saturating_mul(&self, v: &Self) -> Self
self * other, saturating at the relevant high or low boundary of
the type.Source§impl SaturatingMul for SignedUnitInterval<f64>
Available on crate feature num-traits only.
impl SaturatingMul for SignedUnitInterval<f64>
num-traits only.Source§fn saturating_mul(&self, v: &Self) -> Self
fn saturating_mul(&self, v: &Self) -> Self
self * other, saturating at the relevant high or low boundary of
the type.Source§impl<__S: Fallible + ?Sized, T> Serialize<__S> for SignedUnitInterval<T>where
T: Serialize<__S>,
impl<__S: Fallible + ?Sized, T> Serialize<__S> for SignedUnitInterval<T>where
T: Serialize<__S>,
Source§impl<T: Serialize> Serialize for SignedUnitInterval<T>
Available on crate feature serde only.
impl<T: Serialize> Serialize for SignedUnitInterval<T>
serde only.Source§impl Sub<SignedUnitInterval<f64>> for UnitInterval<f64>
impl Sub<SignedUnitInterval<f64>> for UnitInterval<f64>
Source§impl Sub<SignedUnitInterval> for UnitInterval<f32>
impl Sub<SignedUnitInterval> for UnitInterval<f32>
Source§impl Sub<SignedUnitInterval> for f32
impl Sub<SignedUnitInterval> for f32
Source§impl Sub<UnitInterval<f64>> for SignedUnitInterval<f64>
impl Sub<UnitInterval<f64>> for SignedUnitInterval<f64>
Source§impl Sub<UnitInterval> for SignedUnitInterval<f32>
impl Sub<UnitInterval> for SignedUnitInterval<f32>
Source§impl Sub for SignedUnitInterval<f32>
impl Sub for SignedUnitInterval<f32>
Source§impl Sub for SignedUnitInterval<f64>
impl Sub for SignedUnitInterval<f64>
Source§impl ToBytes for SignedUnitInterval<f32>
Available on crate feature num-traits only.
impl ToBytes for SignedUnitInterval<f32>
num-traits only.type Bytes = <f32 as ToBytes>::Bytes
Source§fn to_be_bytes(&self) -> Self::Bytes
fn to_be_bytes(&self) -> Self::Bytes
Source§fn to_le_bytes(&self) -> Self::Bytes
fn to_le_bytes(&self) -> Self::Bytes
Source§fn to_ne_bytes(&self) -> Self::Bytes
fn to_ne_bytes(&self) -> Self::Bytes
Source§impl ToBytes for SignedUnitInterval<f64>
Available on crate feature num-traits only.
impl ToBytes for SignedUnitInterval<f64>
num-traits only.type Bytes = <f64 as ToBytes>::Bytes
Source§fn to_be_bytes(&self) -> Self::Bytes
fn to_be_bytes(&self) -> Self::Bytes
Source§fn to_le_bytes(&self) -> Self::Bytes
fn to_le_bytes(&self) -> Self::Bytes
Source§fn to_ne_bytes(&self) -> Self::Bytes
fn to_ne_bytes(&self) -> Self::Bytes
Source§impl ToPrimitive for SignedUnitInterval<f32>
Available on crate feature num-traits only.
impl ToPrimitive for SignedUnitInterval<f32>
num-traits only.Source§fn to_isize(&self) -> Option<isize>
fn to_isize(&self) -> Option<isize>
self to an isize. If the value cannot be
represented by an isize, then None is returned.Source§fn to_i8(&self) -> Option<i8>
fn to_i8(&self) -> Option<i8>
self to an i8. If the value cannot be
represented by an i8, then None is returned.Source§fn to_i16(&self) -> Option<i16>
fn to_i16(&self) -> Option<i16>
self to an i16. If the value cannot be
represented by an i16, then None is returned.Source§fn to_i32(&self) -> Option<i32>
fn to_i32(&self) -> Option<i32>
self to an i32. If the value cannot be
represented by an i32, then None is returned.Source§fn to_i64(&self) -> Option<i64>
fn to_i64(&self) -> Option<i64>
self to an i64. If the value cannot be
represented by an i64, then None is returned.Source§fn to_i128(&self) -> Option<i128>
fn to_i128(&self) -> Option<i128>
self to an i128. If the value cannot be
represented by an i128 (i64 under the default implementation), then
None is returned. Read moreSource§fn to_usize(&self) -> Option<usize>
fn to_usize(&self) -> Option<usize>
self to a usize. If the value cannot be
represented by a usize, then None is returned.Source§fn to_u8(&self) -> Option<u8>
fn to_u8(&self) -> Option<u8>
self to a u8. If the value cannot be
represented by a u8, then None is returned.Source§fn to_u16(&self) -> Option<u16>
fn to_u16(&self) -> Option<u16>
self to a u16. If the value cannot be
represented by a u16, then None is returned.Source§fn to_u32(&self) -> Option<u32>
fn to_u32(&self) -> Option<u32>
self to a u32. If the value cannot be
represented by a u32, then None is returned.Source§fn to_u64(&self) -> Option<u64>
fn to_u64(&self) -> Option<u64>
self to a u64. If the value cannot be
represented by a u64, then None is returned.Source§fn to_u128(&self) -> Option<u128>
fn to_u128(&self) -> Option<u128>
self to a u128. If the value cannot be
represented by a u128 (u64 under the default implementation), then
None is returned. Read moreSource§impl ToPrimitive for SignedUnitInterval<f64>
Available on crate feature num-traits only.
impl ToPrimitive for SignedUnitInterval<f64>
num-traits only.Source§fn to_isize(&self) -> Option<isize>
fn to_isize(&self) -> Option<isize>
self to an isize. If the value cannot be
represented by an isize, then None is returned.Source§fn to_i8(&self) -> Option<i8>
fn to_i8(&self) -> Option<i8>
self to an i8. If the value cannot be
represented by an i8, then None is returned.Source§fn to_i16(&self) -> Option<i16>
fn to_i16(&self) -> Option<i16>
self to an i16. If the value cannot be
represented by an i16, then None is returned.Source§fn to_i32(&self) -> Option<i32>
fn to_i32(&self) -> Option<i32>
self to an i32. If the value cannot be
represented by an i32, then None is returned.Source§fn to_i64(&self) -> Option<i64>
fn to_i64(&self) -> Option<i64>
self to an i64. If the value cannot be
represented by an i64, then None is returned.Source§fn to_i128(&self) -> Option<i128>
fn to_i128(&self) -> Option<i128>
self to an i128. If the value cannot be
represented by an i128 (i64 under the default implementation), then
None is returned. Read moreSource§fn to_usize(&self) -> Option<usize>
fn to_usize(&self) -> Option<usize>
self to a usize. If the value cannot be
represented by a usize, then None is returned.Source§fn to_u8(&self) -> Option<u8>
fn to_u8(&self) -> Option<u8>
self to a u8. If the value cannot be
represented by a u8, then None is returned.Source§fn to_u16(&self) -> Option<u16>
fn to_u16(&self) -> Option<u16>
self to a u16. If the value cannot be
represented by a u16, then None is returned.Source§fn to_u32(&self) -> Option<u32>
fn to_u32(&self) -> Option<u32>
self to a u32. If the value cannot be
represented by a u32, then None is returned.Source§fn to_u64(&self) -> Option<u64>
fn to_u64(&self) -> Option<u64>
self to a u64. If the value cannot be
represented by a u64, then None is returned.Source§fn to_u128(&self) -> Option<u128>
fn to_u128(&self) -> Option<u128>
self to a u128. If the value cannot be
represented by a u128 (u64 under the default implementation), then
None is returned. Read moreSource§impl<T: UnitIntervalFloat> TryFrom<SignedUnitInterval<T>> for UnitInterval<T>
impl<T: UnitIntervalFloat> TryFrom<SignedUnitInterval<T>> for UnitInterval<T>
Source§type Error = UnitIntervalError
type Error = UnitIntervalError
Source§impl<T> Zeroable for SignedUnitInterval<T>where
T: UnitIntervalFloat + Zeroable,
Available on crate feature bytemuck only.
impl<T> Zeroable for SignedUnitInterval<T>where
T: UnitIntervalFloat + Zeroable,
bytemuck only.impl<T: Copy> Copy for SignedUnitInterval<T>
impl<T> NoUninit for SignedUnitInterval<T>where
T: UnitIntervalFloat + NoUninit,
bytemuck only.impl<T> StructuralPartialEq for SignedUnitInterval<T>
Auto Trait Implementations§
impl<T> Freeze for SignedUnitInterval<T>where
T: Freeze,
impl<T> RefUnwindSafe for SignedUnitInterval<T>where
T: RefUnwindSafe,
impl<T> Send for SignedUnitInterval<T>where
T: Send,
impl<T> Sync for SignedUnitInterval<T>where
T: Sync,
impl<T> Unpin for SignedUnitInterval<T>where
T: Unpin,
impl<T> UnsafeUnpin for SignedUnitInterval<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for SignedUnitInterval<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<T> ArchiveUnsized for Twhere
T: Archive,
impl<T> ArchiveUnsized for Twhere
T: Archive,
Source§type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
Archive, it may be
unsized. Read moreSource§fn archived_metadata(
&self,
) -> <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
fn archived_metadata( &self, ) -> <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T> LowerBounded for Twhere
T: Bounded,
impl<T> LowerBounded for Twhere
T: Bounded,
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.