#[repr(u8)]pub enum ConstantTag {
Nil = 0,
Boolean = 1,
Number = 2,
String = 3,
Import = 4,
Table = 5,
Closure = 6,
Vector = 7,
TableWithConstants = 8,
Integer = 9,
ClassShape = 10,
}Expand description
Constant table tag.
Variants§
Nil = 0
Nil constant.
Boolean = 1
Boolean constant.
Number = 2
Number constant.
String = 3
String constant.
Import = 4
Import constant.
Table = 5
Table-shape constant.
Closure = 6
Closure constant.
Vector = 7
Vector constant.
TableWithConstants = 8
Table-shape constant with pre-filled constants.
Integer = 9
64-bit integer constant.
ClassShape = 10
Class-shape constant.
Implementations§
Trait Implementations§
Source§impl Clone for ConstantTag
impl Clone for ConstantTag
Source§fn clone(&self) -> ConstantTag
fn clone(&self) -> ConstantTag
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ConstantTag
Source§impl Debug for ConstantTag
impl Debug for ConstantTag
Source§impl<'de> Deserialize<'de> for ConstantTag
impl<'de> Deserialize<'de> for ConstantTag
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ConstantTag
Source§impl Hash for ConstantTag
impl Hash for ConstantTag
Source§impl Ord for ConstantTag
impl Ord for ConstantTag
Source§fn cmp(&self, other: &ConstantTag) -> Ordering
fn cmp(&self, other: &ConstantTag) -> Ordering
1.21.0 (const: unstable) · 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 ConstantTag
impl PartialEq for ConstantTag
Source§fn eq(&self, other: &ConstantTag) -> bool
fn eq(&self, other: &ConstantTag) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ConstantTag
impl PartialOrd for ConstantTag
Source§impl Serialize for ConstantTag
impl Serialize for ConstantTag
impl StructuralPartialEq for ConstantTag
Auto Trait Implementations§
impl Freeze for ConstantTag
impl RefUnwindSafe for ConstantTag
impl Send for ConstantTag
impl Sync for ConstantTag
impl Unpin for ConstantTag
impl UnsafeUnpin for ConstantTag
impl UnwindSafe for ConstantTag
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