#[repr(C)]pub enum FixedDecimalRoundingMode {
Ceil = 0,
Expand = 1,
Floor = 2,
Trunc = 3,
HalfCeil = 4,
HalfExpand = 5,
HalfFloor = 6,
HalfTrunc = 7,
HalfEven = 8,
}
Expand description
Mode used in a rounding operation.
Variants§
Ceil = 0
Expand = 1
Floor = 2
Trunc = 3
HalfCeil = 4
HalfExpand = 5
HalfFloor = 6
HalfTrunc = 7
HalfEven = 8
Trait Implementations§
source§impl Clone for FixedDecimalRoundingMode
impl Clone for FixedDecimalRoundingMode
source§fn clone(&self) -> FixedDecimalRoundingMode
fn clone(&self) -> FixedDecimalRoundingMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl From<FixedDecimalRoundingMode> for RoundingMode
impl From<FixedDecimalRoundingMode> for RoundingMode
source§fn from(this: FixedDecimalRoundingMode) -> Self
fn from(this: FixedDecimalRoundingMode) -> Self
Converts to this type from the input type.
source§impl From<RoundingMode> for FixedDecimalRoundingMode
impl From<RoundingMode> for FixedDecimalRoundingMode
source§fn from(other: RoundingMode) -> Self
fn from(other: RoundingMode) -> Self
Converts to this type from the input type.
impl Copy for FixedDecimalRoundingMode
Auto Trait Implementations§
impl Freeze for FixedDecimalRoundingMode
impl RefUnwindSafe for FixedDecimalRoundingMode
impl Send for FixedDecimalRoundingMode
impl Sync for FixedDecimalRoundingMode
impl Unpin for FixedDecimalRoundingMode
impl UnwindSafe for FixedDecimalRoundingMode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more