pub struct Context { /* private fields */ }
Implementations§
source§impl Context
impl Context
pub fn new(cmd: Command) -> Context
pub fn init_arg(&mut self, arg: &[usize])
pub fn init_ret(&mut self, ret: &[usize])
pub fn resize_ret(&mut self, new_len: usize)
pub fn arg_slice(&self) -> &[usize]
pub fn ret_slice(&self) -> &[usize]
pub fn cmd(&self) -> Command
pub fn do_rmi<F>(&mut self, handler: F) -> [usize; 5]where F: Fn(&[usize], &mut [usize]) -> Result<(), Error>,
pub fn do_rsi<F>(&mut self, handler: F)where F: FnMut(&[usize], &mut [usize]) -> Result<(), Error>,
Trait Implementations§
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