pub struct DirectoryEntry<'a> {
pub id: u64,
pub parent_id: Option<u64>,
pub name: &'a str,
}Expand description
Directory defined in RMAN
Fields§
§id: u64Directory ID
parent_id: Option<u64>Parent directory, if any
name: &'a strDirectory name
Implementations§
Source§impl<'a> DirectoryEntry<'a>
impl<'a> DirectoryEntry<'a>
Sourcepub fn path(&self, dirs: &[DirectoryEntry<'_>]) -> String
pub fn path(&self, dirs: &[DirectoryEntry<'_>]) -> String
Build absolute path, using list of all directories
Sourcepub fn build_path_map(entries: &[DirectoryEntry<'_>]) -> DirPaths
pub fn build_path_map(entries: &[DirectoryEntry<'_>]) -> DirPaths
Resolve directory paths, return a map indexed by ID
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DirectoryEntry<'a>
impl<'a> RefUnwindSafe for DirectoryEntry<'a>
impl<'a> Send for DirectoryEntry<'a>
impl<'a> Sync for DirectoryEntry<'a>
impl<'a> Unpin for DirectoryEntry<'a>
impl<'a> UnwindSafe for DirectoryEntry<'a>
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