[][src]Struct serde::bytes::ByteBufVisitor

pub struct ByteBufVisitor;

This type implements the serde::de::Visitor trait for a ByteBuf.

Trait Implementations

impl Visitor for ByteBufVisitor
[src]

The value produced by this visitor.

visit_unit deserializes a () into a Value.

visit_seq deserializes a SeqVisitor into a Value.

visit_bytes deserializes a &[u8] into a Value.

visit_byte_buf deserializes a Vec<u8> into a Value.

visit_str deserializes a &str into a Value.

visit_string deserializes a String into a Value. This allows a deserializer to avoid a copy if it is deserializing a string from a String type. By default it passes a &str to the visit_str method. Read more

visit_bool deserializes a bool into a Value.

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_char deserializes a char 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_map deserializes a MapVisitor into a Value.

Auto Trait Implementations

impl Send for ByteBufVisitor

impl Sync for ByteBufVisitor

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Important traits for &'_ mut I

Immutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Important traits for &'_ mut I

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.