pub struct Excerpt {
pub text: String,
pub total: usize,
pub hash: ContentHash,
pub whole: Option<String>,
}Expand description
What Workspace::excerpt read.
Fields§
§text: StringThe lines asked, each with its line end as in the file.
total: usizeHow many lines the file has, as str::lines counts them.
hash: ContentHashThe hash of the whole file.
whole: Option<String>The whole file’s text, when it is at most MAX_BYTES: sending
that much costs about what a call does, and an edit after the read
starts from it instead of fetching the file.
Implementations§
Trait Implementations§
impl Eq for Excerpt
impl StructuralPartialEq for Excerpt
Auto Trait Implementations§
impl Freeze for Excerpt
impl RefUnwindSafe for Excerpt
impl Send for Excerpt
impl Sync for Excerpt
impl Unpin for Excerpt
impl UnsafeUnpin for Excerpt
impl UnwindSafe for Excerpt
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.