pub struct Context { /* private fields */ }Implementations§
Source§impl Context
impl Context
pub fn new(stack_capacity: usize, registers_capacity: usize) -> Self
pub fn fork(&self) -> Self
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: Send + Sync + 'static>(&self, name: &str) -> Option<&T>
pub fn custom_mut<T: Send + Sync + 'static>( &mut self, name: &str, ) -> Option<&mut T>
pub fn set_custom<T: Send + Sync + 'static>( &mut self, name: impl ToString, data: T, )
Auto Trait Implementations§
impl Freeze for Context
impl !RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnsafeUnpin 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