pub struct ScopeProcessing {
pub variables: Vec<Variable>,
pub instructions: Vec<Instruction>,
}
Expand description
Information necessary when compiling a scope.
Fields§
§variables: Vec<Variable>
The variable declarations.
instructions: Vec<Instruction>
The operations.
Implementations§
Source§impl ScopeProcessing
impl ScopeProcessing
Sourcepub fn optimize(self) -> Self
pub fn optimize(self) -> Self
Optimize the variables and operations.
§Notes:
This should be called once right after the creation of the type. If you built this type from the scope process function, you don’t have to call it again.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScopeProcessing
impl !RefUnwindSafe for ScopeProcessing
impl !Send for ScopeProcessing
impl !Sync for ScopeProcessing
impl Unpin for ScopeProcessing
impl !UnwindSafe for ScopeProcessing
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