pub struct BrainFloat16(pub bf16);Available on crate feature
half only.Expand description
Tuple Fields§
§0: bf16Implementations§
Trait Implementations§
Source§impl Bound for BrainFloat16
impl Bound for BrainFloat16
Source§fn is_lower_bounded(&self) -> bool
fn is_lower_bounded(&self) -> bool
Returns true if the number is lower bounded.
Source§fn is_upper_bounded(&self) -> bool
fn is_upper_bounded(&self) -> bool
Returns true if the number is upper bounded.
Source§fn lower_bound(&self) -> Option<Self>
fn lower_bound(&self) -> Option<Self>
Returns the lower bound, if any.
Source§fn upper_bound(&self) -> Option<Self>
fn upper_bound(&self) -> Option<Self>
Returns the upper bound, if any.
Source§impl Clone for BrainFloat16
impl Clone for BrainFloat16
Source§fn clone(&self) -> BrainFloat16
fn clone(&self) -> BrainFloat16
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ConstLowerBounded for BrainFloat16
impl ConstLowerBounded for BrainFloat16
Source§impl ConstNegOne for BrainFloat16
impl ConstNegOne for BrainFloat16
Source§impl ConstUpperBounded for BrainFloat16
impl ConstUpperBounded for BrainFloat16
Source§impl Count for BrainFloat16
impl Count for BrainFloat16
Source§fn is_countable(&self) -> bool
fn is_countable(&self) -> bool
Returns
true if the number is countable.Source§fn is_uncountable(&self) -> bool
fn is_uncountable(&self) -> bool
Returns
false if the number is countable.Source§impl Countable for BrainFloat16
Unimplemented.
impl Countable for BrainFloat16
Unimplemented.
Source§fn next(&self) -> NumeraResult<Self>
fn next(&self) -> NumeraResult<Self>
Source§fn previous(&self) -> NumeraResult<Self>
fn previous(&self) -> NumeraResult<Self>
Source§impl Debug for BrainFloat16
impl Debug for BrainFloat16
Source§impl Default for BrainFloat16
impl Default for BrainFloat16
Source§fn default() -> BrainFloat16
fn default() -> BrainFloat16
Returns the “default value” for a type. Read more
Source§impl Display for BrainFloat16
impl Display for BrainFloat16
Source§impl From<&bf16> for BrainFloat16
impl From<&bf16> for BrainFloat16
Source§impl From<&mut bf16> for BrainFloat16
impl From<&mut bf16> for BrainFloat16
Source§impl From<bf16> for BrainFloat16
impl From<bf16> for BrainFloat16
Source§impl Ident for BrainFloat16
impl Ident for BrainFloat16
Source§fn can_neg_one(&self) -> bool
fn can_neg_one(&self) -> bool
Returns
true if the number can represent -1,
the additive inverse of the multiplicative identity. Read moreSource§fn is_neg_one(&self) -> bool
fn is_neg_one(&self) -> bool
Returns
true if the current value is -1,
the additive inverse of the multiplicative identity.Source§impl LowerBounded for BrainFloat16
impl LowerBounded for BrainFloat16
Source§impl NegOne for BrainFloat16
impl NegOne for BrainFloat16
Source§fn new_neg_one() -> Self
fn new_neg_one() -> Self
Returns a new additive inverse of the multiplicative identity,
-1.Source§fn set_neg_one(&mut self)where
Self: Sized,
fn set_neg_one(&mut self)where
Self: Sized,
Sets this number to
-1.Source§impl Number for BrainFloat16
impl Number for BrainFloat16
Source§fn from_inner_repr(value: Self::InnerRepr) -> NumeraResult<Self>
fn from_inner_repr(value: Self::InnerRepr) -> NumeraResult<Self>
Source§unsafe fn from_inner_repr_unchecked(value: Self::InnerRepr) -> Self
Available on crate feature not(safe) only.
unsafe fn from_inner_repr_unchecked(value: Self::InnerRepr) -> Self
not(safe) only.Source§fn from_innermost_repr(value: Self::InnermostRepr) -> NumeraResult<Self>
fn from_innermost_repr(value: Self::InnermostRepr) -> NumeraResult<Self>
Source§unsafe fn from_innermost_repr_unchecked(value: Self::InnermostRepr) -> Self
Available on crate feature not(safe) only.
unsafe fn from_innermost_repr_unchecked(value: Self::InnermostRepr) -> Self
not(safe) only.Source§type InnermostRepr = bf16
type InnermostRepr = bf16
The innermost primitive representation of the number. Read more
Source§fn into_inner_repr(self) -> Self::InnerRepr
fn into_inner_repr(self) -> Self::InnerRepr
Deconstructs the number to its inner representation.
Source§fn into_innermost_repr(self) -> Self::InnermostRepr
fn into_innermost_repr(self) -> Self::InnermostRepr
Deconstructs the number to its innermost representation.
Source§fn try_from_inner_repr(inner: impl Into<Self::InnerRepr>) -> NumeraResult<Self>where
Self: Sized,
fn try_from_inner_repr(inner: impl Into<Self::InnerRepr>) -> NumeraResult<Self>where
Self: Sized,
Forms a new number from its converted given
inner representation. Read moreSource§impl One for BrainFloat16
impl One for BrainFloat16
Source§impl PartialEq for BrainFloat16
impl PartialEq for BrainFloat16
Source§impl PartialOrd for BrainFloat16
impl PartialOrd for BrainFloat16
Source§impl Sign for BrainFloat16
impl Sign for BrainFloat16
Source§fn can_negative(&self) -> bool
fn can_negative(&self) -> bool
Returns
true if the type can represent negative numbers.Source§fn can_positive(&self) -> bool
fn can_positive(&self) -> bool
Returns
true if the type can represent positive numbers.Source§fn is_negative(&self) -> bool
fn is_negative(&self) -> bool
Returns
true if the value is negative (< 0).Source§fn is_positive(&self) -> bool
fn is_positive(&self) -> bool
Returns
true if the value is positive (> 0).Source§impl TryFrom<&f16> for BrainFloat16
Available on crate feature try_from only.
impl TryFrom<&f16> for BrainFloat16
Available on crate feature
try_from only.Source§type Error = NumeraErrors
type Error = NumeraErrors
The type returned in the event of a conversion error.
Source§fn try_from(f: &f16) -> NumeraResult<BrainFloat16>
fn try_from(f: &f16) -> NumeraResult<BrainFloat16>
Performs the conversion.
Source§impl TryFrom<&f32> for BrainFloat16
Available on crate feature try_from only.
impl TryFrom<&f32> for BrainFloat16
Available on crate feature
try_from only.Source§type Error = NumeraErrors
type Error = NumeraErrors
The type returned in the event of a conversion error.
Source§fn try_from(f: &f32) -> NumeraResult<BrainFloat16>
fn try_from(f: &f32) -> NumeraResult<BrainFloat16>
Performs the conversion.
Source§impl TryFrom<&f64> for BrainFloat16
Available on crate feature try_from only.
impl TryFrom<&f64> for BrainFloat16
Available on crate feature
try_from only.Source§type Error = NumeraErrors
type Error = NumeraErrors
The type returned in the event of a conversion error.
Source§fn try_from(f: &f64) -> NumeraResult<BrainFloat16>
fn try_from(f: &f64) -> NumeraResult<BrainFloat16>
Performs the conversion.
Source§impl TryFrom<&mut f16> for BrainFloat16
Available on crate feature try_from only.
impl TryFrom<&mut f16> for BrainFloat16
Available on crate feature
try_from only.Source§type Error = NumeraErrors
type Error = NumeraErrors
The type returned in the event of a conversion error.
Source§fn try_from(f: &mut f16) -> NumeraResult<BrainFloat16>
fn try_from(f: &mut f16) -> NumeraResult<BrainFloat16>
Performs the conversion.
Source§impl TryFrom<&mut f32> for BrainFloat16
Available on crate feature try_from only.
impl TryFrom<&mut f32> for BrainFloat16
Available on crate feature
try_from only.Source§type Error = NumeraErrors
type Error = NumeraErrors
The type returned in the event of a conversion error.
Source§fn try_from(f: &mut f32) -> NumeraResult<BrainFloat16>
fn try_from(f: &mut f32) -> NumeraResult<BrainFloat16>
Performs the conversion.
Source§impl TryFrom<&mut f64> for BrainFloat16
Available on crate feature try_from only.
impl TryFrom<&mut f64> for BrainFloat16
Available on crate feature
try_from only.Source§type Error = NumeraErrors
type Error = NumeraErrors
The type returned in the event of a conversion error.
Source§fn try_from(f: &mut f64) -> NumeraResult<BrainFloat16>
fn try_from(f: &mut f64) -> NumeraResult<BrainFloat16>
Performs the conversion.
Source§impl TryFrom<f16> for BrainFloat16
Available on crate feature try_from only.
impl TryFrom<f16> for BrainFloat16
Available on crate feature
try_from only.Source§type Error = NumeraErrors
type Error = NumeraErrors
The type returned in the event of a conversion error.
Source§fn try_from(f: f16) -> NumeraResult<BrainFloat16>
fn try_from(f: f16) -> NumeraResult<BrainFloat16>
Performs the conversion.
Source§impl TryFrom<f32> for BrainFloat16
Available on crate feature try_from only.
impl TryFrom<f32> for BrainFloat16
Available on crate feature
try_from only.Source§type Error = NumeraErrors
type Error = NumeraErrors
The type returned in the event of a conversion error.
Source§fn try_from(f: f32) -> NumeraResult<BrainFloat16>
fn try_from(f: f32) -> NumeraResult<BrainFloat16>
Performs the conversion.
Source§impl TryFrom<f64> for BrainFloat16
Available on crate feature try_from only.
impl TryFrom<f64> for BrainFloat16
Available on crate feature
try_from only.Source§type Error = NumeraErrors
type Error = NumeraErrors
The type returned in the event of a conversion error.
Source§fn try_from(f: f64) -> NumeraResult<BrainFloat16>
fn try_from(f: f64) -> NumeraResult<BrainFloat16>
Performs the conversion.
Source§impl UpperBounded for BrainFloat16
impl UpperBounded for BrainFloat16
Source§impl Zero for BrainFloat16
impl Zero for BrainFloat16
impl Copy for BrainFloat16
impl Negative for BrainFloat16
impl Positive for BrainFloat16
impl StructuralPartialEq for BrainFloat16
Auto Trait Implementations§
impl Freeze for BrainFloat16
impl RefUnwindSafe for BrainFloat16
impl Send for BrainFloat16
impl Sync for BrainFloat16
impl Unpin for BrainFloat16
impl UnwindSafe for BrainFloat16
Blanket Implementations§
Source§impl<T> Also for T
impl<T> Also for T
Source§impl<T, Res> Apply<Res> for Twhere
T: ?Sized,
impl<T, Res> Apply<Res> for Twhere
T: ?Sized,
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
Mutably borrows from an owned value. Read more
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.