Trait utf8parse::Receiver

source ·
pub trait Receiver {
    // Required methods
    fn codepoint(&mut self, _: char);
    fn invalid_sequence(&mut self);
}
Expand description

Handles codepoint and invalid sequence events from the parser.

Required Methods§

source

fn codepoint(&mut self, _: char)

Called whenever a codepoint is parsed successfully

source

fn invalid_sequence(&mut self)

Called when an invalid_sequence is detected

Implementors§