#[non_exhaustive]#[repr(C)]pub enum SigfpeCode {
INTDIV = 0,
INTOVF = 1,
FLTDIV = 2,
FLTOVF = 3,
FLTUND = 4,
FLTRES = 5,
FLTINV = 6,
FLTSUB = 7,
}
Expand description
Subtype code for SIGFPE.
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.
INTDIV = 0
Integer divide by zero.
INTOVF = 1
Integer overflow.
FLTDIV = 2
Floating-point divide by zero.
FLTOVF = 3
Floating-point overflow.
FLTUND = 4
Floating-point underflow.
FLTRES = 5
Floating-point inexact result.
FLTINV = 6
Floating-point invalid operation.
FLTSUB = 7
Subscript out of range.
Trait Implementations§
Source§impl Clone for SigfpeCode
impl Clone for SigfpeCode
Source§fn clone(&self) -> SigfpeCode
fn clone(&self) -> SigfpeCode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SigfpeCode
impl Debug for SigfpeCode
Source§impl Hash for SigfpeCode
impl Hash for SigfpeCode
Source§impl Ord for SigfpeCode
impl Ord for SigfpeCode
Source§fn cmp(&self, other: &SigfpeCode) -> Ordering
fn cmp(&self, other: &SigfpeCode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SigfpeCode
impl PartialEq for SigfpeCode
Source§impl PartialOrd for SigfpeCode
impl PartialOrd for SigfpeCode
impl Copy for SigfpeCode
impl Eq for SigfpeCode
impl StructuralPartialEq for SigfpeCode
Auto Trait Implementations§
impl Freeze for SigfpeCode
impl RefUnwindSafe for SigfpeCode
impl Send for SigfpeCode
impl Sync for SigfpeCode
impl Unpin for SigfpeCode
impl UnwindSafe for SigfpeCode
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