#[repr(transparent)]pub struct RoundingAlgorithm(pub i32);
Tuple Fields§
§0: i32
Implementations§
§impl RoundingAlgorithm
impl RoundingAlgorithm
pub const None: Self = _
pub const RoundDown: Self = _
pub const RoundUp: Self = _
pub const RoundTowardsZero: Self = _
pub const RoundAwayFromZero: Self = _
pub const RoundHalfDown: Self = _
pub const RoundHalfUp: Self = _
pub const RoundHalfTowardsZero: Self = _
pub const RoundHalfAwayFromZero: Self = _
pub const RoundHalfToEven: Self = _
pub const RoundHalfToOdd: Self = _
Trait Implementations§
§impl Clone for RoundingAlgorithm
impl Clone for RoundingAlgorithm
§fn clone(&self) -> RoundingAlgorithm
fn clone(&self) -> RoundingAlgorithm
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 more§impl Debug for RoundingAlgorithm
impl Debug for RoundingAlgorithm
§impl Default for RoundingAlgorithm
impl Default for RoundingAlgorithm
§fn default() -> RoundingAlgorithm
fn default() -> RoundingAlgorithm
Returns the “default value” for a type. Read more
§impl PartialEq for RoundingAlgorithm
impl PartialEq for RoundingAlgorithm
§fn eq(&self, other: &RoundingAlgorithm) -> bool
fn eq(&self, other: &RoundingAlgorithm) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RoundingAlgorithm
impl Eq for RoundingAlgorithm
impl StructuralPartialEq for RoundingAlgorithm
Auto Trait Implementations§
impl Freeze for RoundingAlgorithm
impl RefUnwindSafe for RoundingAlgorithm
impl Send for RoundingAlgorithm
impl Sync for RoundingAlgorithm
impl Unpin for RoundingAlgorithm
impl UnwindSafe for RoundingAlgorithm
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)