Struct rustc_apfloat::ieee::SingleS

source ·
pub struct SingleS;

Trait Implementations§

source§

impl Semantics for SingleS

source§

const BITS: usize = 32usize

Total number of bits in the interchange format.
source§

const EXP_BITS: usize = 8usize

Number of exponent bits in the interchange format.
source§

const PRECISION: usize = _

Number of bits in the significand. This includes the integer bit.
source§

const NONFINITE_BEHAVIOR: NonfiniteBehavior = NonfiniteBehavior::IEEE754

How the nonfinite values Inf and NaN are represented.
source§

const MAX_EXP: ExpInt = _

The largest E such that 2^E is representable; this matches the definition of IEEE 754.
source§

const IEEE_MAX_EXP: ExpInt = _

source§

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.
source§

const IEEE_MIN_EXP: ExpInt = _

source§

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 = _

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 = _

The significand bitpattern to mark a NaN as quiet (if supported). Read more
source§

fn from_bits(bits: u128) -> IeeeFloat<Self>

source§

fn to_bits(x: IeeeFloat<Self>) -> u128

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.