pub struct StatementList {
pub statements: Vec<Statement>,
pub span: Span,
}
Expand description
Represents a list of statements. It is used to store a list of statements for an entire program, or for a block of code within a function or selection statement.
Fields§
§statements: Vec<Statement>
§span: Span
Implementations§
Source§impl StatementList
impl StatementList
Trait Implementations§
Source§impl Clone for StatementList
impl Clone for StatementList
Source§fn clone(&self) -> StatementList
fn clone(&self) -> StatementList
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 Debug for StatementList
impl Debug for StatementList
Source§impl Display for StatementList
impl Display for StatementList
Source§impl PartialEq for StatementList
impl PartialEq for StatementList
Source§impl Serialize for StatementList
impl Serialize for StatementList
impl StructuralPartialEq for StatementList
Auto Trait Implementations§
impl Freeze for StatementList
impl RefUnwindSafe for StatementList
impl Send for StatementList
impl Sync for StatementList
impl Unpin for StatementList
impl UnwindSafe for StatementList
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