#[non_exhaustive]pub struct SniffOutcome {
pub format: InputFormat,
pub bom_bytes: usize,
}Expand description
Outcome of sniff_format.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.format: InputFormatFormat chosen for the input.
bom_bytes: usizeNumber of leading bytes already consumed from the reader.
Currently this is either 0 or 3 — set when a UTF-8 BOM was
stripped. Content bytes are never consumed.
Trait Implementations§
Source§impl Clone for SniffOutcome
impl Clone for SniffOutcome
Source§fn clone(&self) -> SniffOutcome
fn clone(&self) -> SniffOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SniffOutcome
impl Debug for SniffOutcome
impl Eq for SniffOutcome
Source§impl PartialEq for SniffOutcome
impl PartialEq for SniffOutcome
impl StructuralPartialEq for SniffOutcome
Auto Trait Implementations§
impl Freeze for SniffOutcome
impl RefUnwindSafe for SniffOutcome
impl Send for SniffOutcome
impl Sync for SniffOutcome
impl Unpin for SniffOutcome
impl UnsafeUnpin for SniffOutcome
impl UnwindSafe for SniffOutcome
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