pub struct CompilationLocation {
pub path: PathBuf,
pub line: u32,
pub col: u32,
}Expand description
CM.3b: a source location parsed out of a single *compilation*
buffer line by parse_location_line for the <CR>-jump. line /
col are 0-based — the error substrate +
Editor::jump_to_file_line_col convention.
Fields§
§path: PathBuf§line: u320-based source line.
col: u320-based source column (0 for gnu short-form lines with no
column).
Trait Implementations§
Source§impl Clone for CompilationLocation
impl Clone for CompilationLocation
Source§fn clone(&self) -> CompilationLocation
fn clone(&self) -> CompilationLocation
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 CompilationLocation
impl Debug for CompilationLocation
impl Eq for CompilationLocation
Source§impl PartialEq for CompilationLocation
impl PartialEq for CompilationLocation
impl StructuralPartialEq for CompilationLocation
Auto Trait Implementations§
impl Freeze for CompilationLocation
impl RefUnwindSafe for CompilationLocation
impl Send for CompilationLocation
impl Sync for CompilationLocation
impl Unpin for CompilationLocation
impl UnsafeUnpin for CompilationLocation
impl UnwindSafe for CompilationLocation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.