pub struct BookmarkNode {
pub index_path: Vec<usize>,
pub name: String,
pub path: Option<PathBuf>,
pub folder: bool,
pub open: bool,
pub depth: usize,
}Expand description
One visible bookmark row, in on-screen order. Built by visible_nodes and
used both to render the rows and to drive keyboard navigation (the cursor is
an index into this list).
Fields§
§index_path: Vec<usize>Index path into the bookmarks tree (folder levels then position).
name: StringDisplay name.
path: Option<PathBuf>The expanded directory for a leaf (or a clickable folder); None for a
pure folder.
folder: boolWhether this entry is a folder (holds children or has no path).
open: boolWhether the folder is shown open (either expanded, or forced open while a filter is active so matching children stay visible).
depth: usizeIndentation depth.
Trait Implementations§
Source§impl Clone for BookmarkNode
impl Clone for BookmarkNode
Auto Trait Implementations§
impl Freeze for BookmarkNode
impl RefUnwindSafe for BookmarkNode
impl Send for BookmarkNode
impl Sync for BookmarkNode
impl Unpin for BookmarkNode
impl UnsafeUnpin for BookmarkNode
impl UnwindSafe for BookmarkNode
Blanket Implementations§
Source§impl<C> AsyncPosition<()> for C
impl<C> AsyncPosition<()> for C
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more