Struct softfloat_wrapper::ExceptionFlags[][src]

pub struct ExceptionFlags(_);

exception flags defined by standard


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();
let _d = a.div(b, RoundingMode::TiesToEven);


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]

impl Copy for ExceptionFlags[src]

impl Debug for ExceptionFlags[src]

impl Default for ExceptionFlags[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.