Skip to main content

StrConsumer

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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 for &mut S
where S: StrConsumer + ?Sized,

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

Source§

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

Implementors§