Enum janetrs::JanetSignal
source · #[repr(u32)]pub enum JanetSignal {
Show 14 variants
Ok = 0,
Error = 1,
Debug = 2,
Yield = 3,
User0 = 4,
User1 = 5,
User2 = 6,
User3 = 7,
User4 = 8,
User5 = 9,
User6 = 10,
User7 = 11,
User8 = 12,
User9 = 13,
}
Expand description
Signals that can be produced by a JanetFunction
and JanetCFunction
representing that those worked correctly or not.
Ok
, Yield
and User9
usually represents when it worked, the others usually
represents that something went wrong.
Variants§
Ok = 0
Error = 1
Debug = 2
Yield = 3
User0 = 4
User1 = 5
User2 = 6
User3 = 7
User4 = 8
User5 = 9
User6 = 10
User7 = 11
User8 = 12
User9 = 13
Trait Implementations§
source§impl Clone for JanetSignal
impl Clone for JanetSignal
source§fn clone(&self) -> JanetSignal
fn clone(&self) -> JanetSignal
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 JanetSignal
impl Debug for JanetSignal
source§impl From<JanetSignal> for u32
impl From<JanetSignal> for u32
source§fn from(val: JanetSignal) -> Self
fn from(val: JanetSignal) -> Self
Converts to this type from the input type.
source§impl From<u32> for JanetSignal
impl From<u32> for JanetSignal
source§impl Hash for JanetSignal
impl Hash for JanetSignal
source§impl Ord for JanetSignal
impl Ord for JanetSignal
source§fn cmp(&self, other: &JanetSignal) -> Ordering
fn cmp(&self, other: &JanetSignal) -> 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 JanetSignal
impl PartialEq for JanetSignal
source§fn eq(&self, other: &JanetSignal) -> bool
fn eq(&self, other: &JanetSignal) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for JanetSignal
impl PartialOrd for JanetSignal
source§fn partial_cmp(&self, other: &JanetSignal) -> Option<Ordering>
fn partial_cmp(&self, other: &JanetSignal) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for JanetSignal
impl Eq for JanetSignal
impl StructuralPartialEq for JanetSignal
Auto Trait Implementations§
impl Freeze for JanetSignal
impl RefUnwindSafe for JanetSignal
impl Send for JanetSignal
impl Sync for JanetSignal
impl Unpin for JanetSignal
impl UnwindSafe for JanetSignal
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