base64::write

Trait StrConsumer

source
pub trait StrConsumer {
    // Required method
    fn consume(&mut self, buf: &str);
}
Expand description

An abstraction around consuming strs produced by base64 encoding.

Required Methods§

source

fn consume(&mut self, buf: &str)

Consume the base64 encoded data in buf

Implementations on Foreign Types§

source§

impl StrConsumer for String

Pushes the str onto the end of the String

source§

fn consume(&mut self, buf: &str)

source§

impl<S: StrConsumer + ?Sized> StrConsumer for &mut S

As for io::Write, StrConsumer is implemented automatically for &mut S.

source§

fn consume(&mut self, buf: &str)

Implementors§