trait Stateful {
// Required methods
fn advance(&mut self, inp: &[u8], out: &mut [u8]) -> BufferResult;
fn has_ended(&self) -> bool;
fn restart(&mut self);
fn reset(&mut self);
}
trait Stateful {
// Required methods
fn advance(&mut self, inp: &[u8], out: &mut [u8]) -> BufferResult;
fn has_ended(&self) -> bool;
fn restart(&mut self);
fn reset(&mut self);
}