pub struct f8e4m3b11fnuz(/* private fields */);Expand description
Signed 8-bit E4M3 finite-only type with bias 11, unsigned zero, and a single NaN.
Implementations§
Source§impl f8e4m3b11fnuz
impl f8e4m3b11fnuz
Sourcepub const STORAGE_BITS: u32 = 8
pub const STORAGE_BITS: u32 = 8
Number of storage bits used by this format.
Sourcepub const EXPONENT_BITS: u32 = 4
pub const EXPONENT_BITS: u32 = 4
Number of exponent bits in this format.
Sourcepub const MANTISSA_BITS: u32 = 3
pub const MANTISSA_BITS: u32 = 3
Number of stored mantissa bits in this format.
Sourcepub const MANTISSA_DIGITS: u32 = 4
pub const MANTISSA_DIGITS: u32 = 4
Number of significant base-2 mantissa digits in this format.
Sourcepub const EXPONENT_BIAS: i32 = 11
pub const EXPONENT_BIAS: i32 = 11
Exponent bias used by this format.
Sourcepub const MIN_POSITIVE_SUBNORMAL: Self
pub const MIN_POSITIVE_SUBNORMAL: Self
Minimum positive subnormal value.
Raw bits: 0x01.
Sourcepub const MAX_SUBNORMAL: Self
pub const MAX_SUBNORMAL: Self
Maximum subnormal value.
Raw bits: 0x07.
Sourcepub const MIN_POSITIVE: Self
pub const MIN_POSITIVE: Self
Minimum positive normal value.
Raw bits: 0x08.
Sourcepub const EPSILON: Self
pub const EPSILON: Self
Difference between 1.0 and the next larger representable value.
Raw bits: 0x59.
Sourcepub const INFINITY: Self
pub const INFINITY: Self
This format has no infinity; converting positive infinity or overflowing in the positive direction produces this NaN value.
Raw bits: 0x80.
Sourcepub const NEG_INFINITY: Self
pub const NEG_INFINITY: Self
This format has no infinity; converting negative infinity or overflowing in the negative direction produces this NaN value.
Raw bits: 0x80.
Sourcepub const fn from_bits(bits: u8) -> Self
pub const fn from_bits(bits: u8) -> Self
Creates a value from its raw storage bits.
All eight bits are preserved in the byte. For sub-byte formats,
byte values outside the canonical storage range are decoded compatibly
with ml-dtypes raw-byte views and may alias canonical values.
Sourcepub const fn from_le_bytes(bytes: [u8; 1]) -> Self
pub const fn from_le_bytes(bytes: [u8; 1]) -> Self
Creates a value from its little-endian byte representation.
Sourcepub const fn from_be_bytes(bytes: [u8; 1]) -> Self
pub const fn from_be_bytes(bytes: [u8; 1]) -> Self
Creates a value from its big-endian byte representation.
Sourcepub const fn from_ne_bytes(bytes: [u8; 1]) -> Self
pub const fn from_ne_bytes(bytes: [u8; 1]) -> Self
Creates a value from its native-endian byte representation.
Sourcepub const fn to_le_bytes(self) -> [u8; 1]
pub const fn to_le_bytes(self) -> [u8; 1]
Returns the little-endian byte representation of this value.
Sourcepub const fn to_be_bytes(self) -> [u8; 1]
pub const fn to_be_bytes(self) -> [u8; 1]
Returns the big-endian byte representation of this value.
Sourcepub const fn to_ne_bytes(self) -> [u8; 1]
pub const fn to_ne_bytes(self) -> [u8; 1]
Returns the native-endian byte representation of this value.
Sourcepub fn from_f32(value: f32) -> Self
pub fn from_f32(value: f32) -> Self
Converts an f32 to this format.
The result is rounded to the nearest representable value. Values outside the finite range follow this format’s overflow behavior.
Sourcepub fn from_f64(value: f64) -> Self
pub fn from_f64(value: f64) -> Self
Converts an f64 to this format.
The value is first rounded to f32, then converted to this format.
Sourcepub fn is_infinite(self) -> bool
pub fn is_infinite(self) -> bool
Returns true if this value is positive or negative infinity.
Sourcepub fn is_normal(self) -> bool
pub fn is_normal(self) -> bool
Returns true if this value is finite, nonzero, and not subnormal.
Sourcepub fn classify(self) -> FpCategory
pub fn classify(self) -> FpCategory
Returns the floating point category of this value.
Sourcepub const fn is_sign_positive(self) -> bool
pub const fn is_sign_positive(self) -> bool
Returns true if this value has a positive sign.
Unsigned formats always return true.
Sourcepub const fn is_sign_negative(self) -> bool
pub const fn is_sign_negative(self) -> bool
Returns true if this value has a negative sign.
Unsigned formats always return false.
Sourcepub fn copysign(self, sign: Self) -> Self
pub fn copysign(self, sign: Self) -> Self
Returns a value with the magnitude of self and the sign of sign.
Sourcepub fn signum(self) -> Self
pub fn signum(self) -> Self
Returns a number representing the sign of self.
NaN and zero values are returned unchanged.
Sourcepub fn floor(self) -> Self
pub fn floor(self) -> Self
Returns the greatest integer less than or equal to self, rounded to this format.
Sourcepub fn ceil(self) -> Self
pub fn ceil(self) -> Self
Returns the smallest integer greater than or equal to self, rounded to this format.
Sourcepub fn round_ties_even(self) -> Self
pub fn round_ties_even(self) -> Self
Returns self rounded to the nearest integer, with halfway cases rounded to even.
Sourcepub fn powf(self, n: Self) -> Self
pub fn powf(self, n: Self) -> Self
Raises self to the floating point power n, rounded to this format.
Sourcepub fn hypot(self, other: Self) -> Self
pub fn hypot(self, other: Self) -> Self
Returns sqrt(self^2 + other^2), rounded to this format.
Sourcepub fn atan2(self, other: Self) -> Self
pub fn atan2(self, other: Self) -> Self
Computes the four-quadrant arctangent of self and other, in radians.
This is equivalent to f32::atan2(self.to_f32(), other.to_f32()),
rounded to this format.
Sourcepub fn min(self, other: Self) -> Self
pub fn min(self, other: Self) -> Self
Returns the minimum of self and other, ignoring NaN when possible.
If exactly one argument is NaN, the other argument is returned.
Sourcepub fn max(self, other: Self) -> Self
pub fn max(self, other: Self) -> Self
Returns the maximum of self and other, ignoring NaN when possible.
If exactly one argument is NaN, the other argument is returned.
Sourcepub fn total_cmp(&self, other: &Self) -> Ordering
pub fn total_cmp(&self, other: &Self) -> Ordering
Returns a total ordering over all bit patterns in this format.
The ordering distinguishes signed zeros and orders NaN values consistently.
Sourcepub fn serialize_as_f32<S: Serializer>(
&self,
serializer: S,
) -> Result<S::Ok, S::Error>
Available on crate feature serde only.
pub fn serialize_as_f32<S: Serializer>( &self, serializer: S, ) -> Result<S::Ok, S::Error>
serde only.Alternate serde adapter for serializing as an f32.
§Errors
Returns an error if the serializer cannot serialize an f32.
Sourcepub fn serialize_as_string<S: Serializer>(
&self,
serializer: S,
) -> Result<S::Ok, S::Error>
Available on crate feature serde only.
pub fn serialize_as_string<S: Serializer>( &self, serializer: S, ) -> Result<S::Ok, S::Error>
serde only.Alternate serde adapter for serializing as a string.
§Errors
Returns an error if the serializer cannot collect this value as a string.
Trait Implementations§
Source§impl Add for f8e4m3b11fnuz
impl Add for f8e4m3b11fnuz
Source§impl AddAssign for f8e4m3b11fnuz
impl AddAssign for f8e4m3b11fnuz
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+= operation. Read moreSource§impl Archive for f8e4m3b11fnuz
Available on crate feature rkyv only.
impl Archive for f8e4m3b11fnuz
rkyv only.Source§type Archived = f8e4m3b11fnuz
type Archived = f8e4m3b11fnuz
Source§type Resolver = ()
type Resolver = ()
Source§fn resolve(&self, _: Self::Resolver, out: Place<Self::Archived>)
fn resolve(&self, _: Self::Resolver, out: Place<Self::Archived>)
Source§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
serialize. Read moreSource§impl Bounded for f8e4m3b11fnuz
Available on crate feature num-traits only.
impl Bounded for f8e4m3b11fnuz
num-traits only.Source§impl Clone for f8e4m3b11fnuz
impl Clone for f8e4m3b11fnuz
Source§fn clone(&self) -> f8e4m3b11fnuz
fn clone(&self) -> f8e4m3b11fnuz
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for f8e4m3b11fnuz
impl Debug for f8e4m3b11fnuz
Source§impl Default for f8e4m3b11fnuz
impl Default for f8e4m3b11fnuz
Source§impl<'de> Deserialize<'de> for f8e4m3b11fnuz
Available on crate feature serde only.
impl<'de> Deserialize<'de> for f8e4m3b11fnuz
serde only.Source§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>,
Source§impl<D> Deserialize<f8e4m3b11fnuz, D> for f8e4m3b11fnuz
Available on crate feature rkyv only.
impl<D> Deserialize<f8e4m3b11fnuz, D> for f8e4m3b11fnuz
rkyv only.Source§fn deserialize(&self, _: &mut D) -> Result<f8e4m3b11fnuz, D::Error>
fn deserialize(&self, _: &mut D) -> Result<f8e4m3b11fnuz, D::Error>
Source§impl Display for f8e4m3b11fnuz
impl Display for f8e4m3b11fnuz
Source§impl Distribution<f8e4m3b11fnuz> for Exp1
Available on crate feature rand_distr only.
impl Distribution<f8e4m3b11fnuz> for Exp1
rand_distr only.Source§impl Distribution<f8e4m3b11fnuz> for Open01
Available on crate feature rand_distr only.
impl Distribution<f8e4m3b11fnuz> for Open01
rand_distr only.Source§impl Distribution<f8e4m3b11fnuz> for OpenClosed01
Available on crate feature rand_distr only.
impl Distribution<f8e4m3b11fnuz> for OpenClosed01
rand_distr only.Source§impl Distribution<f8e4m3b11fnuz> for StandardNormal
Available on crate feature rand_distr only.
impl Distribution<f8e4m3b11fnuz> for StandardNormal
rand_distr only.Source§impl Distribution<f8e4m3b11fnuz> for StandardUniform
Available on crate feature rand_distr only.
impl Distribution<f8e4m3b11fnuz> for StandardUniform
rand_distr only.Source§impl Div for f8e4m3b11fnuz
impl Div for f8e4m3b11fnuz
Source§impl DivAssign for f8e4m3b11fnuz
impl DivAssign for f8e4m3b11fnuz
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
/= operation. Read moreSource§impl FloatCore for f8e4m3b11fnuz
Available on crate feature num-traits only.
impl FloatCore for f8e4m3b11fnuz
num-traits only.Source§fn neg_infinity() -> Self
fn neg_infinity() -> Self
Source§fn min_value() -> Self
fn min_value() -> Self
Source§fn min_positive_value() -> Self
fn min_positive_value() -> Self
Source§fn max_value() -> Self
fn max_value() -> Self
Source§fn is_infinite(self) -> bool
fn is_infinite(self) -> bool
true if the number is infinite. Read moreSource§fn is_normal(self) -> bool
fn is_normal(self) -> bool
true if the number is neither zero, infinite, subnormal or NaN. Read moreSource§fn classify(self) -> FpCategory
fn classify(self) -> FpCategory
Source§fn to_degrees(self) -> Self
fn to_degrees(self) -> Self
Source§fn to_radians(self) -> Self
fn to_radians(self) -> Self
Source§fn integer_decode(self) -> (u64, i16, i8)
fn integer_decode(self) -> (u64, i16, i8)
sign * mantissa * 2 ^ exponent. Read moreSource§fn ceil(self) -> Self
fn ceil(self) -> Self
Source§fn round(self) -> Self
fn round(self) -> Self
0.0. Read moreSource§fn abs(self) -> Self
fn abs(self) -> Self
self. Returns FloatCore::nan() if the
number is FloatCore::nan(). Read moreSource§fn is_sign_positive(self) -> bool
fn is_sign_positive(self) -> bool
true if self is positive, including +0.0 and
FloatCore::infinity(), and FloatCore::nan(). Read moreSource§fn is_sign_negative(self) -> bool
fn is_sign_negative(self) -> bool
true if self is negative, including -0.0 and
FloatCore::neg_infinity(), and -FloatCore::nan(). Read moreSource§fn clamp(self, min: Self, max: Self) -> Self
fn clamp(self, min: Self, max: Self) -> Self
Source§impl FromPrimitive for f8e4m3b11fnuz
Available on crate feature num-traits only.
impl FromPrimitive for f8e4m3b11fnuz
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 FromStr for f8e4m3b11fnuz
impl FromStr for f8e4m3b11fnuz
Source§impl LowerExp for f8e4m3b11fnuz
impl LowerExp for f8e4m3b11fnuz
Source§impl Mul for f8e4m3b11fnuz
impl Mul for f8e4m3b11fnuz
Source§impl MulAssign for f8e4m3b11fnuz
impl MulAssign for f8e4m3b11fnuz
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
*= operation. Read moreSource§impl Neg for f8e4m3b11fnuz
impl Neg for f8e4m3b11fnuz
Source§impl Num for f8e4m3b11fnuz
Available on crate feature num-traits only.
impl Num for f8e4m3b11fnuz
num-traits only.type FromStrRadixErr = <f32 as Num>::FromStrRadixErr
Source§fn from_str_radix(str: &str, radix: u32) -> Result<Self, Self::FromStrRadixErr>
fn from_str_radix(str: &str, radix: u32) -> Result<Self, Self::FromStrRadixErr>
2..=36). Read moreSource§impl NumCast for f8e4m3b11fnuz
Available on crate feature num-traits only.
impl NumCast for f8e4m3b11fnuz
num-traits only.Source§impl One for f8e4m3b11fnuz
Available on crate feature num-traits only.
impl One for f8e4m3b11fnuz
num-traits only.Source§impl PartialEq for f8e4m3b11fnuz
impl PartialEq for f8e4m3b11fnuz
Source§impl PartialOrd for f8e4m3b11fnuz
impl PartialOrd for f8e4m3b11fnuz
Source§impl<'a> Product<&'a f8e4m3b11fnuz> for f8e4m3b11fnuz
impl<'a> Product<&'a f8e4m3b11fnuz> for f8e4m3b11fnuz
Source§impl Product for f8e4m3b11fnuz
impl Product for f8e4m3b11fnuz
Source§impl Rem for f8e4m3b11fnuz
impl Rem for f8e4m3b11fnuz
Source§impl RemAssign for f8e4m3b11fnuz
impl RemAssign for f8e4m3b11fnuz
Source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
%= operation. Read moreSource§impl SampleUniform for f8e4m3b11fnuz
Available on crate feature rand_distr only.
impl SampleUniform for f8e4m3b11fnuz
rand_distr only.Source§impl<S> Serialize<S> for f8e4m3b11fnuz
Available on crate feature rkyv only.
impl<S> Serialize<S> for f8e4m3b11fnuz
rkyv only.Source§impl Serialize for f8e4m3b11fnuz
Available on crate feature serde only.
impl Serialize for f8e4m3b11fnuz
serde only.Source§impl Signed for f8e4m3b11fnuz
Available on crate feature num-traits only.
impl Signed for f8e4m3b11fnuz
num-traits only.Source§fn is_positive(&self) -> bool
fn is_positive(&self) -> bool
Source§fn is_negative(&self) -> bool
fn is_negative(&self) -> bool
Source§impl Sub for f8e4m3b11fnuz
impl Sub for f8e4m3b11fnuz
Source§impl SubAssign for f8e4m3b11fnuz
impl SubAssign for f8e4m3b11fnuz
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-= operation. Read moreSource§impl<'a> Sum<&'a f8e4m3b11fnuz> for f8e4m3b11fnuz
impl<'a> Sum<&'a f8e4m3b11fnuz> for f8e4m3b11fnuz
Source§impl Sum for f8e4m3b11fnuz
impl Sum for f8e4m3b11fnuz
Source§impl ToPrimitive for f8e4m3b11fnuz
Available on crate feature num-traits only.
impl ToPrimitive for f8e4m3b11fnuz
num-traits only.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_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_f32(&self) -> Option<f32>
fn to_f32(&self) -> Option<f32>
self to an f32. Overflows may map to positive
or negative inifinity, otherwise None is returned if the value cannot
be represented by an f32.Source§fn to_f64(&self) -> Option<f64>
fn to_f64(&self) -> Option<f64>
self to an f64. Overflows may map to positive
or negative inifinity, otherwise None is returned if the value cannot
be represented by an f64. Read moreSource§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_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§impl UpperExp for f8e4m3b11fnuz
impl UpperExp for f8e4m3b11fnuz
Source§impl Weight for f8e4m3b11fnuz
Available on crate feature rand_distr only.
impl Weight for f8e4m3b11fnuz
rand_distr only.Source§impl Zero for f8e4m3b11fnuz
Available on crate feature num-traits only.
impl Zero for f8e4m3b11fnuz
num-traits only.Source§impl Zeroable for f8e4m3b11fnuz
Available on crate feature bytemuck only.
impl Zeroable for f8e4m3b11fnuz
bytemuck only.impl Copy for f8e4m3b11fnuz
impl NoUndef for f8e4m3b11fnuz
rkyv only.impl Pod for f8e4m3b11fnuz
bytemuck only.impl Portable for f8e4m3b11fnuz
rkyv only.Auto Trait Implementations§
impl Freeze for f8e4m3b11fnuz
impl RefUnwindSafe for f8e4m3b11fnuz
impl Send for f8e4m3b11fnuz
impl Sync for f8e4m3b11fnuz
impl Unpin for f8e4m3b11fnuz
impl UnsafeUnpin for f8e4m3b11fnuz
impl UnwindSafe for f8e4m3b11fnuz
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
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: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
bits
as &Self.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.Source§impl<Borrowed> SampleBorrow<Borrowed> for Borrowedwhere
Borrowed: SampleUniform,
impl<Borrowed> SampleBorrow<Borrowed> for Borrowedwhere
Borrowed: SampleUniform,
Source§fn borrow(&self) -> &Borrowed
fn borrow(&self) -> &Borrowed
Borrow::borrow