pub struct FEnv(/* private fields */);
Expand description
A wrapper around the floating point environment.
visit: https://cplusplus.com/reference/cfenv/fenv_t/
for more information about the underlying fenv_t
type.
Implementations§
source§impl FEnv
impl FEnv
pub fn new() -> Result<Self, NonZeroI32>
sourcepub fn hold(&mut self) -> Result<(), NonZeroI32>
pub fn hold(&mut self) -> Result<(), NonZeroI32>
visit: https://en.cppreference.com/w/c/numeric/fenv/feholdexcept
sourcepub fn set(&self) -> Result<(), NonZeroI32>
pub fn set(&self) -> Result<(), NonZeroI32>
visit: https://en.cppreference.com/w/c/numeric/fenv/feenv
sourcepub fn get(&mut self) -> Result<(), NonZeroI32>
pub fn get(&mut self) -> Result<(), NonZeroI32>
visit: https://en.cppreference.com/w/c/numeric/fenv/feenv
sourcepub fn update(&self) -> Result<(), NonZeroI32>
pub fn update(&self) -> Result<(), NonZeroI32>
visit:
pub fn inner(&self) -> &fenv_t
pub fn inner_mut(&mut self) -> &mut fenv_t
Methods from Deref<Target = fenv_t>§
pub fn __opcode(&self) -> c_uint
pub fn set___opcode(&mut self, val: c_uint)
pub fn __glibc_reserved4(&self) -> c_uint
pub fn set___glibc_reserved4(&mut self, val: c_uint)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FEnv
impl RefUnwindSafe for FEnv
impl Send for FEnv
impl Sync for FEnv
impl Unpin for FEnv
impl UnwindSafe for FEnv
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