pub struct VfsDirEntry { /* private fields */ }
Expand description
Directory entry.
Implementations§
Source§impl VfsDirEntry
impl VfsDirEntry
Sourcepub fn new(name: &str, ty: VfsNodeType) -> Self
pub fn new(name: &str, ty: VfsNodeType) -> Self
Creates a new VfsDirEntry
with the given name and type.
Sourcepub fn entry_type(&self) -> VfsNodeType
pub fn entry_type(&self) -> VfsNodeType
Returns the type of the entry.
Sourcepub fn name_as_bytes(&self) -> &[u8]
pub fn name_as_bytes(&self) -> &[u8]
Converts the name of the entry to a byte slice.
Auto Trait Implementations§
impl Freeze for VfsDirEntry
impl RefUnwindSafe for VfsDirEntry
impl Send for VfsDirEntry
impl Sync for VfsDirEntry
impl Unpin for VfsDirEntry
impl UnwindSafe for VfsDirEntry
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