[−][src]Struct lrlex::Rule
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: String
re: Regex
Auto Trait Implementations
impl<StorageT> Send for Rule<StorageT> where
StorageT: Send,
StorageT: Send,
impl<StorageT> Sync for Rule<StorageT> where
StorageT: Sync,
StorageT: Sync,
impl<StorageT> Unpin for Rule<StorageT> where
StorageT: Unpin,
StorageT: Unpin,
impl<StorageT> UnwindSafe for Rule<StorageT> where
StorageT: UnwindSafe,
StorageT: UnwindSafe,
impl<StorageT> !RefUnwindSafe for Rule<StorageT>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,