pub struct FileInfo {
pub byte_len: u64,
pub line_count: u64,
pub fingerprint: Fingerprint,
}Expand description
Metadata calculated from the bytes read from a regular file.
Fields§
§byte_len: u64Number of raw bytes in the file.
line_count: u64Number of LF bytes, plus one for a nonempty unterminated suffix.
A trailing LF creates no extra line; an empty file has zero lines.
fingerprint: FingerprintBLAKE3 digest of all raw file bytes, without normalization.
Trait Implementations§
impl Copy for FileInfo
impl Eq for FileInfo
impl StructuralPartialEq for FileInfo
Auto Trait Implementations§
impl Freeze for FileInfo
impl RefUnwindSafe for FileInfo
impl Send for FileInfo
impl Sync for FileInfo
impl Unpin for FileInfo
impl UnsafeUnpin for FileInfo
impl UnwindSafe for FileInfo
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