#[repr(u32)]pub enum JanetType {
Show 16 variants
Abstract = 14,
Array = 7,
Boolean = 2,
Buffer = 11,
CFunction = 13,
Fiber = 3,
Function = 12,
Keyword = 6,
Nil = 1,
Number = 0,
Pointer = 15,
String = 4,
Struct = 10,
Symbol = 5,
Table = 9,
Tuple = 8,
}
Expand description
Representation of all Janet types.
Variants§
Abstract = 14
Array = 7
Boolean = 2
Buffer = 11
CFunction = 13
Fiber = 3
Function = 12
Keyword = 6
Nil = 1
Number = 0
Pointer = 15
String = 4
Struct = 10
Symbol = 5
Table = 9
Tuple = 8
Trait Implementations§
source§impl From<u32> for JanetType
impl From<u32> for JanetType
source§fn from(raw: CJanetType) -> Self
fn from(raw: CJanetType) -> Self
Converts to this type from the input type.
source§impl Ord for JanetType
impl Ord for JanetType
source§impl PartialEq for JanetType
impl PartialEq for JanetType
source§impl PartialOrd for JanetType
impl PartialOrd for JanetType
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 JanetType
impl Eq for JanetType
impl StructuralPartialEq for JanetType
Auto Trait Implementations§
impl Freeze for JanetType
impl RefUnwindSafe for JanetType
impl Send for JanetType
impl Sync for JanetType
impl Unpin for JanetType
impl UnwindSafe for JanetType
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