pub struct Decoder<Builder> { /* private fields */ }
Expand description
A base 32 decoder.
This type keeps all the state for decoding a sequence of characters representing data encoded in base 32. Upon success, the decoder returns the decoded data.
Limitations
The decoder does not support padding.
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.
Auto Trait Implementations§
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<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) -> Targetwhere
Self::Error: Into<Infallible>,
fn octets_into(self) -> Targetwhere Self::Error: Into<Infallible>,
Performs an infallible conversion.