Struct serde_mcf::ser::McfSeq
[−]
[src]
pub struct McfSeq<'a, W: 'a + Write>(_, _);
Trait Implementations
impl<'a, W: Write> SerializeTuple for McfSeq<'a, W>
[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>(&mut self, value: &T) -> Result<()> where
T: Serialize,
T: Serialize,
Serialize a tuple element.
fn end(self) -> Result<Self::Ok>
Finish serializing a tuple.
impl<'a, W: Write> SerializeSeq for McfSeq<'a, W>
[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>(&mut self, value: &T) -> Result<()> where
T: Serialize,
T: Serialize,
Serialize a sequence element.
fn end(self) -> Result<Self::Ok>
Finish serializing a sequence.
impl<'a, W: Write> SerializeStruct for McfSeq<'a, W>
[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>(
&mut self,
_key: &'static str,
value: &T
) -> Result<()> where
T: Serialize,
&mut self,
_key: &'static str,
value: &T
) -> Result<()> where
T: Serialize,
Serialize a struct field.
fn end(self) -> Result<Self::Ok>
Finish serializing a struct.
impl<'a, W: Write> SerializeMap for McfSeq<'a, W>
[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>(&mut self, key: &T) -> Result<()> where
T: Serialize,
T: Serialize,
Serialize a map key. Read more
fn serialize_value<T: ?Sized>(&mut self, value: &T) -> Result<()> where
T: Serialize,
T: Serialize,
Serialize a map value. Read more
fn end(self) -> Result<Self::Ok>
Finish serializing a map.
fn serialize_entry<K: ?Sized, V: ?Sized>(
&mut self,
key: &K,
value: &V
) -> Result<()> where
K: Serialize,
V: Serialize,
&mut self,
key: &K,
value: &V
) -> Result<()> where
K: Serialize,
V: Serialize,
Serialize a map entry consisting of a key and a value. Read more