Struct libcst_native::SimpleStatementSuite
source · pub struct SimpleStatementSuite<'a> {
pub body: Vec<SmallStatement<'a>>,
pub leading_whitespace: SimpleWhitespace<'a>,
pub trailing_whitespace: TrailingWhitespace<'a>,
}
Fields§
§body: Vec<SmallStatement<'a>>
Sequence of small statements. All but the last statement are required to have a semicolon.
leading_whitespace: SimpleWhitespace<'a>
The whitespace between the colon in the parent statement and the body.
trailing_whitespace: TrailingWhitespace<'a>
Any optional trailing comment and the final NEWLINE
at the end of the line.
Trait Implementations§
source§impl<'a> Clone for SimpleStatementSuite<'a>
impl<'a> Clone for SimpleStatementSuite<'a>
source§fn clone(&self) -> SimpleStatementSuite<'a>
fn clone(&self) -> SimpleStatementSuite<'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 SimpleStatementSuite<'a>
impl<'a> Codegen<'a> for SimpleStatementSuite<'a>
fn codegen(&self, state: &mut CodegenState<'a>)
source§impl<'a> Debug for SimpleStatementSuite<'a>
impl<'a> Debug for SimpleStatementSuite<'a>
source§impl<'a> PartialEq for SimpleStatementSuite<'a>
impl<'a> PartialEq for SimpleStatementSuite<'a>
source§fn eq(&self, other: &SimpleStatementSuite<'a>) -> bool
fn eq(&self, other: &SimpleStatementSuite<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for SimpleStatementSuite<'a>
impl<'a> StructuralPartialEq for SimpleStatementSuite<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for SimpleStatementSuite<'a>
impl<'a> Send for SimpleStatementSuite<'a>
impl<'a> Sync for SimpleStatementSuite<'a>
impl<'a> Unpin for SimpleStatementSuite<'a>
impl<'a> UnwindSafe for SimpleStatementSuite<'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