Structs§
- A structure for deserializing a cbor-smol message.
Functions§
- Deserialize a message of type
T
from a byte slice. The unused portion (if any) +cbor_smol::de - Rust \ No newline at end of file diff --git a/cbor_smol/de/struct.Deserializer.html b/cbor_smol/de/struct.Deserializer.html index b7041b4..04baf16 100644 --- a/cbor_smol/de/struct.Deserializer.html +++ b/cbor_smol/de/struct.Deserializer.html @@ -1,6 +1,6 @@Structs§
- A structure for deserializing a cbor-smol message.
Functions§
- Deserialize a message of type
T
from a byte slice. The unused portion (if any) of the byte slice is returned for further usage - Deserialize a message of type
T
from a byte slice. The unused portion (if any) of the byte slice is returned for further usage
Deserializer in cbor_smol::de - Rust Struct cbor_smol::
source ·de:: Deserializer pub struct Deserializer<'de> { /* private fields */ }
Expand description
A structure for deserializing a cbor-smol message.
Implementations§
source§ impl<'de> Deserializer<'de>
source pub fn from_bytes(input: &'de [u8]) -> Self
Obtain a Deserializer from a slice of bytes
-Trait Implementations§
source§ impl<'de, 'a> Deserializer<'de> for &'a mut Deserializer<'de>
Trait Implementations§
source§ impl<'de, 'a> Deserializer<'de> for &'a mut Deserializer<'de>
source§ fn deserialize_any<V>(self, _visitor: V) -> Result<V::Value>
where V: Visitor<'de>,Require theDeserializer
to figure out how to drive the visitor based on what data type is in the input. Read moresource§ fn deserialize_bool<V>(self, visitor: V) -> Result<V::Value>
where @@ -42,33 +42,33 @@ ) -> Result<V::Value>where V: Visitor<'de>,Hint that theDeserialize
type is expecting a newtype struct with a particular name.source§ fn deserialize_seq<V>(self, visitor: V) -> Result<V::Value>
where - V: Visitor<'de>,Hint that theDeserialize
type is expecting a sequence of values.source§ fn deserialize_tuple<V>(self, _len: usize, visitor: V) -> Result<V::Value>
where + V: Visitor<'de>,Hint that theDeserialize
type is expecting a sequence of values.source§ fn deserialize_tuple<V>(self, _len: usize, visitor: V) -> Result<V::Value>
where V: Visitor<'de>,Hint that theDeserialize
type is expecting a sequence of values and -knows how many values there are without looking at the serialized data.source§ fn deserialize_tuple_struct<V>( +knows how many values there are without looking at the serialized data.
source§ fn deserialize_tuple_struct<V>( self, _name: &'static str, len: usize, visitor: V, ) -> Result<V::Value>
where V: Visitor<'de>,Hint that theDeserialize
type is expecting a tuple struct with a -particular name and number of fields.source§ fn deserialize_map<V>(self, visitor: V) -> Result<V::Value>
where - V: Visitor<'de>,Hint that theDeserialize
type is expecting a map of key-value pairs.source§ fn deserialize_struct<V>( +particular name and number of fields.
source§ fn deserialize_map<V>(self, visitor: V) -> Result<V::Value>
where + V: Visitor<'de>,Hint that theDeserialize
type is expecting a map of key-value pairs.source§ fn deserialize_struct<V>( self, _name: &'static str, _fields: &'static [&'static str], visitor: V, ) -> Result<V::Value>
where V: Visitor<'de>,Hint that theDeserialize
type is expecting a struct with a particular -name and fields.source§ fn deserialize_enum<V>( +name and fields.
source§ fn deserialize_enum<V>( self, _name: &'static str, _variants: &'static [&'static str], visitor: V, ) -> Result<V::Value>
where V: Visitor<'de>,Hint that theDeserialize
type is expecting an enum value with a -particular name and possible variants.source§ fn deserialize_identifier<V>(self, visitor: V) -> Result<V::Value>
where +particular name and possible variants.source§ fn deserialize_identifier<V>(self, visitor: V) -> Result<V::Value>
where V: Visitor<'de>,Hint that theDeserialize
type is expecting the name of a struct -field or the discriminant of an enum variant.source§ fn deserialize_ignored_any<V>(self, visitor: V) -> Result<V::Value>
where +field or the discriminant of an enum variant.use serde::Deserialize; use serde::de::IntoDeserializer; @@ -1976,7 +1978,8 @@ }) } - fn deserialize_tuple<V>(self, _len: usize, visitor: V) -> Result<V::Value> + #[inline(never)] + fn deserialize_tuple<V>(self, _len: usize, visitor: V) -> Result<V::Value> where V: Visitor<'de>, { @@ -1999,7 +2002,8 @@ self.deserialize_tuple(len, visitor) } - fn deserialize_map<V>(self, visitor: V) -> Result<V::Value> + #[inline(never)] + fn deserialize_map<V>(self, visitor: V) -> Result<V::Value> where V: Visitor<'de>, {