Struct ntfs_reader::file::NtfsFile
source · pub struct NtfsFile<'a> {
pub number: u64,
pub header: &'a NtfsFileRecordHeader,
pub data: &'a [u8],
}
Fields
number: u64
header: &'a NtfsFileRecordHeader
data: &'a [u8]
Implementations
sourceimpl<'a> NtfsFile<'a>
impl<'a> NtfsFile<'a>
pub fn new(number: u64, data: &'a [u8]) -> Self
pub fn number(&self) -> u64
pub fn is_valid(data: &[u8]) -> bool
pub fn attributes<F>(&self, f: F)where
F: FnMut(&NtfsAttribute<'_>),
pub fn get_attribute(
&self,
attribute_type: NtfsAttributeType
) -> Option<NtfsAttribute<'_>>
pub fn get_best_file_name(&self) -> Option<&NtfsFileName>
pub fn read_data(&self) -> Option<&[u8]>
pub fn is_used(&self) -> bool
pub fn is_directory(&self) -> bool
Auto Trait Implementations
impl<'a> RefUnwindSafe for NtfsFile<'a>
impl<'a> Send for NtfsFile<'a>
impl<'a> Sync for NtfsFile<'a>
impl<'a> Unpin for NtfsFile<'a>
impl<'a> UnwindSafe for NtfsFile<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more