pub struct ExcerptSource {
pub source: BufferId,
pub path: PathBuf,
pub line: u32,
}Expand description
Where a composed line came from: the source document, its file, and the 0-based line within it.
source is the identity to ACT on and path the identity to show. They
are not interchangeable: a multibuffer’s sources are documents the view
owns and no buffer store holds, so a caller that resolved only the path
and then addressed the file by name would be editing a different
document — the user’s own buffer for that file, if any — and the view’s
:w could later overwrite one with the other.
Fields§
§source: BufferIdThe source document’s id. Addressable by Effect::ApplyEdit.
path: PathBufThe source document’s file path — the identity to show, never to address the document by (see above).
line: u32The line within the source document, 0-based.
Trait Implementations§
Source§impl Clone for ExcerptSource
impl Clone for ExcerptSource
Source§fn clone(&self) -> ExcerptSource
fn clone(&self) -> ExcerptSource
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 ExcerptSource
impl Debug for ExcerptSource
impl Eq for ExcerptSource
Source§impl PartialEq for ExcerptSource
impl PartialEq for ExcerptSource
impl StructuralPartialEq for ExcerptSource
Auto Trait Implementations§
impl Freeze for ExcerptSource
impl RefUnwindSafe for ExcerptSource
impl Send for ExcerptSource
impl Sync for ExcerptSource
impl Unpin for ExcerptSource
impl UnsafeUnpin for ExcerptSource
impl UnwindSafe for ExcerptSource
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.