anstyle_parse

Trait CharAccumulator

source
pub trait CharAccumulator: Default {
    // Required method
    fn add(&mut self, byte: u8) -> Option<char>;
}
Expand description

Build a char out of bytes

Required Methods§

source

fn add(&mut self, byte: u8) -> Option<char>

Build a char out of bytes

Return None when more data is needed

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

source§

impl CharAccumulator for AsciiParser

source§

impl CharAccumulator for Utf8Parser

Available on crate feature utf8 only.