Enum libcst_native::CompoundStatement
source · 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 copy 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§fn eq(&self, other: &CompoundStatement<'a>) -> bool
fn eq(&self, other: &CompoundStatement<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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> 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