[][src]Struct libslide::parser::statement_parser::ExpressionParser

pub struct ExpressionParser<'a> {
    _input: PeekIter<Token>,
    program: &'a str,
    diagnostics: Vec<Diagnostic>,
}

Fields

_input: PeekIter<Token>program: &'a strdiagnostics: Vec<Diagnostic>

Implementations

impl<'a> ExpressionParser<'a>[src]

fn new(input: Vec<Token>, program: &'a str) -> Self[src]

fn parse_stmt(&mut self) -> Stmt[src]

fn parse_pattern(&mut self, name: String, span: Span) -> RcExpr[src]

fn peek_content(&mut self) -> &str[src]

Returns the full content of the current (peeked) token.

Trait Implementations

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<'a> RefUnwindSafe for ExpressionParser<'a>

impl<'a> Send for ExpressionParser<'a>

impl<'a> Sync for ExpressionParser<'a>

impl<'a> Unpin for ExpressionParser<'a>

impl<'a> UnwindSafe for ExpressionParser<'a>

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<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.