pub struct UnsavedBuffer {
pub id: u32,
pub path: Option<PathBuf>,
pub content_hash: u64,
pub line_count: usize,
}Expand description
Information about an unsaved buffer.
Fields§
§id: u32Buffer ID.
path: Option<PathBuf>Original file path (if any).
content_hash: u64Hash of content for deduplication.
line_count: usizeNumber of lines.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UnsavedBuffer
impl RefUnwindSafe for UnsavedBuffer
impl Send for UnsavedBuffer
impl Sync for UnsavedBuffer
impl Unpin for UnsavedBuffer
impl UnsafeUnpin for UnsavedBuffer
impl UnwindSafe for UnsavedBuffer
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