[−][src]Struct serde::bytes::ByteBufVisitor
This type implements the serde::de::Visitor
trait for a ByteBuf
.
Trait Implementations
impl Visitor for ByteBufVisitor
[src]
impl Visitor for ByteBufVisitor
type Value = ByteBuf
The value produced by this visitor.
fn visit_unit<E>(&mut self) -> Result<ByteBuf, E> where
E: Error,
[src]
fn visit_unit<E>(&mut self) -> Result<ByteBuf, E> where
E: Error,
visit_unit
deserializes a ()
into a Value
.
fn visit_seq<V>(&mut self, visitor: V) -> Result<ByteBuf, V::Error> where
V: SeqVisitor,
[src]
fn visit_seq<V>(&mut self, visitor: V) -> Result<ByteBuf, V::Error> where
V: SeqVisitor,
visit_seq
deserializes a SeqVisitor
into a Value
.
fn visit_bytes<E>(&mut self, v: &[u8]) -> Result<ByteBuf, E> where
E: Error,
[src]
fn visit_bytes<E>(&mut self, v: &[u8]) -> Result<ByteBuf, E> where
E: Error,
visit_bytes
deserializes a &[u8]
into a Value
.
fn visit_byte_buf<E>(&mut self, v: Vec<u8>) -> Result<ByteBuf, E> where
E: Error,
[src]
fn visit_byte_buf<E>(&mut self, v: Vec<u8>) -> Result<ByteBuf, E> where
E: Error,
visit_byte_buf
deserializes a Vec<u8>
into a Value
.
fn visit_str<E>(&mut self, v: &str) -> Result<ByteBuf, E> where
E: Error,
[src]
fn visit_str<E>(&mut self, v: &str) -> Result<ByteBuf, E> where
E: Error,
visit_str
deserializes a &str
into a Value
.
fn visit_string<E>(&mut self, v: String) -> Result<ByteBuf, E> where
E: Error,
[src]
fn visit_string<E>(&mut self, v: String) -> Result<ByteBuf, E> where
E: Error,
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
fn visit_bool<E>(&mut self, v: bool) -> Result<Self::Value, E> where
E: Error,
[src]
fn visit_bool<E>(&mut self, v: bool) -> Result<Self::Value, E> where
E: Error,
visit_bool
deserializes a bool
into a Value
.
fn visit_isize<E>(&mut self, v: isize) -> Result<Self::Value, E> where
E: Error,
[src]
fn visit_isize<E>(&mut self, v: isize) -> Result<Self::Value, E> where
E: Error,
visit_isize
deserializes a isize
into a Value
.
fn visit_i8<E>(&mut self, v: i8) -> Result<Self::Value, E> where
E: Error,
[src]
fn visit_i8<E>(&mut self, v: i8) -> Result<Self::Value, E> where
E: Error,
visit_i8
deserializes a i8
into a Value
.
fn visit_i16<E>(&mut self, v: i16) -> Result<Self::Value, E> where
E: Error,
[src]
fn visit_i16<E>(&mut self, v: i16) -> Result<Self::Value, E> where
E: Error,
visit_i16
deserializes a i16
into a Value
.
fn visit_i32<E>(&mut self, v: i32) -> Result<Self::Value, E> where
E: Error,
[src]
fn visit_i32<E>(&mut self, v: i32) -> Result<Self::Value, E> where
E: Error,
visit_i32
deserializes a i32
into a Value
.
fn visit_i64<E>(&mut self, v: i64) -> Result<Self::Value, E> where
E: Error,
[src]
fn visit_i64<E>(&mut self, v: i64) -> Result<Self::Value, E> where
E: Error,
visit_i64
deserializes a i64
into a Value
.
fn visit_usize<E>(&mut self, v: usize) -> Result<Self::Value, E> where
E: Error,
[src]
fn visit_usize<E>(&mut self, v: usize) -> Result<Self::Value, E> where
E: Error,
visit_usize
deserializes a usize
into a Value
.
fn visit_u8<E>(&mut self, v: u8) -> Result<Self::Value, E> where
E: Error,
[src]
fn visit_u8<E>(&mut self, v: u8) -> Result<Self::Value, E> where
E: Error,
visit_u8
deserializes a u8
into a Value
.
fn visit_u16<E>(&mut self, v: u16) -> Result<Self::Value, E> where
E: Error,
[src]
fn visit_u16<E>(&mut self, v: u16) -> Result<Self::Value, E> where
E: Error,
visit_u16
deserializes a u16
into a Value
.
fn visit_u32<E>(&mut self, v: u32) -> Result<Self::Value, E> where
E: Error,
[src]
fn visit_u32<E>(&mut self, v: u32) -> Result<Self::Value, E> where
E: Error,
visit_u32
deserializes a u32
into a Value
.
fn visit_u64<E>(&mut self, v: u64) -> Result<Self::Value, E> where
E: Error,
[src]
fn visit_u64<E>(&mut self, v: u64) -> Result<Self::Value, E> where
E: Error,
visit_u64
deserializes a u64
into a Value
.
fn visit_f32<E>(&mut self, v: f32) -> Result<Self::Value, E> where
E: Error,
[src]
fn visit_f32<E>(&mut self, v: f32) -> Result<Self::Value, E> where
E: Error,
visit_f32
deserializes a f32
into a Value
.
fn visit_f64<E>(&mut self, v: f64) -> Result<Self::Value, E> where
E: Error,
[src]
fn visit_f64<E>(&mut self, v: f64) -> Result<Self::Value, E> where
E: Error,
visit_f64
deserializes a f64
into a Value
.
fn visit_char<E>(&mut self, v: char) -> Result<Self::Value, E> where
E: Error,
[src]
fn visit_char<E>(&mut self, v: char) -> Result<Self::Value, E> where
E: Error,
visit_char
deserializes a char
into a Value
.
fn visit_unit_struct<E>(&mut self, name: &'static str) -> Result<Self::Value, E> where
E: Error,
[src]
fn visit_unit_struct<E>(&mut self, name: &'static str) -> Result<Self::Value, E> where
E: Error,
visit_unit_struct
deserializes a unit struct into a Value
.
fn visit_none<E>(&mut self) -> Result<Self::Value, E> where
E: Error,
[src]
fn visit_none<E>(&mut self) -> Result<Self::Value, E> where
E: Error,
visit_none
deserializes a none value into a Value
.
fn visit_some<D>(
&mut self,
deserializer: &mut D
) -> Result<Self::Value, D::Error> where
D: Deserializer,
[src]
fn visit_some<D>(
&mut self,
deserializer: &mut D
) -> Result<Self::Value, D::Error> where
D: Deserializer,
visit_some
deserializes a value into a Value
.
fn visit_newtype_struct<D>(
&mut self,
deserializer: &mut D
) -> Result<Self::Value, D::Error> where
D: Deserializer,
[src]
fn visit_newtype_struct<D>(
&mut self,
deserializer: &mut D
) -> Result<Self::Value, D::Error> where
D: Deserializer,
visit_newtype_struct
deserializes a value into a Value
.
fn visit_map<V>(&mut self, visitor: V) -> Result<Self::Value, V::Error> where
V: MapVisitor,
[src]
fn visit_map<V>(&mut self, visitor: V) -> Result<Self::Value, V::Error> where
V: MapVisitor,
visit_map
deserializes a MapVisitor
into a Value
.
Auto Trait Implementations
impl Send for ByteBufVisitor
impl Send for ByteBufVisitor
impl Sync for ByteBufVisitor
impl Sync for ByteBufVisitor
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
ⓘImportant traits for &'_ mut Ifn borrow(&self) -> &T
[src]
fn borrow(&self) -> &T
Immutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 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]
impl<T> BorrowMut for T where
T: ?Sized,
ⓘImportant traits for &'_ mut Ifn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,