pub struct EncodedEntry<'a> {
pub parent_frn: Frn,
pub frn: Frn,
pub name_wtf8: &'a [u8],
pub lower_wtf8: &'a [u8],
pub is_dir: bool,
pub is_reparse: bool,
pub is_hidden: bool,
pub is_system: bool,
pub size: u64,
pub mtime: i64,
}Expand description
A RawEntry whose name is already WTF-8 encoded.
Parallel scan workers encode off the builder thread, the builder just
memcpys. name_wtf8/lower_wtf8 must come from
crate::wtf8::push_wtf8_pair (equal lengths, shared offsets).
Fields§
§parent_frn: FrnThe parent directory’s full reference — its .record() resolves the
parent (an unknown parent attaches the entry to the root).
frn: FrnThis entry’s full reference; its .record() is the identity key.
name_wtf8: &'a [u8]The file name, WTF-8 encoded (paired with lower_wtf8, shared offsets).
lower_wtf8: &'a [u8]The lowercased file name, WTF-8 encoded (same length as name_wtf8).
is_dir: boolWhether this entry is a directory.
is_reparse: boolWhether this entry is a reparse point (symlink, junction, mount point).
Raw FILE_ATTRIBUTE_HIDDEN.
is_system: boolRaw FILE_ATTRIBUTE_SYSTEM.
size: u64File size in bytes.
mtime: i64FILETIME (100ns ticks since 1601, UTC).
Auto Trait Implementations§
impl<'a> Freeze for EncodedEntry<'a>
impl<'a> RefUnwindSafe for EncodedEntry<'a>
impl<'a> Send for EncodedEntry<'a>
impl<'a> Sync for EncodedEntry<'a>
impl<'a> Unpin for EncodedEntry<'a>
impl<'a> UnsafeUnpin for EncodedEntry<'a>
impl<'a> UnwindSafe for EncodedEntry<'a>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more