Struct RoundingAlgorithm
#[repr(transparent)]pub struct RoundingAlgorithm(pub i32);Tuple Fields§
§0: i32Implementations§
§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 duplicate 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
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