#[repr(u32)]pub enum UNumberFormatRoundingMode {
UNUM_ROUND_CEILING = 0,
UNUM_ROUND_FLOOR = 1,
UNUM_ROUND_DOWN = 2,
UNUM_ROUND_UP = 3,
UNUM_ROUND_HALFEVEN = 4,
UNUM_ROUND_HALFDOWN = 5,
UNUM_ROUND_HALFUP = 6,
UNUM_ROUND_UNNECESSARY = 7,
UNUM_ROUND_HALF_ODD = 8,
UNUM_ROUND_HALF_CEILING = 9,
UNUM_ROUND_HALF_FLOOR = 10,
}
Variants§
UNUM_ROUND_CEILING = 0
UNUM_ROUND_FLOOR = 1
UNUM_ROUND_DOWN = 2
UNUM_ROUND_UP = 3
UNUM_ROUND_HALFEVEN = 4
UNUM_ROUND_HALFDOWN = 5
UNUM_ROUND_HALFUP = 6
UNUM_ROUND_UNNECESSARY = 7
UNUM_ROUND_HALF_ODD = 8
UNUM_ROUND_HALF_CEILING = 9
UNUM_ROUND_HALF_FLOOR = 10
Implementations§
source§impl UNumberFormatRoundingMode
impl UNumberFormatRoundingMode
pub const UNUM_FOUND_HALFEVEN: UNumberFormatRoundingMode = UNumberFormatRoundingMode::UNUM_ROUND_HALFEVEN
Trait Implementations§
source§impl Clone for UNumberFormatRoundingMode
impl Clone for UNumberFormatRoundingMode
source§fn clone(&self) -> UNumberFormatRoundingMode
fn clone(&self) -> UNumberFormatRoundingMode
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 Debug for UNumberFormatRoundingMode
impl Debug for UNumberFormatRoundingMode
source§impl Hash for UNumberFormatRoundingMode
impl Hash for UNumberFormatRoundingMode
source§impl PartialEq for UNumberFormatRoundingMode
impl PartialEq for UNumberFormatRoundingMode
source§fn eq(&self, other: &UNumberFormatRoundingMode) -> bool
fn eq(&self, other: &UNumberFormatRoundingMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for UNumberFormatRoundingMode
impl PartialOrd for UNumberFormatRoundingMode
source§fn partial_cmp(&self, other: &UNumberFormatRoundingMode) -> Option<Ordering>
fn partial_cmp(&self, other: &UNumberFormatRoundingMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for UNumberFormatRoundingMode
impl Eq for UNumberFormatRoundingMode
impl StructuralPartialEq for UNumberFormatRoundingMode
Auto Trait Implementations§
impl RefUnwindSafe for UNumberFormatRoundingMode
impl Send for UNumberFormatRoundingMode
impl Sync for UNumberFormatRoundingMode
impl Unpin for UNumberFormatRoundingMode
impl UnwindSafe for UNumberFormatRoundingMode
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