pub struct Token<'a> {
pub type: TokType,
pub string: &'a str,
pub start_pos: TextPositionSnapshot,
pub end_pos: TextPositionSnapshot,
pub whitespace_before: Rc<RefCell<State<'a>>>,
pub whitespace_after: Rc<RefCell<State<'a>>>,
pub relative_indent: Option<&'a str>,
}
Fields§
§type: TokType
§string: &'a str
§start_pos: TextPositionSnapshot
§end_pos: TextPositionSnapshot
§whitespace_before: Rc<RefCell<State<'a>>>
§whitespace_after: Rc<RefCell<State<'a>>>
§relative_indent: Option<&'a str>
Trait Implementations§
impl<'a> Eq for Token<'a>
Auto Trait Implementations§
impl<'a> Freeze for Token<'a>
impl<'a> !RefUnwindSafe for Token<'a>
impl<'a> !Send for Token<'a>
impl<'a> !Sync for Token<'a>
impl<'a> Unpin for Token<'a>
impl<'a> !UnwindSafe for Token<'a>
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