[][src]Trait yaserde::Visitor

pub trait Visitor<'de>: Sized {
    type Value;
    fn visit_bool(self, v: &str) -> Result<Self::Value, String> { ... }
fn visit_i8(self, v: &str) -> Result<Self::Value, String> { ... }
fn visit_u8(self, v: &str) -> Result<Self::Value, String> { ... }
fn visit_i16(self, v: &str) -> Result<Self::Value, String> { ... }
fn visit_u16(self, v: &str) -> Result<Self::Value, String> { ... }
fn visit_i32(self, v: &str) -> Result<Self::Value, String> { ... }
fn visit_u32(self, v: &str) -> Result<Self::Value, String> { ... }
fn visit_i64(self, v: &str) -> Result<Self::Value, String> { ... }
fn visit_u64(self, v: &str) -> Result<Self::Value, String> { ... }
fn visit_f32(self, v: &str) -> Result<Self::Value, String> { ... }
fn visit_f64(self, v: &str) -> Result<Self::Value, String> { ... }
fn visit_str(self, v: &str) -> Result<Self::Value, String> { ... } }

A visitor that can be implemented to retrieve information from source file.

Associated Types

type Value

The value produced by this visitor.

Loading content...

Provided methods

fn visit_bool(self, v: &str) -> Result<Self::Value, String>

fn visit_i8(self, v: &str) -> Result<Self::Value, String>

fn visit_u8(self, v: &str) -> Result<Self::Value, String>

fn visit_i16(self, v: &str) -> Result<Self::Value, String>

fn visit_u16(self, v: &str) -> Result<Self::Value, String>

fn visit_i32(self, v: &str) -> Result<Self::Value, String>

fn visit_u32(self, v: &str) -> Result<Self::Value, String>

fn visit_i64(self, v: &str) -> Result<Self::Value, String>

fn visit_u64(self, v: &str) -> Result<Self::Value, String>

fn visit_f32(self, v: &str) -> Result<Self::Value, String>

fn visit_f64(self, v: &str) -> Result<Self::Value, String>

fn visit_str(self, v: &str) -> Result<Self::Value, String>

Loading content...

Implementors

Loading content...