pub struct CodeLocation {
pub file: PathBuf,
pub line: usize,
pub column: usize,
}Expand description
Location in code
This struct specifies a location in source code using file path, line, and column.
Fields§
§file: PathBufFile path
line: usizeLine number
column: usizeColumn number
Trait Implementations§
Source§impl Clone for CodeLocation
impl Clone for CodeLocation
Source§fn clone(&self) -> CodeLocation
fn clone(&self) -> CodeLocation
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 CodeLocation
impl Debug for CodeLocation
Source§impl<'de> Deserialize<'de> for CodeLocation
impl<'de> Deserialize<'de> for CodeLocation
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 CodeLocation
impl RefUnwindSafe for CodeLocation
impl Send for CodeLocation
impl Sync for CodeLocation
impl Unpin for CodeLocation
impl UnwindSafe for CodeLocation
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