pub struct Token {
pub type: TokenType,
pub raw: String,
pub html: String,
pub indent: i32,
pub line: i32,
pub selector: Option<SelectorState>,
}
Expand description
A token is a representation of fully parsed data.
Fields§
§type: TokenType
The type of the token.
raw: String
The raw CRML string of the token.
html: String
The HTML string of the token.
indent: i32
The indent level of the token.
line: i32
The line number the token is found on.
selector: Option<SelectorState>
The selector of the token. Only applies to TokenType::Selector
.
Implementations§
Trait Implementations§
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