Struct dot_parser::ast::StmtList
source · [−]Expand description
A list of statements. This corresponds to the stmt_list
non-terminal of the
grammar.
Fields
stmts: Vec<Stmt<'a, A>>
The list of statements.
Trait Implementations
sourceimpl<'a, A> FromIterator<Stmt<'a, A>> for StmtList<'a, A>
impl<'a, A> FromIterator<Stmt<'a, A>> for StmtList<'a, A>
sourcefn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = Stmt<'a, A>>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = Stmt<'a, A>>,
Creates a value from an iterator. Read more
sourceimpl<'a, 'b, A> IntoIterator for &'b StmtList<'a, A>
impl<'a, 'b, A> IntoIterator for &'b StmtList<'a, A>
sourceimpl<'a, A> IntoIterator for StmtList<'a, A>
impl<'a, A> IntoIterator for StmtList<'a, A>
sourceimpl<'a, A: Ord> Ord for StmtList<'a, A>
impl<'a, A: Ord> Ord for StmtList<'a, A>
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<'a, A: PartialEq> PartialEq<StmtList<'a, A>> for StmtList<'a, A>
impl<'a, A: PartialEq> PartialEq<StmtList<'a, A>> for StmtList<'a, A>
sourceimpl<'a, A: PartialOrd> PartialOrd<StmtList<'a, A>> for StmtList<'a, A>
impl<'a, A: PartialOrd> PartialOrd<StmtList<'a, A>> for StmtList<'a, A>
sourcefn partial_cmp(&self, other: &StmtList<'a, A>) -> Option<Ordering>
fn partial_cmp(&self, other: &StmtList<'a, A>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<'a, A: Eq> Eq for StmtList<'a, A>
impl<'a, A> StructuralEq for StmtList<'a, A>
impl<'a, A> StructuralPartialEq for StmtList<'a, A>
Auto Trait Implementations
impl<'a, A> RefUnwindSafe for StmtList<'a, A>where
A: RefUnwindSafe,
impl<'a, A> Send for StmtList<'a, A>where
A: Send,
impl<'a, A> Sync for StmtList<'a, A>where
A: Sync,
impl<'a, A> Unpin for StmtList<'a, A>where
A: Unpin,
impl<'a, A> UnwindSafe for StmtList<'a, A>where
A: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more