pub enum TrapSentinel {
Falsy,
NegativeTwo,
NegativeOne,
Negative,
}
Expand description
Return value of BuiltinFunctionIndex::trap_sentinel
.
Variants§
Falsy
A falsy or zero value indicates a trap.
NegativeTwo
The value -2
indicates a trap (used for growth-related builtins).
NegativeOne
The value -1
indicates a trap .
Negative
Any negative value indicates a trap.
Auto Trait Implementations§
impl Freeze for TrapSentinel
impl RefUnwindSafe for TrapSentinel
impl Send for TrapSentinel
impl Sync for TrapSentinel
impl Unpin for TrapSentinel
impl UnwindSafe for TrapSentinel
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