[−][src]Struct ordcode::Deserializer
serde
deserializer for binary data format which may preserve lexicographic ordering of values
Please see Serializer
documentation for more details.
Implementations
impl<'de, R, P> Deserializer<R, P> where
R: TailReadBytes,
P: SerializerParams,
[src]
R: TailReadBytes,
P: SerializerParams,
#[must_use]pub fn new(reader: R, params: P) -> Self
[src]
pub fn into_reader(self) -> R
[src]
Trait Implementations
impl<'a, 'de: 'a, R, P> Deserializer<'de> for &'a mut Deserializer<R, P> where
R: TailReadBytes,
P: SerializerParams,
[src]
R: TailReadBytes,
P: SerializerParams,
type Error = Error
The error type that can be returned if some error occurs during deserialization. Read more
pub fn deserialize_any<V>(self, _visitor: V) -> Result<V::Value> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_u8<V>(self, visitor: V) -> Result<V::Value> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_u16<V>(self, visitor: V) -> Result<V::Value> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_u32<V>(self, visitor: V) -> Result<V::Value> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_u64<V>(self, visitor: V) -> Result<V::Value> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_i8<V>(self, visitor: V) -> Result<V::Value> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_i16<V>(self, visitor: V) -> Result<V::Value> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_i32<V>(self, visitor: V) -> Result<V::Value> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_i64<V>(self, visitor: V) -> Result<V::Value> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_f32<V>(self, visitor: V) -> Result<V::Value> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_f64<V>(self, visitor: V) -> Result<V::Value> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_bool<V>(self, visitor: V) -> Result<V::Value> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_u128<V>(self, visitor: V) -> Result<V::Value> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_i128<V>(self, visitor: V) -> Result<V::Value> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_char<V>(self, visitor: V) -> Result<V::Value> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_str<V>(self, visitor: V) -> Result<V::Value> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_string<V>(self, visitor: V) -> Result<V::Value> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_bytes<V>(self, visitor: V) -> Result<V::Value> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_byte_buf<V>(self, visitor: V) -> Result<V::Value> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_option<V>(self, visitor: V) -> Result<V::Value> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_unit<V>(self, visitor: V) -> Result<V::Value> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_unit_struct<V>(
self,
_name: &'static str,
visitor: V
) -> Result<V::Value> where
V: Visitor<'de>,
[src]
self,
_name: &'static str,
visitor: V
) -> Result<V::Value> where
V: Visitor<'de>,
pub fn deserialize_newtype_struct<V>(
self,
_name: &str,
visitor: V
) -> Result<V::Value> where
V: Visitor<'de>,
[src]
self,
_name: &str,
visitor: V
) -> Result<V::Value> where
V: Visitor<'de>,
pub fn deserialize_seq<V>(self, visitor: V) -> Result<V::Value> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_tuple<V>(self, len: usize, visitor: V) -> Result<V::Value> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_tuple_struct<V>(
self,
_name: &'static str,
len: usize,
visitor: V
) -> Result<V::Value> where
V: Visitor<'de>,
[src]
self,
_name: &'static str,
len: usize,
visitor: V
) -> Result<V::Value> where
V: Visitor<'de>,
pub fn deserialize_map<V>(self, visitor: V) -> Result<V::Value> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_struct<V>(
self,
_name: &str,
fields: &'static [&'static str],
visitor: V
) -> Result<V::Value> where
V: Visitor<'de>,
[src]
self,
_name: &str,
fields: &'static [&'static str],
visitor: V
) -> Result<V::Value> where
V: Visitor<'de>,
pub fn deserialize_enum<V>(
self,
_enum: &'static str,
_variants: &'static [&'static str],
visitor: V
) -> Result<V::Value> where
V: Visitor<'de>,
[src]
self,
_enum: &'static str,
_variants: &'static [&'static str],
visitor: V
) -> Result<V::Value> where
V: Visitor<'de>,
pub fn deserialize_identifier<V>(self, _visitor: V) -> Result<V::Value> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_ignored_any<V>(self, _visitor: V) -> Result<V::Value> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn is_human_readable(&self) -> bool
[src]
impl<'a, 'de: 'a, R, P> EnumAccess<'de> for &'a mut Deserializer<R, P> where
R: TailReadBytes,
P: SerializerParams,
[src]
R: TailReadBytes,
P: SerializerParams,
type Error = Error
The error type that can be returned if some error occurs during deserialization. Read more
type Variant = Self
The Visitor
that will be used to deserialize the content of the enum
variant. Read more
pub fn variant_seed<V>(self, seed: V) -> Result<(V::Value, Self::Variant)> where
V: DeserializeSeed<'de>,
[src]
V: DeserializeSeed<'de>,
pub fn variant<V>(self) -> Result<(V, Self::Variant), Self::Error> where
V: Deserialize<'de>,
[src]
V: Deserialize<'de>,
impl<W> FormatVersion<AscendingOrder> for Deserializer<W, AscendingOrder>
[src]
impl<W> FormatVersion<NativeBinary> for Deserializer<W, NativeBinary>
[src]
impl<W> FormatVersion<PortableBinary> for Deserializer<W, PortableBinary>
[src]
impl<'a, 'de: 'a, R, P> VariantAccess<'de> for &'a mut Deserializer<R, P> where
R: TailReadBytes,
P: SerializerParams,
[src]
R: TailReadBytes,
P: SerializerParams,
type Error = Error
The error type that can be returned if some error occurs during
deserialization. Must match the error type of our EnumAccess
. Read more
pub fn unit_variant(self) -> Result
[src]
pub fn newtype_variant_seed<T>(self, seed: T) -> Result<T::Value> where
T: DeserializeSeed<'de>,
[src]
T: DeserializeSeed<'de>,
pub fn tuple_variant<V>(self, len: usize, visitor: V) -> Result<V::Value> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn struct_variant<V>(
self,
fields: &'static [&'static str],
visitor: V
) -> Result<V::Value> where
V: Visitor<'de>,
[src]
self,
fields: &'static [&'static str],
visitor: V
) -> Result<V::Value> where
V: Visitor<'de>,
pub fn newtype_variant<T>(self) -> Result<T, Self::Error> where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
Auto Trait Implementations
impl<R, P> RefUnwindSafe for Deserializer<R, P> where
P: RefUnwindSafe,
R: RefUnwindSafe,
[src]
P: RefUnwindSafe,
R: RefUnwindSafe,
impl<R, P> Send for Deserializer<R, P> where
P: Send,
R: Send,
[src]
P: Send,
R: Send,
impl<R, P> Sync for Deserializer<R, P> where
P: Sync,
R: Sync,
[src]
P: Sync,
R: Sync,
impl<R, P> Unpin for Deserializer<R, P> where
P: Unpin,
R: Unpin,
[src]
P: Unpin,
R: Unpin,
impl<R, P> UnwindSafe for Deserializer<R, P> where
P: UnwindSafe,
R: UnwindSafe,
[src]
P: UnwindSafe,
R: UnwindSafe,
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,
pub 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.
pub 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>,