pub struct Token {
pub tin: Tin,
pub val: String,
pub src: String,
pub r_i: usize,
pub c_i: usize,
pub use_text: String,
}Expand description
One lexed token.
Fields§
§tin: TinThe token kind.
val: StringThe token’s semantic value: the selector, property, value, comment text, or at-rule keyword.
src: StringThe source text the token consumed, used to derive its end position.
r_i: usize1-based line of the token’s first character.
c_i: usize1-based column (in UTF-16 code units) of the token’s first character.
use_text: StringAn at-rule’s prelude (block at-rules) or params (statement at-rules).
The canonical port carries this in the token’s use field.
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 UnsafeUnpin 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