[][src]Trait ressa::CommentHandler

pub trait CommentHandler<'a> {
    fn handle_comment(&mut self, comment: Item<Token<&'a str>>);
}

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

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

Loading content...

Implementors

impl<'a> CommentHandler<'a> for DefaultCommentHandler[src]

impl<'a, F> CommentHandler<'a> for F where
    F: FnMut(Item<Token<&'a str>>), 
[src]

Loading content...