[][src]Enum cortex_m::register::fpscr::RMode

pub enum RMode {
    Nearest,
    PlusInfinity,
    MinusInfinity,
    Zero,
}

Rounding mode

Variants

Nearest

Round to Nearest (RN) mode. This is the reset value.

PlusInfinity

Round towards Plus Infinity (RP) mode.

MinusInfinity

Round towards Minus Infinity (RM) mode.

Zero

Round towards Zero (RZ) mode.

Implementations

impl RMode[src]

pub fn is_nearest(self) -> bool[src]

Is Nearest the current rounding mode?

pub fn is_plus_infinity(self) -> bool[src]

Is Plus Infinity the current rounding mode?

pub fn is_minus_infinity(self) -> bool[src]

Is Minus Infinity the current rounding mode?

pub fn is_zero(self) -> bool[src]

Is Zero the current rounding mode?

Trait Implementations

impl Clone for RMode[src]

impl Copy for RMode[src]

impl Debug for RMode[src]

impl Eq for RMode[src]

impl PartialEq<RMode> for RMode[src]

impl StructuralEq for RMode[src]

impl StructuralPartialEq for RMode[src]

Auto Trait Implementations

impl Send for RMode

impl Sync for RMode

impl Unpin for RMode

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, 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.