pub struct FRound(/* private fields */);
Expand description
A wrapper over floating point rounding flags.
This type encapsulates the behaviour of manipulating the configuration of floating point rounding without needing to deal with the raw API.
Implementations§
Source§impl FRound
impl FRound
pub const NEAREST: Self
pub const DOWNWARD: Self
pub const UPWARD: Self
pub const TOWARD_ZERO: Self
pub fn none() -> Self
Sourcepub fn or(self, other: Self) -> Self
pub fn or(self, other: Self) -> Self
Return a new set of flags which enbable all mutual flags between self
and other
.
Trait Implementations§
Source§impl BitOrAssign for FRound
impl BitOrAssign for FRound
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moreimpl Copy for FRound
impl Eq for FRound
impl StructuralPartialEq for FRound
Auto Trait Implementations§
impl Freeze for FRound
impl RefUnwindSafe for FRound
impl Send for FRound
impl Sync for FRound
impl Unpin for FRound
impl UnwindSafe for FRound
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