[][src]Struct softfloat_wrapper::ExceptionFlags

pub struct ExceptionFlags(_);

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 bits(&self) -> u8[src]

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
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.