pub struct TokenData {
pub kind: String,
pub text: String,
pub start: usize,
pub end: usize,
}Expand description
Individual token data for lexer testing.
Represents a single token with its kind, text content, and position information used for testing lexer output.
Fields§
§kind: StringThe kind of the token as a string.
text: StringThe text content of the token.
start: usizeThe start position of the token in the source.
end: usizeThe end position of the token in the source.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TokenData
impl<'de> Deserialize<'de> for TokenData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for TokenData
Auto Trait Implementations§
impl Freeze for TokenData
impl RefUnwindSafe for TokenData
impl Send for TokenData
impl Sync for TokenData
impl Unpin for TokenData
impl UnsafeUnpin for TokenData
impl UnwindSafe for TokenData
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