pub struct EntryName { /* private fields */ }Expand description
Entry name resolved relative to a parent directory path.
Implementations§
Source§impl EntryName
impl EntryName
Sourcepub fn with(self, ino: Inode) -> ResolvedPath
pub fn with(self, ino: Inode) -> ResolvedPath
Attaches an inode to this entry name.
Sourcepub fn new(parent: FolderPath, name: OsString) -> Self
pub fn new(parent: FolderPath, name: OsString) -> Self
Creates an entry name from a parent folder path and child name.
Sourcepub fn full_path(&self) -> PathBuf
pub fn full_path(&self) -> PathBuf
Returns the full path by joining the parent path and entry name.
Sourcepub fn parent_path(&self) -> Arc<PathBuf> ⓘ
pub fn parent_path(&self) -> Arc<PathBuf> ⓘ
Returns the parent directory path.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EntryName
impl RefUnwindSafe for EntryName
impl Send for EntryName
impl Sync for EntryName
impl Unpin for EntryName
impl UnsafeUnpin for EntryName
impl UnwindSafe for EntryName
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