#[non_exhaustive]#[repr(u32)]pub enum RoundMode {
Near = 0,
Financial = 1,
Zero = 2,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
impl Copy for RoundMode
impl Eq for RoundMode
Source§impl From<NppRoundMode> for RoundMode
impl From<NppRoundMode> for RoundMode
Source§fn from(value: NppRoundMode) -> Self
fn from(value: NppRoundMode) -> Self
Converts to this type from the input type.
Source§impl From<RoundMode> for NppRoundMode
impl From<RoundMode> for NppRoundMode
impl StructuralPartialEq for RoundMode
Auto Trait Implementations§
impl Freeze for RoundMode
impl RefUnwindSafe for RoundMode
impl Send for RoundMode
impl Sync for RoundMode
impl Unpin for RoundMode
impl UnsafeUnpin for RoundMode
impl UnwindSafe for RoundMode
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