pub struct Context {
pub register_count: usize,
pub instructions: Vec<Instruction>,
pub resolved_autos: IndexMap<String, usize>,
}
Fields§
§register_count: usize
§instructions: Vec<Instruction>
§resolved_autos: IndexMap<String, usize>
Implementations§
Source§impl Context
impl Context
pub fn new() -> Context
pub fn encode_field_top(&mut self, field: &Arc<Field>)
pub fn encode_field( &mut self, target: Target, resolver: &Box<dyn Fn(&mut Context, &str) -> usize>, source: usize, field: &Arc<Field>, )
pub fn encode_type( &mut self, target: Target, resolver: &Box<dyn Fn(&mut Context, &str) -> usize>, source: usize, type_: &Type, )
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
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