Struct serde::de::impls::PrimitiveVisitor[][src]

pub struct PrimitiveVisitor<T> { /* fields omitted */ }

A visitor that produces a primitive type.

Methods

impl<T> PrimitiveVisitor<T>
[src]

Construct a new PrimitiveVisitor.

Trait Implementations

impl<T: Deserialize + FromPrimitive + FromStr> Visitor for PrimitiveVisitor<T>
[src]

The value produced by this visitor.

visit_isize deserializes a isize into a Value.

visit_i8 deserializes a i8 into a Value.

visit_i16 deserializes a i16 into a Value.

visit_i32 deserializes a i32 into a Value.

visit_i64 deserializes a i64 into a Value.

visit_usize deserializes a usize into a Value.

visit_u8 deserializes a u8 into a Value.

visit_u16 deserializes a u16 into a Value.

visit_u32 deserializes a u32 into a Value.

visit_u64 deserializes a u64 into a Value.

visit_f32 deserializes a f32 into a Value.

visit_f64 deserializes a f64 into a Value.

visit_str deserializes a &str into a Value.

visit_bool deserializes a bool into a Value.

visit_char deserializes a char into a Value.

visit_string deserializes a String into a Value.

visit_unit deserializes a () into a Value.

visit_unit_struct deserializes a unit struct into a Value.

visit_none deserializes a none value into a Value.

visit_some deserializes a value into a Value.

visit_newtype_struct deserializes a value into a Value.

visit_bool deserializes a SeqVisitor into a Value.

visit_map deserializes a MapVisitor into a Value.

visit_bytes deserializes a &[u8] into a Value.

visit_byte_buf deserializes a Vec<u8> into a Value.

Auto Trait Implementations

impl<T> Send for PrimitiveVisitor<T> where
    T: Send

impl<T> Sync for PrimitiveVisitor<T> where
    T: Sync