CommentPreservingConstructor

Trait CommentPreservingConstructor 

Source
pub trait CommentPreservingConstructor {
    // Required methods
    fn construct_commented(&mut self) -> Result<Option<CommentedValue>>;
    fn check_data(&self) -> bool;
    fn reset(&mut self);
}
Expand description

Trait for comment-preserving constructors

Required Methods§

Source

fn construct_commented(&mut self) -> Result<Option<CommentedValue>>

Construct a single value with comments

Source

fn check_data(&self) -> bool

Check if there are more values to construct

Source

fn reset(&mut self)

Reset the constructor state

Implementors§