pub enum DynSymbol {
Object {
id: u32,
kind: DynObjKind,
},
Class {
meta_index: u16,
id: u32,
},
Property(u16),
Function {
addr: u32,
argc: usize,
opt_argc: usize,
varargs: bool,
},
Enum(u32),
BuiltIn {
set: u16,
index: u16,
min_argc: usize,
opt_argc: usize,
varargs: bool,
},
}Expand description
What a global name stands for in the program that is running.
Variants§
Object
An object.
Class
The object that stands for a class built into the VM.
Fields
Property(u16)
A property, by its number.
Function
A function.
Fields
Enum(u32)
A value of an enumeration, by its number.
BuiltIn
A function built into the VM.
Trait Implementations§
impl Eq for DynSymbol
impl StructuralPartialEq for DynSymbol
Auto Trait Implementations§
impl Forget for DynSymbol
impl Freeze for DynSymbol
impl Move for DynSymbol
impl RefUnwindSafe for DynSymbol
impl Send for DynSymbol
impl Sync for DynSymbol
impl Unpin for DynSymbol
impl UnsafeUnpin for DynSymbol
impl UnwindSafe for DynSymbol
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.