pub struct Token {
pub token_type: TokenType,
marker: u64,
}
Fields§
§token_type: TokenType
§marker: u64
Implementations§
Source§impl Token
impl Token
pub fn new(token_type: TokenType) -> Token
pub fn new_m<M: Hash>(marker: M, token_type: TokenType) -> Token
pub fn match_input<'a, 'b>(
&'a self,
input: &'a str,
app_meta: &'b AppMeta,
) -> impl Stream<Item = FuzzyMatch<'a>> + 'bwhere
'a: 'b,
pub fn match_input_exact<'a, 'b>(
&'a self,
input: &'a str,
app_meta: &'b AppMeta,
) -> impl Stream<Item = TokenMatch<'a>> + 'bwhere
'a: 'b,
Trait Implementations§
Source§impl<'a> From<&'a Token> for TokenMatch<'a>
impl<'a> From<&'a Token> for TokenMatch<'a>
impl Eq for Token
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more