[][src]Enum bracket::lexer::Parameters

pub enum Parameters {
    Partial,
    ElseKeyword,
    ExplicitThisKeyword,
    ExplicitThisDotSlash,
    ParentRef,
    Identifier,
    LocalIdentifier,
    PathDelimiter,
    DoubleQuoteString,
    SingleQuoteString,
    StartArray,
    StartSubExpression,
    EndSubExpression,
    HashKey,
    Number,
    True,
    False,
    Null,
    WhiteSpace,
    End,
    Newline,
    Error,
}

Tokens for parameters.

Parameters are converted to a call statement by the parser and must represent all the tokens in a statement ({{...}}) and the start of a block ({{# block}}...{{/block}}).

Variants

Partial

Token for a partial instruction.

ElseKeyword

Token for the else conditional keyword.

ExplicitThisKeyword

Token for the explicit this keyword.

ExplicitThisDotSlash

Token for explicit this notation using a dot and a slash.

ParentRef

Token for a reference to a parent scope.

Identifier

Token for a valid identifier.

LocalIdentifier

Token for a local identifier (preceeded by an @ symbol).

PathDelimiter

Token for the delimiter between path components.

DoubleQuoteString

Token that starts a double-quoted string literal.

SingleQuoteString

Token that starts a single-quoted string literal.

StartArray

Token that starts a raw literal using square brackets.

StartSubExpression

Token that starts a sub-expression.

EndSubExpression

Token that ends a sub-expression.

HashKey

Token for key/value pairs (hash parameters).

Number

Token for numeric values.

True

Token for the true keyword.

False

Token for the false keyword.

Null

Token for the null keyword.

WhiteSpace

Token for whitespace delimiters.

End

Token for the end of a statement or block open tag.

Newline

Newline token.

Error

Error token.

Trait Implementations

impl Clone for Parameters[src]

impl Copy for Parameters[src]

impl Debug for Parameters[src]

impl Eq for Parameters[src]

impl Hash for Parameters[src]

impl<'s> Logos<'s> for Parameters[src]

type Extras = Extras

Associated type Extras for the particular lexer. This can be set using #[logos(extras = MyExtras)] and accessed inside callbacks. Read more

type Source = str

Source type this token can be lexed from. This will default to str, unless one of the defined patterns explicitly uses non-unicode byte values or byte slices, in which case that implementation will use [u8]. Read more

impl PartialEq<Parameters> for Parameters[src]

impl StructuralEq for Parameters[src]

impl StructuralPartialEq for Parameters[src]

Auto Trait Implementations

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> DynClone for T where
    T: Clone
[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.