Trait yaserde::Visitor

source ·
pub trait Visitor<'de>: Sized {
    type Value;

    // 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> { ... }
}
Expand description

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

Required Associated Types§

source

type Value

The value produced by this visitor.

Provided Methods§

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

Object Safety§

This trait is not object safe.

Implementors§