Skip to main content

StreamSink

Trait StreamSink 

Source
pub trait StreamSink {
    // Required method
    fn token(&mut self, text: &str) -> Result<()>;
}

Required Methods§

Source

fn token(&mut self, text: &str) -> Result<()>

Implementors§

Source§

impl<F> StreamSink for F
where F: FnMut(&str) -> Result<()>,