pub enum TrapCode {
Show 24 variants
StoppedByTestHarness,
VecBoundsFail {
encountered: usize,
element_count: usize,
},
MapOutOfSpace,
MapEntryNotFound,
MapEntryNotFoundAndCouldNotBeCreated,
MapEntryNotFoundForRemoval,
LessThanTrap {
a: u32,
b: u32,
},
SparseOutOfSpace,
SparseRemoveFailed,
SparseGetFailed,
MapCouldNotBeCopied,
OverlappingMemoryCopy,
MemoryCorruption,
VecOutOfCapacity {
encountered: u16,
capacity: u16,
},
VecEmpty,
VecNeverInitialized,
GridBoundsXFail {
x: u32,
width: u16,
},
GridBoundsYFail {
y: u32,
height: u16,
},
GridBoundsFail,
InvalidUtf8Sequence,
UnalignedAccess,
ReverseRangeNotAllowedHere,
U8CheckFailed,
Misaligned,
}Variants§
StoppedByTestHarness
VecBoundsFail
MapOutOfSpace
MapEntryNotFound
MapEntryNotFoundAndCouldNotBeCreated
MapEntryNotFoundForRemoval
LessThanTrap
SparseOutOfSpace
SparseRemoveFailed
SparseGetFailed
MapCouldNotBeCopied
OverlappingMemoryCopy
MemoryCorruption
VecOutOfCapacity
VecEmpty
VecNeverInitialized
GridBoundsXFail
GridBoundsYFail
GridBoundsFail
InvalidUtf8Sequence
UnalignedAccess
ReverseRangeNotAllowedHere
U8CheckFailed
Misaligned
Implementations§
Trait Implementations§
impl Copy for TrapCode
impl Eq for TrapCode
impl StructuralPartialEq for TrapCode
Auto Trait Implementations§
impl Freeze for TrapCode
impl RefUnwindSafe for TrapCode
impl Send for TrapCode
impl Sync for TrapCode
impl Unpin for TrapCode
impl UnwindSafe for TrapCode
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