Struct softfloat_wrapper::ExceptionFlags [−][src]
exception flags defined by standard
Examples
use softfloat_wrapper::{ExceptionFlags, Float, RoundingMode, F16}; let a = 0x0; let b = 0x0; let a = F16::from_bits(a); let b = F16::from_bits(b); let mut flag = ExceptionFlags::default(); flag.set(); let _d = a.div(b, RoundingMode::TiesToEven); flag.get(); assert!(flag.is_invalid());
Implementations
impl ExceptionFlags
[src]
pub fn from_bits(x: u8) -> Self
[src]
pub fn to_bits(&self) -> u8
[src]
pub fn bits(&self) -> u8
[src]
👎 Deprecated since 0.3.0:
Please use to_bits instead
pub fn is_inexact(&self) -> bool
[src]
pub fn is_infinite(&self) -> bool
[src]
pub fn is_invalid(&self) -> bool
[src]
pub fn is_overflow(&self) -> bool
[src]
pub fn is_underflow(&self) -> bool
[src]
pub fn set(&self)
[src]
pub fn get(&mut self)
[src]
Trait Implementations
impl Clone for ExceptionFlags
[src]
fn clone(&self) -> ExceptionFlags
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ExceptionFlags
[src]
impl Debug for ExceptionFlags
[src]
impl Default for ExceptionFlags
[src]
fn default() -> ExceptionFlags
[src]
Auto Trait Implementations
impl RefUnwindSafe for ExceptionFlags
impl Send for ExceptionFlags
impl Sync for ExceptionFlags
impl Unpin for ExceptionFlags
impl UnwindSafe for ExceptionFlags
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,