[][src]Struct lrlex::Rule

pub struct Rule<StorageT> {
    pub tok_id: Option<StorageT>,
    pub name: Option<String>,
    pub re_str: String,
    pub re: Regex,
}

Fields

tok_id: Option<StorageT>

If Some, the ID that lexemes created against this rule will be given (lrlex gives such rules a guaranteed unique value, though that value can be overridden by clients who need to control the ID). If None, then this rule specifies lexemes which should not appear in the user's input.

name: Option<String>

This rule's name. If None, then text which matches this rule will be skipped (i.e. will not create a lexeme).

re_str: Stringre: Regex

Auto Trait Implementations

impl<StorageT> !RefUnwindSafe for Rule<StorageT>

impl<StorageT> Send for Rule<StorageT> where
    StorageT: Send

impl<StorageT> Sync for Rule<StorageT> where
    StorageT: Sync

impl<StorageT> Unpin for Rule<StorageT> where
    StorageT: Unpin

impl<StorageT> UnwindSafe for Rule<StorageT> where
    StorageT: UnwindSafe

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.

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

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