#[repr(u64)]pub enum NSNumberFormatterRoundingMode {
Ceiling = 0,
Floor = 1,
Down = 2,
Up = 3,
HalfEven = 4,
HalfDown = 5,
HalfUp = 6,
}
Expand description
These constants are used to specify how numbers should be rounded. These constants are used by the roundingMode property.
Variants§
Ceiling = 0
Round towards positive infinity.
Floor = 1
Round towards negative infinity.
Down = 2
Round towards zero.
Up = 3
Round away from zero.
HalfEven = 4
Round towards the nearest integer, or towards an even number if equidistant.
HalfDown = 5
Round towards the nearest integer, or towards zero if equidistant.
HalfUp = 6
Round towards the nearest integer, or away from zero if equidistant.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NSNumberFormatterRoundingMode
impl RefUnwindSafe for NSNumberFormatterRoundingMode
impl Send for NSNumberFormatterRoundingMode
impl Sync for NSNumberFormatterRoundingMode
impl Unpin for NSNumberFormatterRoundingMode
impl UnwindSafe for NSNumberFormatterRoundingMode
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