pub fn is_trap(&self) -> bool {
        match self {
            Self::DivideByZero => false,
            Self::Debug => true,
            Self::NonMaskableInterrupt => false,
            Self::Breakpoint => true,
            Self::Overflow => true,
            Self::BoundRangeExceeded => false,
            Self::InvalidOpcode => false,
            Self::DeviceNotAvailable => false,
            Self::DoubleFault => false,
            #[allow(deprecated)]
            Self::CoprocessorSegmentOverrun => false,
            Self::InvalidTss => false,
            Self::SegmentNotPresent => false,
            Self::StackSegmentFault => false,
            Self::GeneralProtectionFault => false,
            Self::PageFault => false,
            Self::X87FloatingPointException => false,
            Self::AlignmentCheck => false,
            Self::MachineCheck => false,
            Self::SimdFloatingPointException => false,
            Self::VirtualizationException => false,
            Self::SecurityException => false,
        }
    }
/// An exception is a *trap* if the instruction that caused it is allowed to complete normally
/// *before* the exception is thrown. The traps are [`Debug`] (sometimes), [`Breakpoint`], and
/// [`Overflow`].
///
/// [`Breakpoint`]: #variant.Breakpoint
/// [`Debug`]: #variant.Debug
/// [`Overflow`]: #variant.Overflow
An exception is a *trap* if the instruction that caused it is allowed to complete normally
before* the exception is thrown.


An exception is a * trap * if the instruction that caused it is allowed to complete normally before * the exception is thrown .
pub fn is_trap(&self) -> bool {
        match self {
            Self::DivideByZero => false,
            Self::Debug => true,
            Self::NonMaskableInterrupt => false,
            Self::Breakpoint => true,
            Self::Overflow => true,
            Self::BoundRangeExceeded => false,
            Self::InvalidOpcode => false,
            Self::DeviceNotAvailable => false,
            Self::DoubleFault => false,
            #[allow(deprecated)]
            Self::CoprocessorSegmentOverrun => false,
            Self::InvalidTss => false,
            Self::SegmentNotPresent => false,
            Self::StackSegmentFault => false,
            Self::GeneralProtectionFault => false,
            Self::PageFault => false,
            Self::X87FloatingPointException => false,
            Self::AlignmentCheck => false,
            Self::MachineCheck => false,
            Self::SimdFloatingPointException => false,
            Self::VirtualizationException => false,
            Self::SecurityException => false,
        }
    }
pub fn is_trap ( & self ) -> bool { match self { Self :: DivideByZero => false , Self :: Debug => true , Self :: NonMaskableInterrupt => false , Self :: Breakpoint => true , Self :: Overflow => true , Self :: BoundRangeExceeded => false , Self :: InvalidOpcode => false , Self :: DeviceNotAvailable => false , Self :: DoubleFault => false , # [ allow ( deprecated ) ] Self :: CoprocessorSegmentOverrun => false , Self :: InvalidTss => false , Self :: SegmentNotPresent => false , Self :: StackSegmentFault => false , Self :: GeneralProtectionFault => false , Self :: PageFault => false , Self :: X87FloatingPointException => false , Self :: AlignmentCheck => false , Self :: MachineCheck => false , Self :: SimdFloatingPointException => false , Self :: VirtualizationException => false , Self :: SecurityException => false , } }
An exception is a *trap* if the instruction that caused it is allowed to complete normally
before* the exception is thrown.
An exception is a * trap * if the instruction that caused it is allowed to complete normally before * the exception is thrown .
&self
&self