[][src]Struct libslide::grammar::statement::StmtList

pub struct StmtList {
    list: Vec<Stmt>,
}

A list of statements in a slide program.

Fields

list: Vec<Stmt>

The list of statements.

Implementations

impl StmtList[src]

pub(crate) fn new(list: Vec<Stmt>) -> Self[src]

pub(crate) fn iter(&self) -> Iter<'_, Stmt>[src]

Trait Implementations

impl Clone for StmtList[src]

impl Debug for StmtList[src]

impl Display for StmtList[src]

impl Emit for StmtList[src]

impl Grammar for StmtList[src]

impl IntoIterator for StmtList[src]

type Item = Stmt

The type of the elements being iterated over.

type IntoIter = StmtListIterator

Which kind of iterator are we turning this into?

impl<'a> LintRule<'a, StmtList> for HomogenousAssignmentLinter<'a>[src]

impl<'a> LintRule<'a, StmtList> for RedundantNestingLinter<'a>[src]

impl<'a> LintRule<'a, StmtList> for UnarySeriesLinter<'a>[src]

impl<'a> Parser<StmtList> for ExpressionParser<'a>[src]

type Expr = RcExpr

fn has_stmt_break(&mut self) -> bool[src]

Do we have another statement (on a newline)?

Auto Trait Implementations

impl RefUnwindSafe for StmtList

impl Send for StmtList

impl Sync for StmtList

impl Unpin for StmtList

impl UnwindSafe for StmtList

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.