Decoder

Struct Decoder 

Source
pub struct Decoder { /* private fields */ }

Trait Implementations§

Source§

impl Codec for Decoder

Source§

fn transform( &mut self, src: &[u8], dst: &mut [u8], f: FlushState, ) -> Result<Status, Error>

Source§

fn chunk_size(&self) -> usize

Source§

fn buffer_size(&self) -> usize

Source§

impl FilteredDecoder for Decoder

Source§

fn strict(&self) -> bool

Returns true if the decoder is in strict mode.
Source§

fn filter_byte(&self, b: u8) -> bool

Returns true if the byte is valid in this encoding and false otherwise.
Source§

fn internal_transform( &mut self, src: &[u8], dst: &mut [u8], f: FlushState, ) -> Result<Status, Error>

The main transform. Read more
Source§

fn filter_sequence(&self, src: &[u8]) -> (Vec<u8>, Vec<usize>)

Source§

fn fix_offsets( &self, offsets: &[usize], res: Result<Status, Error>, ) -> Result<Status, Error>

Source§

fn wrap_transform( &mut self, input: &[u8], output: &mut [u8], flush: FlushState, ) -> Result<Status, Error>

The main implementation of the FilteredDecoder. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<'a, C> TransformableCodec<'a, C> for C
where C: Codec + 'a,

Source§

fn into_bufread( self, r: Box<dyn BufRead>, bufsize: usize, ) -> Box<dyn BufRead + 'a>

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.