utf8parse

Trait 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§