Struct serde_ini::ser::MapSerializer
[−]
[src]
pub struct MapSerializer<'a, W: 'a> { /* fields omitted */ }
Trait Implementations
impl<'a, W: Write> SerializeMap for MapSerializer<'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 + Serialize>(&mut self, key: &T) -> Result<()>
[src]
Serialize a map key. Read more
fn serialize_value<T: ?Sized + Serialize>(&mut self, value: &T) -> Result<()>
[src]
Serialize a map value. Read more
fn end(self) -> Result<()>
[src]
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,
[src]
&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> SerializeStruct for MapSerializer<'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 + Serialize>(
&mut self,
key: &'static str,
value: &T
) -> Result<()>
[src]
&mut self,
key: &'static str,
value: &T
) -> Result<()>
Serialize a struct field.
fn end(self) -> Result<()>
[src]
Finish serializing a struct.
fn skip_field(&mut self, key: &'static str) -> Result<(), Self::Error>
[src]
Indicate that a struct field has been skipped.