pub struct State<'gc> {
pub globals: Table<'gc>,
pub builtins: Table<'gc>,
pub libs: Table<'gc>,
pub registry: Registry<'gc>,
pub frames: Frames<'gc>,
}Fields§
§globals: Table<'gc>§builtins: Table<'gc>§libs: Table<'gc>§registry: Registry<'gc>§frames: Frames<'gc>Implementations§
Trait Implementations§
Source§impl<'gc> Collect for State<'gc>
impl<'gc> Collect for State<'gc>
Source§fn needs_trace() -> bool
fn needs_trace() -> bool
As an optimization, if this type can never hold a
Gc pointer and trace is unnecessary
to call, you may implement this method and return false. The default implementation returns
true, signaling that Collect::trace must be called.Source§fn trace(&self, cc: &Collection)
fn trace(&self, cc: &Collection)
Must call
Collect::trace on all held Gc pointers. If this type holds inner types that
implement Collect, a valid implementation would simply call Collect::trace on all the
held values to ensure this.Auto Trait Implementations§
impl<'gc> Freeze for State<'gc>
impl<'gc> !RefUnwindSafe for State<'gc>
impl<'gc> !Send for State<'gc>
impl<'gc> !Sync for State<'gc>
impl<'gc> Unpin for State<'gc>
impl<'gc> !UnwindSafe for State<'gc>
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