Struct dec::Status[][src]

pub struct Status { /* fields omitted */ }

Represents exceptional conditions resulting from operations on decimal numbers.

For details about the various exceptional conditions, consult the Exceptional Conditions chapter of the General Decimal Arithmetic specification.

Implementations

impl Status[src]

pub fn any(&self) -> bool[src]

Reports whether any of the condition flags are set.

pub fn conversion_syntax(&self) -> bool[src]

Reports whether the conversion syntax flag is set.

Operations set this flag when an invalid string is converted to a decimal.

pub fn division_by_zero(&self) -> bool[src]

Reports whether the division by zero flag is set.

Operations set this flag when a nonzero dividend is divided by zero.

pub fn division_impossible(&self) -> bool[src]

Reports whether the division impossible flag is set.

Operations set this flag if the integer result of a division had too many digits.

pub fn division_undefined(&self) -> bool[src]

Reports whether the division undefined flag is set.

Operations set this flag when a zero dividend is divided by zero.

pub fn insufficient_storage(&self) -> bool[src]

Reports whether the insufficient storage flag is set.

Operations set this flag if memory allocation fails.

pub fn inexact(&self) -> bool[src]

Reports whether the inexact flag is set.

Operations set this flag when one or more nonzero coefficient digits were discarded during rounding from a result.

pub fn invalid_context(&self) -> bool[src]

Reports whether the invalid context flag is set.

Operations set this flag if they detect an invalid context.

It should not be possible to pass an invalid context to an operation using this crate, but this method is nonetheless provided for completeness.

pub fn invalid_operation(&self) -> bool[src]

Reports whether the invalid operation flag is set.

Various operations set this flag in response to invalid arguments.

pub fn overflow(&self) -> bool[src]

Reports whether the overflow flag is set.

Operations set this flag when the exponent of a result is too large to be represented.

pub fn clamped(&self) -> bool[src]

Reports whether the clamped flag is set.

Operations set this flag when the exponent of a result has been altered or constrained in order to fit the constraints of a specific concrete representation.

pub fn rounded(&self) -> bool[src]

Reports whether the rounded flag is set.

Operations set this flag when one or more zero or nonzero coefficient digits were discarded from a result.

pub fn subnormal(&self) -> bool[src]

Reports whether the subnormal flag is set.

Operations set this flag when a result's adjusted exponent is less than Emin before any rounding.

pub fn underflow(&self) -> bool[src]

Reports whether the underflow flag is set.

Operations set this flag when a result is both subnormal and inexact.

Trait Implementations

impl Clone for Status[src]

impl Copy for Status[src]

impl Debug for Status[src]

impl Eq for Status[src]

impl PartialEq<Status> for Status[src]

impl StructuralEq for Status[src]

impl StructuralPartialEq for Status[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.