pub struct Context { /* private fields */ }
Implementations§
§impl Context
impl Context
pub fn new( stack_capacity: usize, registers_capacity: usize, heap_page_capacity: usize ) -> Context
pub fn fork(&self) -> Context
pub fn stack_capacity(&self) -> usize
pub fn registers_capacity(&self) -> usize
pub fn heap_page_capacity(&self) -> usize
pub fn stack(&mut self) -> &mut DataStack
pub fn registers(&mut self) -> &mut DataStack
pub fn heap(&mut self) -> &mut DataHeap
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>where T: Send + Sync + 'static,
pub fn custom_mut<T>(&mut self, name: &str) -> Option<&mut T>where T: Send + Sync + 'static,
pub fn set_custom<T>(&mut self, name: impl ToString, data: T)where T: Send + Sync + 'static,
Auto Trait Implementations§
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