Struct axfs_vfs::VfsDirEntry
source · 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 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