Struct rmp_serde::encode::Compound
[−]
[src]
pub struct Compound<'a, W: 'a, V: 'a> { /* fields omitted */ }
Trait Implementations
impl<'a, W: Write + 'a, V: VariantWriter + 'a> SerializeSeq for Compound<'a, W, V>
[src]
type Ok = ()
Must match the Ok
type of our Serializer
.
type Error = Error
Must match the Error
type of our Serializer
.
fn serialize_element<T: ?Sized + Serialize>(
&mut self,
value: &T
) -> Result<(), Self::Error>
&mut self,
value: &T
) -> Result<(), Self::Error>
Serialize a sequence element.
fn end(self) -> Result<Self::Ok, Self::Error>
Finish serializing a sequence.
impl<'a, W: Write + 'a, V: VariantWriter + 'a> SerializeTuple for Compound<'a, W, V>
[src]
type Ok = ()
Must match the Ok
type of our Serializer
.
type Error = Error
Must match the Error
type of our Serializer
.
fn serialize_element<T: ?Sized + Serialize>(
&mut self,
value: &T
) -> Result<(), Self::Error>
&mut self,
value: &T
) -> Result<(), Self::Error>
Serialize a tuple element.
fn end(self) -> Result<Self::Ok, Self::Error>
Finish serializing a tuple.
impl<'a, W: Write + 'a, V: VariantWriter + 'a> SerializeTupleStruct for Compound<'a, W, V>
[src]
type Ok = ()
Must match the Ok
type of our Serializer
.
type Error = Error
Must match the Error
type of our Serializer
.
fn serialize_field<T: ?Sized + Serialize>(
&mut self,
value: &T
) -> Result<(), Self::Error>
&mut self,
value: &T
) -> Result<(), Self::Error>
Serialize a tuple struct field.
fn end(self) -> Result<Self::Ok, Self::Error>
Finish serializing a tuple struct.
impl<'a, W: Write + 'a, V: VariantWriter + 'a> SerializeTupleVariant for Compound<'a, W, V>
[src]
type Ok = ()
Must match the Ok
type of our Serializer
.
type Error = Error
Must match the Error
type of our Serializer
.
fn serialize_field<T: ?Sized + Serialize>(
&mut self,
value: &T
) -> Result<(), Self::Error>
&mut self,
value: &T
) -> Result<(), Self::Error>
Serialize a tuple variant field.
fn end(self) -> Result<Self::Ok, Self::Error>
Finish serializing a tuple variant.
impl<'a, W: Write + 'a, V: VariantWriter + 'a> SerializeMap for Compound<'a, W, V>
[src]
type Ok = ()
Must match the Ok
type of our Serializer
.
type Error = Error
Must match the Error
type of our Serializer
.
fn serialize_key<T: ?Sized + Serialize>(
&mut self,
key: &T
) -> Result<(), Self::Error>
&mut self,
key: &T
) -> Result<(), Self::Error>
Serialize a map key. Read more
fn serialize_value<T: ?Sized + Serialize>(
&mut self,
value: &T
) -> Result<(), Self::Error>
&mut self,
value: &T
) -> Result<(), Self::Error>
Serialize a map value. Read more
fn end(self) -> Result<Self::Ok, Self::Error>
Finish serializing a map.
fn serialize_entry<K, V>(
&mut self,
key: &K,
value: &V
) -> Result<(), Self::Error> where
K: Serialize + ?Sized,
V: Serialize + ?Sized,
&mut self,
key: &K,
value: &V
) -> Result<(), Self::Error> where
K: Serialize + ?Sized,
V: Serialize + ?Sized,
Serialize a map entry consisting of a key and a value. Read more
impl<'a, W: Write + 'a, V: VariantWriter + 'a> SerializeStruct for Compound<'a, W, V>
[src]
type Ok = ()
Must match the Ok
type of our Serializer
.
type Error = Error
Must match the Error
type of our Serializer
.
fn serialize_field<T: ?Sized + Serialize>(
&mut self,
key: &'static str,
value: &T
) -> Result<(), Self::Error>
&mut self,
key: &'static str,
value: &T
) -> Result<(), Self::Error>
Serialize a struct field.
fn end(self) -> Result<Self::Ok, Self::Error>
Finish serializing a struct.
impl<'a, W: Write + 'a, V: VariantWriter + 'a> SerializeStructVariant for Compound<'a, W, V>
[src]
type Ok = ()
Must match the Ok
type of our Serializer
.
type Error = Error
Must match the Error
type of our Serializer
.
fn serialize_field<T: ?Sized + Serialize>(
&mut self,
_key: &'static str,
value: &T
) -> Result<(), Self::Error>
&mut self,
_key: &'static str,
value: &T
) -> Result<(), Self::Error>
Serialize a struct variant field.
fn end(self) -> Result<Self::Ok, Self::Error>
Finish serializing a struct variant.