pub enum Record {
File(FileRecord),
Directory(DirectoryRecord),
Link(LinkRecord),
}Variants§
Implementations§
Source§impl Record
impl Record
pub fn as_file(&self) -> Option<&FileRecord>
pub fn as_file_mut(&mut self) -> Option<&mut FileRecord>
pub fn as_directory(&self) -> Option<&DirectoryRecord>
pub fn as_directory_mut(&mut self) -> Option<&mut DirectoryRecord>
pub fn as_link(&self) -> Option<&LinkRecord>
pub fn as_link_mut(&mut self) -> Option<&mut LinkRecord>
pub fn name(&self) -> &str
pub fn attr<S: AsRef<str>>( &self, metadata: &BoxMetadata, key: S, ) -> Option<&[u8]>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
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