[][src]Struct piston_meta::meta_rules::FastSelect

pub struct FastSelect {
    pub table: [u8; 256],
    pub args: Vec<Rule>,
    pub tail: bool,
    pub debug_id: DebugId,
}

Stores information about select.

Fields

table: [u8; 256]

The table used to look up sub-rule from next byte.

args: Vec<Rule>

The rules to select from using the table. If tail is true, the last rule is used in table lookup fails.

tail: bool

Whether the last rule is used when table lookup fails.

debug_id: DebugId

A debug id to track down the rule generating an error.

Methods

impl FastSelect[src]

pub fn parse(
    &self,
    tokens: &mut Vec<Range<MetaData>>,
    state: &TokenizerState,
    read_token: &ReadToken,
    refs: &[Rule]
) -> ParseResult<TokenizerState>
[src]

Parses select with lookup table.

Trait Implementations

impl PartialEq<FastSelect> for FastSelect[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Clone for FastSelect[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for FastSelect[src]

Auto Trait Implementations

impl Send for FastSelect

impl Sync for FastSelect

Blanket Implementations

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.

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

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

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