pub enum Located {
Found {
line: u32,
end: u32,
},
Whole,
Lost,
FileMissing,
}Expand description
The outcome of pointing a target at a file’s current contents.
Variants§
Found
The rows the reference covers, 1-based and inclusive. A reference to a single line is a span of one, so the reader always gets a segment.
Whole
A whole-file target: the file, at no particular line.
Lost
The file was read, but the symbol or line the target names is gone from it.
FileMissing
The file itself could not be read at all: absent from the revision
the target was resolved against (or, with none pinned, from the
worktree). Distinguished from Lost so the reader is told which one
happened.
Trait Implementations§
impl Copy for Located
impl Eq for Located
impl StructuralPartialEq for Located
Auto Trait Implementations§
impl Freeze for Located
impl RefUnwindSafe for Located
impl Send for Located
impl Sync for Located
impl Unpin for Located
impl UnsafeUnpin for Located
impl UnwindSafe for Located
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