pub struct Decoder<Builder> { /* private fields */ }
Expand description
A Base 16 decoder.
This type keeps all the state for decoding a sequence of characters representing data encoded in Base 16. Upon success, the decoder returns the decoded data.
Implementations§
source§impl<Builder: EmptyBuilder> Decoder<Builder>
impl<Builder: EmptyBuilder> Decoder<Builder>
source§impl<Builder: OctetsBuilder> Decoder<Builder>
impl<Builder: OctetsBuilder> Decoder<Builder>
sourcepub fn finalize(self) -> Result<Builder::Octets, DecodeError>where
Builder: FreezeBuilder,
pub fn finalize(self) -> Result<Builder::Octets, DecodeError>where
Builder: FreezeBuilder,
Finalizes decoding and returns the decoded data.
Trait Implementations§
Auto Trait Implementations§
impl<Builder> Freeze for Decoder<Builder>where
Builder: Freeze,
impl<Builder> RefUnwindSafe for Decoder<Builder>where
Builder: RefUnwindSafe,
impl<Builder> Send for Decoder<Builder>where
Builder: Send,
impl<Builder> Sync for Decoder<Builder>where
Builder: Sync,
impl<Builder> Unpin for Decoder<Builder>where
Builder: Unpin,
impl<Builder> UnwindSafe for Decoder<Builder>where
Builder: 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
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<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.