pub struct FileTreeItem { /* private fields */ }Expand description
FileTreeItem can be of two kinds: see FileTreeItem but shares
an info
Implementations§
Source§impl FileTreeItem
impl FileTreeItem
pub fn new_file(path: &Path) -> Result<Self, Error>
pub fn new_path(path: &Path, collapsed: bool) -> Result<Self, Error>
Sourcepub const fn info(&self) -> &TreeItemInfo
pub const fn info(&self) -> &TreeItemInfo
Sourcepub const fn info_mut(&mut self) -> &mut TreeItemInfo
pub const fn info_mut(&mut self) -> &mut TreeItemInfo
Sourcepub fn collapse_path(&mut self)
pub fn collapse_path(&mut self)
§Panics
panics if self is not a path
Sourcepub fn expand_path(&mut self)
pub fn expand_path(&mut self)
§Panics
panics if self is not a path
Trait Implementations§
Source§impl Clone for FileTreeItem
impl Clone for FileTreeItem
Source§fn clone(&self) -> FileTreeItem
fn clone(&self) -> FileTreeItem
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§impl Debug for FileTreeItem
impl Debug for FileTreeItem
Source§impl Ord for FileTreeItem
impl Ord for FileTreeItem
Source§impl PartialEq for FileTreeItem
impl PartialEq for FileTreeItem
Source§impl PartialOrd for FileTreeItem
impl PartialOrd for FileTreeItem
impl Eq for FileTreeItem
Auto Trait Implementations§
impl Freeze for FileTreeItem
impl RefUnwindSafe for FileTreeItem
impl Send for FileTreeItem
impl Sync for FileTreeItem
impl Unpin for FileTreeItem
impl UnwindSafe for FileTreeItem
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