pub struct SyntaxToken {
pub content: String,
pub token_type: String,
pub start_position: usize,
pub end_position: usize,
pub line: usize,
pub column: usize,
}Expand description
Syntax highlighting token
Fields§
§content: StringToken content
token_type: StringToken type for highlighting
start_position: usizeStart position in document
end_position: usizeEnd position in document
line: usizeLine number (1-based)
column: usizeColumn number (1-based)
Implementations§
Trait Implementations§
Source§impl Clone for SyntaxToken
impl Clone for SyntaxToken
Source§fn clone(&self) -> SyntaxToken
fn clone(&self) -> SyntaxToken
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SyntaxToken
impl RefUnwindSafe for SyntaxToken
impl Send for SyntaxToken
impl Sync for SyntaxToken
impl Unpin for SyntaxToken
impl UnwindSafe for SyntaxToken
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