[−][src]Struct lrlex::LRNonStreamingLexerDef
This struct represents, in essence, a .l file in memory. From it one can produce an LRNonStreamingLexer which actually lexes inputs.
Implementations
impl<StorageT: Copy + Eq + Hash + PrimInt + TryFrom<usize> + Unsigned> LRNonStreamingLexerDef<StorageT>
[src]
pub fn lexer<'lexer, 'input: 'lexer>(
&'lexer self,
s: &'input str
) -> LRNonStreamingLexer<'lexer, 'input, StorageT>
[src]
&'lexer self,
s: &'input str
) -> LRNonStreamingLexer<'lexer, 'input, StorageT>
Return an LRNonStreamingLexer for the String
s
that will lex relative to this
LRNonStreamingLexerDef.
Trait Implementations
impl<StorageT: Copy + Eq + Hash + PrimInt + TryFrom<usize> + Unsigned> LexerDef<StorageT> for LRNonStreamingLexerDef<StorageT>
[src]
fn from_rules(rules: Vec<Rule<StorageT>>) -> LRNonStreamingLexerDef<StorageT>
[src]
fn from_str(s: &str) -> LexBuildResult<LRNonStreamingLexerDef<StorageT>>
[src]
fn get_rule(&self, idx: usize) -> Option<&Rule<StorageT>>
[src]
fn get_rule_by_id(&self, tok_id: StorageT) -> &Rule<StorageT>
[src]
fn get_rule_by_name(&self, n: &str) -> Option<&Rule<StorageT>>
[src]
fn set_rule_ids<'a>(
&'a mut self,
rule_ids_map: &HashMap<&'a str, StorageT>
) -> (Option<HashSet<&'a str>>, Option<HashSet<&'a str>>)
[src]
&'a mut self,
rule_ids_map: &HashMap<&'a str, StorageT>
) -> (Option<HashSet<&'a str>>, Option<HashSet<&'a str>>)
fn iter_rules(&self) -> Iter<'_, Rule<StorageT>>
[src]
Auto Trait Implementations
impl<StorageT> !RefUnwindSafe for LRNonStreamingLexerDef<StorageT>
impl<StorageT> Send for LRNonStreamingLexerDef<StorageT> where
StorageT: Send,
StorageT: Send,
impl<StorageT> Sync for LRNonStreamingLexerDef<StorageT> where
StorageT: Sync,
StorageT: Sync,
impl<StorageT> Unpin for LRNonStreamingLexerDef<StorageT> where
StorageT: Unpin,
StorageT: Unpin,
impl<StorageT> UnwindSafe for LRNonStreamingLexerDef<StorageT> where
StorageT: UnwindSafe,
StorageT: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,