pub struct DirEntry {
pub entry_type: EntryType,
pub block: u32,
pub parent: u32,
pub size: u32,
pub access: Access,
pub date: AmigaDate,
pub real_entry: u32,
/* private fields */
}Expand description
Directory entry information.
Fields§
§entry_type: EntryTypeEntry type.
block: u32Block number of this entry.
parent: u32Parent block number.
size: u32File size (0 for directories).
access: AccessAccess permissions.
date: AmigaDateLast modification date.
real_entry: u32Real entry (for hard links).
Implementations§
Source§impl DirEntry
impl DirEntry
Sourcepub fn comment_str(&self) -> Option<&str>
pub fn comment_str(&self) -> Option<&str>
Get comment as str (if valid UTF-8).
Sourcepub const fn is_symlink(&self) -> bool
pub const fn is_symlink(&self) -> bool
Check if this is a symlink.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DirEntry
impl RefUnwindSafe for DirEntry
impl Send for DirEntry
impl Sync for DirEntry
impl Unpin 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