pub struct SourcePosition {
pub column: String,
pub line: String,
pub offset: String,
}Expand description
Zero-based UTF-8 byte offset with one-based source coordinates.
JSON schema
{
"description": "Zero-based UTF-8 byte offset with one-based source coordinates.",
"type": "object",
"required": [
"column",
"line",
"offset"
],
"properties": {
"column": {
"type": "string"
},
"line": {
"type": "string"
},
"offset": {
"type": "string"
}
},
"additionalProperties": false
}Fields§
§column: String§line: String§offset: StringTrait Implementations§
Source§impl Clone for SourcePosition
impl Clone for SourcePosition
Source§fn clone(&self) -> SourcePosition
fn clone(&self) -> SourcePosition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SourcePosition
impl Debug for SourcePosition
Source§impl<'de> Deserialize<'de> for SourcePosition
impl<'de> Deserialize<'de> for SourcePosition
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
Auto Trait Implementations§
impl Freeze for SourcePosition
impl RefUnwindSafe for SourcePosition
impl Send for SourcePosition
impl Sync for SourcePosition
impl Unpin for SourcePosition
impl UnsafeUnpin for SourcePosition
impl UnwindSafe for SourcePosition
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