Enum gmp_mpfr_sys::mpfr::rnd_t

source ·
#[repr(C)]
pub enum rnd_t {
    RNDN,
    RNDZ,
    RNDU,
    RNDD,
    RNDA,
    RNDF,
    // some variants omitted
}
Expand description

See: mpfr_rnd_t

Planned change

In the next major version of the crate (version 2), this enum will be replaced by a type alias to c_int. The variants will be replaced by constants, for example rnd_t::RNDN will be replaced by a constant RNDN of type c_int.

Variants§

§

RNDN

See: Rounding

Planned change

In the next major version of the crate (version 2), the enum will be removed. This variant will be replaced by a constant RNDN of type c_int.

§

RNDZ

See: Rounding Modes

Planned change

In the next major version of the crate (version 2), the enum will be removed. This variant will be replaced by a constant RNDZ of type c_int.

§

RNDU

See: Rounding Modes

Planned change

In the next major version of the crate (version 2), the enum will be removed. This variant will be replaced by a constant RNDU of type c_int.

§

RNDD

See: Rounding Modes

Planned change

In the next major version of the crate (version 2), the enum will be removed. This variant will be replaced by a constant RNDD of type c_int.

§

RNDA

See: Rounding Modes

Planned change

In the next major version of the crate (version 2), the enum will be removed. This variant will be replaced by a constant RNDA of type c_int.

§

RNDF

See: Rounding Modes

Planned change

In the next major version of the crate (version 2), the enum will be removed. This variant will be replaced by a constant RNDF of type c_int.

Trait Implementations§

source§

impl Clone for rnd_t

source§

fn clone(&self) -> rnd_t

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for rnd_t

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for rnd_t

Auto Trait Implementations§

§

impl RefUnwindSafe for rnd_t

§

impl Send for rnd_t

§

impl Sync for rnd_t

§

impl Unpin for rnd_t

§

impl UnwindSafe for rnd_t

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.