pub struct Context { /* private fields */ }Implementations§
Source§impl Context
impl Context
pub fn new(stack_capacity: usize, registers_capacity: usize) -> Context
pub fn fork(&self) -> Context
pub fn stack_capacity(&self) -> usize
pub fn registers_capacity(&self) -> usize
pub fn stack(&mut self) -> &mut DataStack
pub fn registers(&mut self) -> &mut DataStack
pub fn stack_and_registers(&mut self) -> (&mut DataStack, &mut DataStack)
pub fn store_registers(&mut self)
pub fn restore_registers(&mut self)
pub fn registers_barriers(&self) -> &[usize]
pub fn absolute_register_index(&self, index: usize) -> usize
pub fn access_register( &mut self, index: usize, ) -> Option<DataStackRegisterAccess<'_>>
pub fn custom<T>(&self, name: &str) -> Option<&T>
pub fn custom_mut<T>(&mut self, name: &str) -> Option<&mut T>
pub fn set_custom<T>(&mut self, name: impl ToString, data: T)
Trait Implementations§
Source§impl From<Context> for VmScopeFutureContext
impl From<Context> for VmScopeFutureContext
Source§fn from(value: Context) -> VmScopeFutureContext
fn from(value: Context) -> VmScopeFutureContext
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Context
impl !RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl !UnwindSafe for Context
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