Enum EnclosingStatementChain
pub enum EnclosingStatementChain {
Loop {
loop_node_id: AstNodeId,
parent_switch_id: Option<AstNodeId>,
},
Switch {
switch_node_id: AstNodeId,
parent_loop_id: Option<AstNodeId>,
},
}Expand description
An outer switch/loop statement which is in effect while we are parsing statements inside it, plus an option parent switch/loop statement.
Variants§
Trait Implementations§
§impl Clone for EnclosingStatementChain
impl Clone for EnclosingStatementChain
§fn clone(&self) -> EnclosingStatementChain
fn clone(&self) -> EnclosingStatementChain
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 more§impl Debug for EnclosingStatementChain
impl Debug for EnclosingStatementChain
impl Copy for EnclosingStatementChain
Auto Trait Implementations§
impl Freeze for EnclosingStatementChain
impl RefUnwindSafe for EnclosingStatementChain
impl Send for EnclosingStatementChain
impl Sync for EnclosingStatementChain
impl Unpin for EnclosingStatementChain
impl UnwindSafe for EnclosingStatementChain
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