pub struct OilSnapshotLocal(pub OilSnapshot);Expand description
DL.5: the directory state :w diffs against.
It used to live on OilBuffer alongside the rope. The rope is an
actor-backed Document now, so the snapshot moves here — the same
place OilDir already lived, and the same shape the file tree has
used for its entries all along.
Tuple Fields§
§0: OilSnapshotTrait Implementations§
Source§impl BufferLocal for OilSnapshotLocal
impl BufferLocal for OilSnapshotLocal
Source§const NAME: &'static str = "oil-mode.snapshot"
const NAME: &'static str = "oil-mode.snapshot"
Public display name (
:describe-buffer row label,
debug logs). Convention: <owner-mode-name>.<key>,
e.g. "file-tree.entries". Not a registry key — locals
aren’t registered globally; the name is metadata for
inspection.Source§const DOC: &'static str = "Directory entries as of open or the last successful `:w`. \
`:w` diffs the buffer's text against this to derive the renames, \
deletes and creates to execute."
const DOC: &'static str = "Directory entries as of open or the last successful `:w`. \ `:w` diffs the buffer's text against this to derive the renames, \ deletes and creates to execute."
Doc string. Shown in
:describe-buffer when the user
expands a local for detail.Source§const OWNER_MODE: &'static str = "oil-mode"
const OWNER_MODE: &'static str = "oil-mode"
Mode id that owns this local. Attribution metadata for
:describe-buffer; the write-time check the design calls for
(a ModeContext::set_local::<T> that rejects a non-owner) is not
implemented, so nothing enforces it today (see the module docs).Source§impl Clone for OilSnapshotLocal
impl Clone for OilSnapshotLocal
Source§fn clone(&self) -> OilSnapshotLocal
fn clone(&self) -> OilSnapshotLocal
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 OilSnapshotLocal
impl Debug for OilSnapshotLocal
Source§impl Default for OilSnapshotLocal
impl Default for OilSnapshotLocal
Source§fn default() -> OilSnapshotLocal
fn default() -> OilSnapshotLocal
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OilSnapshotLocal
impl RefUnwindSafe for OilSnapshotLocal
impl Send for OilSnapshotLocal
impl Sync for OilSnapshotLocal
impl Unpin for OilSnapshotLocal
impl UnsafeUnpin for OilSnapshotLocal
impl UnwindSafe for OilSnapshotLocal
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