Structs§
- A structure for deserializing a cbor-smol message.
Functions§
- Deserialize a message of type
Tfrom 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 46911f1..b7041b4 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
Tfrom a byte slice. The unused portion (if any) of the byte slice is returned for further usage - Deserialize a message of type
Tfrom 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 theDeserializerto 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 @@ -15,60 +15,60 @@ on what data type is in the input. Visitor<'de>,Hint that theDeserializetype is expecting au64value.source§ fn deserialize_f32<V>(self, _visitor: V) -> Result<V::Value>
where V: Visitor<'de>,Hint that theDeserializetype is expecting af32value.source§ fn deserialize_f64<V>(self, _visitor: V) -> Result<V::Value>
where V: Visitor<'de>,Hint that theDeserializetype is expecting af64value.source§ fn deserialize_char<V>(self, _visitor: V) -> Result<V::Value>
where - V: Visitor<'de>,Hint that theDeserializetype is expecting acharvalue.source§ fn deserialize_bytes<V>(self, visitor: V) -> Result<V::Value>
where + V: Visitor<'de>,Hint that theDeserializetype is expecting acharvalue.source§ fn deserialize_bytes<V>(self, visitor: V) -> Result<V::Value>
where V: Visitor<'de>,Hint that theDeserializetype is expecting a byte array and does not benefit from taking ownership of buffered data owned by the -Deserializer. Read moresource§ fn deserialize_byte_buf<V>(self, visitor: V) -> Result<V::Value>
where +Deserializer. Read moresource§ fn deserialize_byte_buf<V>(self, visitor: V) -> Result<V::Value>
where V: Visitor<'de>,Hint that theDeserializetype is expecting a byte array and would benefit from taking ownership of buffered data owned by the -Deserializer. Read moresource§ fn deserialize_str<V>(self, visitor: V) -> Result<V::Value>
where V: Visitor<'de>,Hint that theDeserializetype is expecting a string value and does not benefit from taking ownership of buffered data owned by the -Deserializer. Read moresource§ fn deserialize_string<V>(self, visitor: V) -> Result<V::Value>
where V: Visitor<'de>,Hint that theDeserializetype is expecting a string value and would benefit from taking ownership of buffered data owned by the -Deserializer. Read moresource§ fn deserialize_option<V>(self, visitor: V) -> Result<V::Value>
where - V: Visitor<'de>,Hint that theDeserializetype is expecting an optional value. Read moresource§ fn deserialize_unit<V>(self, visitor: V) -> Result<V::Value>
where - V: Visitor<'de>,Hint that theDeserializetype is expecting a unit value.source§ fn deserialize_unit_struct<V>( +
Deserializer. Read moresource§ fn deserialize_option<V>(self, visitor: V) -> Result<V::Value>
where + V: Visitor<'de>,Hint that theDeserializetype is expecting an optional value. Read moresource§ fn deserialize_unit<V>(self, visitor: V) -> Result<V::Value>
where + V: Visitor<'de>,Hint that theDeserializetype is expecting a unit value.source§ fn deserialize_unit_struct<V>( self, _name: &'static str, visitor: V, ) -> Result<V::Value>
where V: Visitor<'de>,Hint that theDeserializetype is expecting a unit struct with a -particular name.source§ fn deserialize_newtype_struct<V>( +particular name.
source§ fn deserialize_newtype_struct<V>( self, _name: &'static str, visitor: V, ) -> Result<V::Value>
where V: Visitor<'de>,Hint that theDeserializetype 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 theDeserializetype is expecting a sequence of values.source§ fn deserialize_tuple<V>(self, _len: usize, visitor: V) -> Result<V::Value>
where +particular name.source§ fn deserialize_seq<V>(self, visitor: V) -> Result<V::Value>
where + V: Visitor<'de>,Hint that theDeserializetype 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 theDeserializetype 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 theDeserializetype 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 theDeserializetype 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 theDeserializetype 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 theDeserializetype is expecting a struct with a particular -name and fields.source§ fn deserialize_enum<V>( +name and fields.