pub struct InitExpr(/* private fields */);
Expand description
Initialization expression.
Implementations§
source§impl InitExpr
impl InitExpr
sourcepub fn new(code: Vec<Instruction>) -> Self
pub fn new(code: Vec<Instruction>) -> Self
New initialization expression from instruction list.
code
must end with the Instruction::End
instruction!
sourcepub fn code(&self) -> &[Instruction]
pub fn code(&self) -> &[Instruction]
List of instructions used in the expression.
sourcepub fn code_mut(&mut self) -> &mut Vec<Instruction>
pub fn code_mut(&mut self) -> &mut Vec<Instruction>
List of instructions used in the expression.
Trait Implementations§
source§impl Deserialize for InitExpr
impl Deserialize for InitExpr
source§impl PartialEq for InitExpr
impl PartialEq for InitExpr
impl StructuralPartialEq for InitExpr
Auto Trait Implementations§
impl RefUnwindSafe for InitExpr
impl Send for InitExpr
impl Sync for InitExpr
impl Unpin for InitExpr
impl UnwindSafe for InitExpr
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