pub struct Status(/* private fields */);Expand description
What a conversion had to do to the number to fit it in the format.
A bitmask, so that one conversion can report several. The names are IEEE 754’s exceptions, which is what the diagnostics are ultimately about: GCC warns that a floating constant exceeds the range of its type, or that it was truncated to zero.
Implementations§
Source§impl Status
impl Status
Sourcepub const UNDERFLOW: Status
pub const UNDERFLOW: Status
The value is too small for the format and became a subnormal or a zero.
Sourcepub const INVALID: Status
pub const INVALID: Status
The operation has no answer at all, such as an infinity minus an infinity.
Sourcepub const DIVIDE_BY_ZERO: Status
pub const DIVIDE_BY_ZERO: Status
A number that is not zero was divided by one that is, so the answer is an infinity.
Trait Implementations§
impl Copy for Status
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnsafeUnpin for Status
impl UnwindSafe for Status
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