trait Stateful {
// Required methods
fn advance(&mut self, inp: &[u8], out: &mut [u8]) -> BufferResult;
fn mark_ended(&mut 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 mark_ended(&mut self) -> bool;
fn restart(&mut self);
fn reset(&mut self);
}