#[repr(C)]pub enum FixedDecimalSignedRoundingMode {
Expand = 0,
Trunc = 1,
HalfExpand = 2,
HalfTrunc = 3,
HalfEven = 4,
Ceil = 5,
Floor = 6,
HalfCeil = 7,
HalfFloor = 8,
}
Expand description
Mode used in a rounding operation for signed numbers.
Variants§
Expand = 0
Trunc = 1
HalfExpand = 2
HalfTrunc = 3
HalfEven = 4
Ceil = 5
Floor = 6
HalfCeil = 7
HalfFloor = 8
Trait Implementations§
source§impl Clone for FixedDecimalSignedRoundingMode
impl Clone for FixedDecimalSignedRoundingMode
source§fn clone(&self) -> FixedDecimalSignedRoundingMode
fn clone(&self) -> FixedDecimalSignedRoundingMode
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<FixedDecimalSignedRoundingMode> for SignedRoundingMode
impl From<FixedDecimalSignedRoundingMode> for SignedRoundingMode
source§fn from(mode: FixedDecimalSignedRoundingMode) -> Self
fn from(mode: FixedDecimalSignedRoundingMode) -> Self
Converts to this type from the input type.
impl Copy for FixedDecimalSignedRoundingMode
Auto Trait Implementations§
impl Freeze for FixedDecimalSignedRoundingMode
impl RefUnwindSafe for FixedDecimalSignedRoundingMode
impl Send for FixedDecimalSignedRoundingMode
impl Sync for FixedDecimalSignedRoundingMode
impl Unpin for FixedDecimalSignedRoundingMode
impl UnwindSafe for FixedDecimalSignedRoundingMode
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