pub struct DirEntry {
pub name: Name,
pub attributes: u8,
pub first_cluster: u32,
pub size: u64,
pub is_directory: bool,
/* private fields */
}Expand description
One entry of a directory listing.
Fields§
§name: NameThe long name (on FAT32, the 8.3 name when there is no long one).
attributes: u8The raw attribute byte (read-only 0x01, hidden 0x02, system 0x04, directory 0x10, archive 0x20).
first_cluster: u32The first cluster of the file’s or directory’s data.
size: u64The size in bytes (0 for a FAT32 directory).
is_directory: boolWhether the entry is a directory.
Trait Implementations§
Auto Trait Implementations§
impl Forget for DirEntry
impl Freeze for DirEntry
impl Move for DirEntry
impl RefUnwindSafe for DirEntry
impl Send for DirEntry
impl Sync for DirEntry
impl Unpin for DirEntry
impl UnsafeUnpin for DirEntry
impl UnwindSafe for DirEntry
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