Trait ressa::CommentHandler

source ·
pub trait CommentHandler<'a> {
    // Required method
    fn handle_comment(&mut self, comment: Item<&'a str>);
}
Expand description

A comment handler will allow you to specify behavior about what to do with comments officially comments are supposed to operate the same as whitespace so the default behavior would be to throw away any comments found

Required Methods§

source

fn handle_comment(&mut self, comment: Item<&'a str>)

Implementors§

source§

impl<'a> CommentHandler<'a> for DefaultCommentHandler

source§

impl<'a, F> CommentHandler<'a> for Fwhere F: FnMut(Item<&'a str>),