pub struct StmtForGeneric {
pub control_variables: Vec<Rc<RefCell<VariableInfo>>>,
pub iterator: Rc<RefCell<VariableInfo>>,
pub state: Rc<RefCell<VariableInfo>>,
pub closing: Rc<RefCell<VariableInfo>>,
pub expressions: Vec<Expression>,
pub block: Block,
}Expand description
for statement with generic expressions.
Fields§
§control_variables: Vec<Rc<RefCell<VariableInfo>>>§iterator: Rc<RefCell<VariableInfo>>local variable for iterator
state: Rc<RefCell<VariableInfo>>local variable for state
closing: Rc<RefCell<VariableInfo>>local variable for closing value
expressions: Vec<Expression>§block: BlockImplementations§
Source§impl StmtForGeneric
impl StmtForGeneric
pub fn new( control_variables: Vec<Rc<RefCell<VariableInfo>>>, iterator: Rc<RefCell<VariableInfo>>, state: Rc<RefCell<VariableInfo>>, closing: Rc<RefCell<VariableInfo>>, expressions: Vec<Expression>, block: Block, ) -> Self
Trait Implementations§
Source§impl Clone for StmtForGeneric
impl Clone for StmtForGeneric
Source§fn clone(&self) -> StmtForGeneric
fn clone(&self) -> StmtForGeneric
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 moreAuto Trait Implementations§
impl Freeze for StmtForGeneric
impl !RefUnwindSafe for StmtForGeneric
impl !Send for StmtForGeneric
impl !Sync for StmtForGeneric
impl Unpin for StmtForGeneric
impl !UnwindSafe for StmtForGeneric
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