pub struct ListingEntries(pub Vec<ListingEntry>);Expand description
Per-row entry data for a listing buffer, written by whichever major owns the buffer and read by this mode’s presentation.
Tuple Fields§
§0: Vec<ListingEntry>Trait Implementations§
Source§impl BufferLocal for ListingEntries
impl BufferLocal for ListingEntries
Source§const NAME: &'static str = "directory-listing-mode.entries"
const NAME: &'static str = "directory-listing-mode.entries"
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 = "Per-row listing entries (path + is-dir) for an oil or file-tree \
buffer. Written by the owning major, read by directory-listing-mode to \
resolve each row's icon and theme element."
const DOC: &'static str = "Per-row listing entries (path + is-dir) for an oil or file-tree \ buffer. Written by the owning major, read by directory-listing-mode to \ resolve each row's icon and theme element."
Doc string. Shown in
:describe-buffer when the user
expands a local for detail.Source§const OWNER_MODE: &'static str = "directory-listing-mode"
const OWNER_MODE: &'static str = "directory-listing-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 ListingEntries
impl Clone for ListingEntries
Source§fn clone(&self) -> ListingEntries
fn clone(&self) -> ListingEntries
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 ListingEntries
impl Debug for ListingEntries
Source§impl Default for ListingEntries
impl Default for ListingEntries
Source§fn default() -> ListingEntries
fn default() -> ListingEntries
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ListingEntries
impl RefUnwindSafe for ListingEntries
impl Send for ListingEntries
impl Sync for ListingEntries
impl Unpin for ListingEntries
impl UnsafeUnpin for ListingEntries
impl UnwindSafe for ListingEntries
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