pub struct ILContext {
pub variables: Vec<Value>,
pub captures: Vec<CapId>,
}
Expand description
Context for IL execution with variable bindings
Fields§
§variables: Vec<Value>
§captures: Vec<CapId>
Implementations§
Source§impl ILContext
impl ILContext
pub fn new(captures: Vec<CapId>) -> Self
pub fn with_capacity(capacity: usize, captures: Vec<CapId>) -> Self
pub fn get_variable(&self, index: u32) -> Option<&Value>
pub fn set_variable(&mut self, index: u32, value: Value) -> Result<(), ILError>
pub fn push_variable(&mut self, value: Value) -> u32
pub fn get_capture(&self, index: u32) -> Option<&CapId>
Auto Trait Implementations§
impl Freeze for ILContext
impl RefUnwindSafe for ILContext
impl Send for ILContext
impl Sync for ILContext
impl Unpin for ILContext
impl UnwindSafe for ILContext
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