pub enum GuessResult<R: Read> {
NoInput,
Success(I18nReader<R>, &'static Encoding),
Fail(I18nReader<R>),
}Expand description
The result of the encoding detection.
Variants§
NoInput
The input was empty.
Success(I18nReader<R>, &'static Encoding)
The guess_utf8 succeeded.
Fail(I18nReader<R>)
The guess_utf8 failed. In case the input still needs to be read without transcoding, this holds an I18nReader.
Auto Trait Implementations§
impl<R> Freeze for GuessResult<R>where
R: Freeze,
impl<R> RefUnwindSafe for GuessResult<R>where
R: RefUnwindSafe,
impl<R> Send for GuessResult<R>where
R: Send,
impl<R> Sync for GuessResult<R>where
R: Sync,
impl<R> Unpin for GuessResult<R>where
R: Unpin,
impl<R> UnwindSafe for GuessResult<R>where
R: UnwindSafe,
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