pub struct CodeFrameLocation {
pub start: Location,
pub end: Option<Location>,
}Expand description
Location information for the error in the source code.
Fields§
§start: LocationStarting location
end: Option<Location>Optional ending location (line inclusive, column half-open)
Trait Implementations§
Source§impl Clone for CodeFrameLocation
impl Clone for CodeFrameLocation
Source§fn clone(&self) -> CodeFrameLocation
fn clone(&self) -> CodeFrameLocation
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 moreSource§impl Debug for CodeFrameLocation
impl Debug for CodeFrameLocation
Source§impl<'de> Deserialize<'de> for CodeFrameLocation
impl<'de> Deserialize<'de> for CodeFrameLocation
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 Copy for CodeFrameLocation
Auto Trait Implementations§
impl Freeze for CodeFrameLocation
impl RefUnwindSafe for CodeFrameLocation
impl Send for CodeFrameLocation
impl Sync for CodeFrameLocation
impl Unpin for CodeFrameLocation
impl UnsafeUnpin for CodeFrameLocation
impl UnwindSafe for CodeFrameLocation
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