#[repr(u64)]pub enum NSRoundingMode {
Plain = 0,
Down = 1,
Up = 2,
Bankers = 3,
}Expand description
These constants specify rounding behaviors.
Variants§
Plain = 0
Round to the closest possible return value; when caught halfway between two positive numbers, round up; when caught between two negative numbers, round down.
Down = 1
Round return values down.
Up = 2
Round return values up.
Bankers = 3
Round to the closest possible return value; when halfway between two possibilities, return the possibility whose last digit is even.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NSRoundingMode
impl RefUnwindSafe for NSRoundingMode
impl Send for NSRoundingMode
impl Sync for NSRoundingMode
impl Unpin for NSRoundingMode
impl UnwindSafe for NSRoundingMode
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