Enum EnclosingStatement
pub enum EnclosingStatement {
Loop(AstNodeId),
Switch(AstNodeId),
}Expand description
An outer switch or loop statement which is in effect while we are parsing statements inside it.
Variants§
Trait Implementations§
§impl Clone for EnclosingStatement
impl Clone for EnclosingStatement
§fn clone(&self) -> EnclosingStatement
fn clone(&self) -> EnclosingStatement
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 EnclosingStatement
impl Debug for EnclosingStatement
impl Copy for EnclosingStatement
Auto Trait Implementations§
impl Freeze for EnclosingStatement
impl RefUnwindSafe for EnclosingStatement
impl Send for EnclosingStatement
impl Sync for EnclosingStatement
impl Unpin for EnclosingStatement
impl UnwindSafe for EnclosingStatement
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