pub struct FileTreeRoot(pub PathBuf);Expand description
Filesystem path the file-tree buffer is rooted at. Single source of truth (M.3.2.c.5).
Tuple Fields§
§0: PathBufTrait Implementations§
Source§impl BufferLocal for FileTreeRoot
impl BufferLocal for FileTreeRoot
Source§const NAME: &'static str = "file-tree-mode.root"
const NAME: &'static str = "file-tree-mode.root"
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 the file-tree buffer is rooted at -- the path \
the user passed to `:Tree` (or the workspace root for \
the default tree)."
const DOC: &'static str = "Directory the file-tree buffer is rooted at -- the path \ the user passed to `:Tree` (or the workspace root for \ the default tree)."
Doc string. Shown in
:describe-buffer when the user
expands a local for detail.Source§const OWNER_MODE: &'static str = "file-tree-mode"
const OWNER_MODE: &'static str = "file-tree-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 FileTreeRoot
impl Clone for FileTreeRoot
Source§fn clone(&self) -> FileTreeRoot
fn clone(&self) -> FileTreeRoot
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 moreAuto Trait Implementations§
impl Freeze for FileTreeRoot
impl RefUnwindSafe for FileTreeRoot
impl Send for FileTreeRoot
impl Sync for FileTreeRoot
impl Unpin for FileTreeRoot
impl UnsafeUnpin for FileTreeRoot
impl UnwindSafe for FileTreeRoot
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