pub enum CompoundStatement<'a> {
FunctionDef(FunctionDef<'a>),
If(If<'a>),
For(For<'a>),
While(While<'a>),
ClassDef(ClassDef<'a>),
Try(Try<'a>),
TryStar(TryStar<'a>),
With(With<'a>),
Match(Match<'a>),
}
Variants§
FunctionDef(FunctionDef<'a>)
If(If<'a>)
For(For<'a>)
While(While<'a>)
ClassDef(ClassDef<'a>)
Try(Try<'a>)
TryStar(TryStar<'a>)
With(With<'a>)
Match(Match<'a>)
Trait Implementations§
Source§impl<'a> Clone for CompoundStatement<'a>
impl<'a> Clone for CompoundStatement<'a>
Source§fn clone(&self) -> CompoundStatement<'a>
fn clone(&self) -> CompoundStatement<'a>
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 moreSource§impl<'a> Codegen<'a> for CompoundStatement<'a>
impl<'a> Codegen<'a> for CompoundStatement<'a>
fn codegen(&self, state: &mut CodegenState<'a>)
Source§impl<'a> Debug for CompoundStatement<'a>
impl<'a> Debug for CompoundStatement<'a>
Source§impl<'a> PartialEq for CompoundStatement<'a>
impl<'a> PartialEq for CompoundStatement<'a>
Source§impl<'a> WithLeadingLines<'a> for CompoundStatement<'a>
impl<'a> WithLeadingLines<'a> for CompoundStatement<'a>
fn leading_lines(&mut self) -> &mut Vec<EmptyLine<'a>>
impl<'a> Eq for CompoundStatement<'a>
impl<'a> StructuralPartialEq for CompoundStatement<'a>
Auto Trait Implementations§
impl<'a> Freeze for CompoundStatement<'a>
impl<'a> RefUnwindSafe for CompoundStatement<'a>
impl<'a> Send for CompoundStatement<'a>
impl<'a> Sync for CompoundStatement<'a>
impl<'a> Unpin for CompoundStatement<'a>
impl<'a> UnwindSafe for CompoundStatement<'a>
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