Struct rustc_apfloat::ieee::HalfS
source · pub struct HalfS;
Trait Implementations§
source§impl Semantics for HalfS
impl Semantics for HalfS
source§const NONFINITE_BEHAVIOR: NonfiniteBehavior = NonfiniteBehavior::IEEE754
const NONFINITE_BEHAVIOR: NonfiniteBehavior = NonfiniteBehavior::IEEE754
How the nonfinite values Inf and NaN are represented.
source§const MAX_EXP: ExpInt = _
const MAX_EXP: ExpInt = _
The largest E such that 2^E is representable; this matches the
definition of IEEE 754.
const IEEE_MAX_EXP: ExpInt = _
source§const MIN_EXP: ExpInt = Self::IEEE_MIN_EXP
const MIN_EXP: ExpInt = Self::IEEE_MIN_EXP
The smallest E such that 2^E is a normalized number; this
matches the definition of IEEE 754.
const IEEE_MIN_EXP: ExpInt = _
source§const NAN_SIGNIFICAND_BASE: u128 = _
const NAN_SIGNIFICAND_BASE: u128 = _
The base significand bitpattern of NaNs, i.e. the bits that must always
be set in all NaNs, with other significand bits being either used for
payload bits (if
NAN_PAYLOAD_MASK
covers them) or always unset.source§const NAN_PAYLOAD_MASK: u128 = _
const NAN_PAYLOAD_MASK: u128 = _
The significand bitmask for the payload of a NaN (if supported),
including the “quiet bit” (telling QNaNs apart from SNaNs).
source§const QNAN_SIGNIFICAND: u128 = _
const QNAN_SIGNIFICAND: u128 = _
The significand bitpattern to mark a NaN as quiet (if supported). Read more
fn from_bits(bits: u128) -> IeeeFloat<Self>
fn to_bits(x: IeeeFloat<Self>) -> u128
Auto Trait Implementations§
impl RefUnwindSafe for HalfS
impl Send for HalfS
impl Sync for HalfS
impl Unpin for HalfS
impl UnwindSafe for HalfS
Blanket Implementations§
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