pub struct DynContext {
pub symbols: Vec<(Vec<u8>, DynSymbol)>,
pub macros: Vec<LinkMacro>,
pub metaclasses: Vec<Vec<u8>>,
pub metaclass_props: Vec<Vec<u16>>,
pub locals: Vec<DynLocal>,
pub frame_has_self: bool,
}Expand description
What the code is compiled against.
Fields§
§symbols: Vec<(Vec<u8>, DynSymbol)>The global names.
macros: Vec<LinkMacro>The macros.
metaclasses: Vec<Vec<u8>>The classes built into the VM that the image uses, in its order: the VM’s names for them, with their versions.
metaclass_props: Vec<Vec<u16>>For each of those classes, the properties of its methods, the first method’s first.
locals: Vec<DynLocal>The variables of running functions the code can use, which hide global names. Of two with one name, the first counts.
frame_has_self: boolThe innermost of those functions has a self, which code given
as function(...) { ... } then has as well.
Trait Implementations§
Source§impl Clone for DynContext
impl Clone for DynContext
Source§impl Debug for DynContext
impl Debug for DynContext
Auto Trait Implementations§
impl Forget for DynContext
impl Freeze for DynContextwhere
*const u8 is !null: Freeze,
PhantomData<(Vec<u8>, DynSymbol)>: Freeze,
PhantomData<LinkMacro>: Freeze,
PhantomData<Vec<u8>>: Freeze,
PhantomData<Vec<u16>>: Freeze,
PhantomData<DynLocal>: Freeze,
impl Move for DynContext
impl RefUnwindSafe for DynContext
impl Send for DynContextwhere
RawVecInner: Send,
impl Sync for DynContextwhere
RawVecInner: Sync,
impl Unpin for DynContext
impl UnsafeUnpin for DynContextwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(Vec<u8>, DynSymbol)>: UnsafeUnpin,
PhantomData<LinkMacro>: UnsafeUnpin,
PhantomData<Vec<u8>>: UnsafeUnpin,
PhantomData<Vec<u16>>: UnsafeUnpin,
PhantomData<DynLocal>: UnsafeUnpin,
impl UnwindSafe for DynContextwhere
RawVecInner: UnwindSafe,
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