pub struct NavigationGuideLine {
pub line_number: usize,
pub indent_level: usize,
pub item: FilesystemItem,
}
Expand description
Represents a single line in the navigation guide
Fields§
§line_number: usize
The line number in the original document
indent_level: usize
The indentation level (number of spaces / indent_size)
item: FilesystemItem
The filesystem item this line represents
Implementations§
Sourcepub fn is_directory(&self) -> bool
pub fn is_directory(&self) -> bool
Check if this item is a directory
Sourcepub fn is_placeholder(&self) -> bool
pub fn is_placeholder(&self) -> bool
Check if this item is a placeholder
Sourcepub fn children(&self) -> Option<&[NavigationGuideLine]>
pub fn children(&self) -> Option<&[NavigationGuideLine]>
Get the children of a directory item
Trait Implementations§
Source§fn clone(&self) -> NavigationGuideLine
fn clone(&self) -> NavigationGuideLine
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
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