pub struct Ext2DirectoryEntry {
pub entry: Ext2DirectoryEntryRaw,
pub name: String,
}Expand description
Complete directory entry with name
Fields§
§entry: Ext2DirectoryEntryRaw§name: StringImplementations§
Source§impl Ext2DirectoryEntry
impl Ext2DirectoryEntry
Sourcepub fn from_bytes(data: &[u8]) -> Result<Self, FileSystemError>
pub fn from_bytes(data: &[u8]) -> Result<Self, FileSystemError>
Parse a complete directory entry with name from raw bytes
pub fn name_str(&self) -> Result<String, FileSystemError>
Trait Implementations§
Source§impl Clone for Ext2DirectoryEntry
impl Clone for Ext2DirectoryEntry
Source§fn clone(&self) -> Ext2DirectoryEntry
fn clone(&self) -> Ext2DirectoryEntry
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Ext2DirectoryEntry
impl RefUnwindSafe for Ext2DirectoryEntry
impl Send for Ext2DirectoryEntry
impl Sync for Ext2DirectoryEntry
impl Unpin for Ext2DirectoryEntry
impl UnwindSafe for Ext2DirectoryEntry
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)