pub struct Decoder<W, A, const PAD: bool>where
A: Alphabet,{ /* private fields */ }Expand description
A streaming Base64 decoder for std::io::Write.
Implementations§
Source§impl<W, A, const PAD: bool> Decoder<W, A, PAD>where
A: Alphabet,
impl<W, A, const PAD: bool> Decoder<W, A, PAD>where
A: Alphabet,
Sourcepub fn into_inner(self) -> W
pub fn into_inner(self) -> W
Consumes the decoder without flushing pending input.
Prefer Self::finish when the decoded output must be complete.
Trait Implementations§
Source§impl<W, A, const PAD: bool> Write for Decoder<W, A, PAD>
impl<W, A, const PAD: bool> Write for Decoder<W, A, PAD>
Source§fn write(&mut self, input: &[u8]) -> Result<usize>
fn write(&mut self, input: &[u8]) -> Result<usize>
Writes a buffer into this writer, returning how many bytes were written. Read more
Source§fn flush(&mut self) -> Result<()>
fn flush(&mut self) -> Result<()>
Flushes this output stream, ensuring that all intermediately buffered
contents reach their destination. Read more
Source§fn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
🔬This is a nightly-only experimental API. (
can_vector)1.0.0 · Source§fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
Attempts to write an entire buffer into this writer. Read more
Source§fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
🔬This is a nightly-only experimental API. (
write_all_vectored)Attempts to write multiple buffers into this writer. Read more
Auto Trait Implementations§
impl<W, A, const PAD: bool> Freeze for Decoder<W, A, PAD>where
W: Freeze,
impl<W, A, const PAD: bool> RefUnwindSafe for Decoder<W, A, PAD>where
W: RefUnwindSafe,
A: RefUnwindSafe,
impl<W, A, const PAD: bool> Send for Decoder<W, A, PAD>
impl<W, A, const PAD: bool> Sync for Decoder<W, A, PAD>
impl<W, A, const PAD: bool> Unpin for Decoder<W, A, PAD>
impl<W, A, const PAD: bool> UnsafeUnpin for Decoder<W, A, PAD>where
W: UnsafeUnpin,
impl<W, A, const PAD: bool> UnwindSafe for Decoder<W, A, PAD>where
W: UnwindSafe,
A: 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