Struct texlang::token::trace::SourceCodeTrace
source · pub struct SourceCodeTrace {
pub origin: Origin,
pub line_content: String,
pub line_number: usize,
pub index: usize,
pub value: String,
pub token: Option<Token>,
}
Expand description
A token trace
Fields§
§origin: Origin
Origin of the source code this token came from.
line_content: String
Content of the line this token came from.
line_number: usize
Number of the line within the file, starting at 1.
index: usize
Index within the line that the token starts.
value: String
Value of the token.
token: Option<Token>
If this is for a token, the value of the token. Otherwise this is an end of input snippet.
Trait Implementations§
source§impl Clone for SourceCodeTrace
impl Clone for SourceCodeTrace
source§fn clone(&self) -> SourceCodeTrace
fn clone(&self) -> SourceCodeTrace
Returns a copy 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 moresource§impl Debug for SourceCodeTrace
impl Debug for SourceCodeTrace
source§impl<'de> Deserialize<'de> for SourceCodeTrace
impl<'de> Deserialize<'de> for SourceCodeTrace
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
source§impl PartialEq<SourceCodeTrace> for SourceCodeTrace
impl PartialEq<SourceCodeTrace> for SourceCodeTrace
source§fn eq(&self, other: &SourceCodeTrace) -> bool
fn eq(&self, other: &SourceCodeTrace) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SourceCodeTrace
impl Serialize for SourceCodeTrace
impl Eq for SourceCodeTrace
impl StructuralEq for SourceCodeTrace
impl StructuralPartialEq for SourceCodeTrace
Auto Trait Implementations§
impl RefUnwindSafe for SourceCodeTrace
impl Send for SourceCodeTrace
impl Sync for SourceCodeTrace
impl Unpin for SourceCodeTrace
impl UnwindSafe for SourceCodeTrace
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