pub struct FPState {
pub rounding_mode: RoundingMode,
pub status_flags: StatusFlags,
pub exception_handling_mode: ExceptionHandlingMode,
pub tininess_detection_mode: TininessDetectionMode,
/* private fields */
}Expand description
The dynamic state of a floating-point implementation
Fields§
§rounding_mode: RoundingModethe dynamic rounding mode – used whenever the rounding mode is not explicitly overridden
status_flags: StatusFlagsthe cumulative exception status flags
exception_handling_mode: ExceptionHandlingModethe exception handling mode
tininess_detection_mode: TininessDetectionModethe tininess detection mode
Implementations§
Source§impl FPState
impl FPState
Sourcepub fn checked_merge_assign(
&mut self,
rhs: Self,
) -> Result<(), FPStateMergeFailed>
pub fn checked_merge_assign( &mut self, rhs: Self, ) -> Result<(), FPStateMergeFailed>
combine two FPState values into one, assigning the result to self
Sourcepub fn merge_assign(&mut self, rhs: Self)
pub fn merge_assign(&mut self, rhs: Self)
combine two FPState values into one, assigning the result to self
Sourcepub fn checked_merge(self, rhs: Self) -> Result<Self, FPStateMergeFailed>
pub fn checked_merge(self, rhs: Self) -> Result<Self, FPStateMergeFailed>
combine two FPState values into one, returning the result
Trait Implementations§
impl Copy for FPState
impl Eq for FPState
impl StructuralPartialEq for FPState
Auto Trait Implementations§
impl Freeze for FPState
impl RefUnwindSafe for FPState
impl Send for FPState
impl Sync for FPState
impl Unpin for FPState
impl UnwindSafe for FPState
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