pub struct RemapContext { /* private fields */ }
Expand description
Context for remap execution containing captured values
Implementations§
Source§impl RemapContext
impl RemapContext
pub fn new() -> Self
Sourcepub fn add_capture(&mut self, index: usize, value: Value)
pub fn add_capture(&mut self, index: usize, value: Value)
Add a captured value at the specified index
Sourcepub fn get_capture(&self, index: usize) -> Option<&Value>
pub fn get_capture(&self, index: usize) -> Option<&Value>
Get a captured value by index
Sourcepub fn add_context_import(&mut self, id: ImportId, value: Value)
pub fn add_context_import(&mut self, id: ImportId, value: Value)
Add context values for reference resolution
pub fn add_context_export(&mut self, id: ExportId, value: Value)
Trait Implementations§
Source§impl Clone for RemapContext
impl Clone for RemapContext
Source§fn clone(&self) -> RemapContext
fn clone(&self) -> RemapContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RemapContext
impl Debug for RemapContext
Auto Trait Implementations§
impl Freeze for RemapContext
impl !RefUnwindSafe for RemapContext
impl Send for RemapContext
impl Sync for RemapContext
impl Unpin for RemapContext
impl !UnwindSafe for RemapContext
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