pub struct TokenRegex {
pub ttype: TokenType,
pub regex: Regex,
}
Expand description
Contains the regex for a token and its type
Fields§
§ttype: TokenType
Token type
regex: Regex
A regex in perl-compatible syntax
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TokenRegex
impl RefUnwindSafe for TokenRegex
impl Send for TokenRegex
impl Sync for TokenRegex
impl Unpin for TokenRegex
impl UnwindSafe for TokenRegex
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