pub trait Visitor {
// Provided methods
fn null(&mut self) -> Result<()> { ... }
fn boolean(&mut self, b: bool) -> Result<()> { ... }
fn string(&mut self, s: &str) -> Result<()> { ... }
fn negative(&mut self, n: i64) -> Result<()> { ... }
fn nonnegative(&mut self, n: u64) -> Result<()> { ... }
fn float(&mut self, n: f64) -> Result<()> { ... }
fn seq(&mut self) -> Result<Box<dyn Seq + '_>> { ... }
fn map(&mut self) -> Result<Box<dyn Map + '_>> { ... }
}
Expand description
Trait that can write data into an output place.