[−][src]Struct serde::bytes::ByteBufVisitor
This type implements the serde::de::Visitor
trait for a ByteBuf
.
Trait Implementations
impl Visitor for ByteBufVisitor
[src]
type Value = ByteBuf
The value produced by this visitor.
fn visit_unit<E>(&mut self) -> Result<ByteBuf, E> where
E: Error,
[src]
E: Error,
fn visit_seq<V>(&mut self, visitor: V) -> Result<ByteBuf, V::Error> where
V: SeqVisitor,
[src]
V: SeqVisitor,
fn visit_bytes<E>(&mut self, v: &[u8]) -> Result<ByteBuf, E> where
E: Error,
[src]
E: Error,
fn visit_byte_buf<E>(&mut self, v: Vec<u8>) -> Result<ByteBuf, E> where
E: Error,
[src]
E: Error,
fn visit_str<E>(&mut self, v: &str) -> Result<ByteBuf, E> where
E: Error,
[src]
E: Error,
fn visit_string<E>(&mut self, v: String) -> Result<ByteBuf, E> where
E: Error,
[src]
E: Error,
fn visit_bool<E>(&mut self, v: bool) -> Result<Self::Value, E> where
E: Error,
[src]
E: Error,
fn visit_isize<E>(&mut self, v: isize) -> Result<Self::Value, E> where
E: Error,
[src]
E: Error,
fn visit_i8<E>(&mut self, v: i8) -> Result<Self::Value, E> where
E: Error,
[src]
E: Error,
fn visit_i16<E>(&mut self, v: i16) -> Result<Self::Value, E> where
E: Error,
[src]
E: Error,
fn visit_i32<E>(&mut self, v: i32) -> Result<Self::Value, E> where
E: Error,
[src]
E: Error,
fn visit_i64<E>(&mut self, v: i64) -> Result<Self::Value, E> where
E: Error,
[src]
E: Error,
fn visit_usize<E>(&mut self, v: usize) -> Result<Self::Value, E> where
E: Error,
[src]
E: Error,
fn visit_u8<E>(&mut self, v: u8) -> Result<Self::Value, E> where
E: Error,
[src]
E: Error,
fn visit_u16<E>(&mut self, v: u16) -> Result<Self::Value, E> where
E: Error,
[src]
E: Error,
fn visit_u32<E>(&mut self, v: u32) -> Result<Self::Value, E> where
E: Error,
[src]
E: Error,
fn visit_u64<E>(&mut self, v: u64) -> Result<Self::Value, E> where
E: Error,
[src]
E: Error,
fn visit_f32<E>(&mut self, v: f32) -> Result<Self::Value, E> where
E: Error,
[src]
E: Error,
fn visit_f64<E>(&mut self, v: f64) -> Result<Self::Value, E> where
E: Error,
[src]
E: Error,
fn visit_char<E>(&mut self, v: char) -> Result<Self::Value, E> where
E: Error,
[src]
E: Error,
fn visit_unit_struct<E>(&mut self, name: &'static str) -> Result<Self::Value, E> where
E: Error,
[src]
E: Error,
fn visit_none<E>(&mut self) -> Result<Self::Value, E> where
E: Error,
[src]
E: Error,
fn visit_some<D>(
&mut self,
deserializer: &mut D
) -> Result<Self::Value, D::Error> where
D: Deserializer,
[src]
&mut self,
deserializer: &mut D
) -> Result<Self::Value, D::Error> where
D: Deserializer,
fn visit_newtype_struct<D>(
&mut self,
deserializer: &mut D
) -> Result<Self::Value, D::Error> where
D: Deserializer,
[src]
&mut self,
deserializer: &mut D
) -> Result<Self::Value, D::Error> where
D: Deserializer,
fn visit_map<V>(&mut self, visitor: V) -> Result<Self::Value, V::Error> where
V: MapVisitor,
[src]
V: MapVisitor,
Auto Trait Implementations
impl RefUnwindSafe for ByteBufVisitor
impl Send for ByteBufVisitor
impl Sync for ByteBufVisitor
impl Unpin for ByteBufVisitor
impl UnwindSafe for ByteBufVisitor
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,