pub struct ScanSummary {
pub total_files: u64,
pub candidates: u64,
pub utf8: u64,
pub utf8_bom: u64,
pub utf16le: u64,
pub utf16be: u64,
pub utf32le: u64,
pub utf32be: u64,
pub gb18030: u64,
pub unknown: u64,
pub errors: u64,
pub too_large: u64,
}Expand description
scan summary: per-encoding distribution counts.
Fields§
§total_files: u64§candidates: u64§utf8: u64§utf8_bom: u64§utf16le: u64§utf16be: u64§utf32le: u64§utf32be: u64§gb18030: u64§unknown: u64§errors: u64Files that could not be read (I/O errors); they carry no encoding
bucket, so buckets + errors == candidates (equivalently
buckets + errors + too_large == total_files).
too_large: u64Trait Implementations§
Source§impl Clone for ScanSummary
impl Clone for ScanSummary
Source§impl Debug for ScanSummary
impl Debug for ScanSummary
Source§impl Default for ScanSummary
impl Default for ScanSummary
Auto Trait Implementations§
impl Forget for ScanSummary
impl Freeze for ScanSummary
impl Move for ScanSummary
impl RefUnwindSafe for ScanSummary
impl Send for ScanSummary
impl Sync for ScanSummary
impl Unpin for ScanSummary
impl UnsafeUnpin for ScanSummary
impl UnwindSafe for ScanSummary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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> ⓘ
Converts
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> ⓘ
Converts
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