#[repr(u8)]pub enum QuietNaNFormat {
Standard = 0,
MIPSLegacy = 1,
}
Expand description
the format for quiet NaN values
IEEE 754 states that implementations should use the MSB of the mantissa being set to indicate a quiet NaN, however MIPS before the 2008 revision and PA-RISC use the MSB of the mantissa being clear to indicate a quiet NaN.
Variants§
Standard = 0
MSB of mantissa set to indicate quiet NaN
MIPSLegacy = 1
MSB of mantissa clear to indicate quiet NaN; also used in PA-RISC
Implementations§
Source§impl QuietNaNFormat
impl QuietNaNFormat
Sourcepub fn is_nan_quiet(self, mantissa_msb_set: bool) -> bool
pub fn is_nan_quiet(self, mantissa_msb_set: bool) -> bool
returns true
if a NaN with the mantissa MSB set to mantissa_msb_set
is a quiet NaN
Trait Implementations§
Source§impl Clone for QuietNaNFormat
impl Clone for QuietNaNFormat
Source§fn clone(&self) -> QuietNaNFormat
fn clone(&self) -> QuietNaNFormat
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 Debug for QuietNaNFormat
impl Debug for QuietNaNFormat
Source§impl Default for QuietNaNFormat
impl Default for QuietNaNFormat
Source§fn default() -> QuietNaNFormat
fn default() -> QuietNaNFormat
Returns the “default value” for a type. Read more
Source§impl Hash for QuietNaNFormat
impl Hash for QuietNaNFormat
Source§impl PartialEq for QuietNaNFormat
impl PartialEq for QuietNaNFormat
impl Copy for QuietNaNFormat
impl Eq for QuietNaNFormat
impl StructuralPartialEq for QuietNaNFormat
Auto Trait Implementations§
impl Freeze for QuietNaNFormat
impl RefUnwindSafe for QuietNaNFormat
impl Send for QuietNaNFormat
impl Sync for QuietNaNFormat
impl Unpin for QuietNaNFormat
impl UnwindSafe for QuietNaNFormat
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