Constructor

Trait Constructor 

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

Trait for YAML constructors that convert document nodes to Rust objects

Required Methods§

Source

fn construct(&mut self) -> Result<Option<Value>>

Construct a single value

Source

fn check_data(&self) -> bool

Check if there are more values to construct

Source

fn reset(&mut self)

Reset the constructor state

Implementors§