pub trait EncodingChecker {
    fn feed(&mut self, byte: u8) -> bool;
}
Expand description

Trait used for encoding checking. It should behave like a state machine to which bytes are fed. If the passed bytes causes the checker to enter an invalid state, the method should return false as the indication.

Required Methods

The only method of the checker. It gets the current byte of the input and returns if it is still valid encoding.

Trait Implementations

Converts to this type from the input type.

Implementors