fn serialize_entry<K: ?Sized, V: ?Sized>(
        &mut self,
        key: &K,
        value: &V,
    ) -> Result<(), Self::Error>
    where
        K: Serialize,
        V: Serialize,
    {
        try!(self.serialize_key(key));
        self.serialize_value(value)
    }
/// Serialize a map entry consisting of a key and a value.
///
/// Some [`Serialize`] types are not able to hold a key and value in memory
/// at the same time so `SerializeMap` implementations are required to
/// support [`serialize_key`] and [`serialize_value`] individually. The
/// `serialize_entry` method allows serializers to optimize for the case
/// where key and value are both available. [`Serialize`] implementations
/// are encouraged to use `serialize_entry` if possible.
///
/// The default implementation delegates to [`serialize_key`] and
/// [`serialize_value`]. This is appropriate for serializers that do not
/// care about performance or are not able to optimize `serialize_entry` any
/// better than this.
///
/// [`Serialize`]: ../trait.Serialize.html
/// [`serialize_key`]: #tymethod.serialize_key
/// [`serialize_value`]: #tymethod.serialize_value
Serialize a map entry consisting of a key and a value.

The default implementation delegates to [`serialize_key`] and
[`serialize_value`]. This is appropriate for serializers that do not
care about performance or are not able to optimize `serialize_entry` any
better than this.


Serialize a map entry consisting of a key and a value . The default implementation delegates to [ ` serialize_key ` ] and [ ` serialize_value ` ] . This is appropriate for serializers that do not care about performance or are not able to optimize ` serialize_entry ` any better than this .
fn serialize_entry<K: ?Sized, V: ?Sized>(
        &mut self,
        key: &K,
        value: &V,
    ) -> Result<(), Self::Error>
    where
        K: Serialize,
        V: Serialize,
    {
        try!(self.serialize_key(key));
        self.serialize_value(value)
    }
fn serialize_entry < K : ? Sized , V : ? Sized > ( & mut self , key : & K , value : & V , ) -> Result < ( ) , Self :: Error > where K : Serialize , V : Serialize , { try ! ( self serialize_key ( key ) ) ; self . serialize_value ( value ) }
Serialize a map entry consisting of a key and a value.
Serialize a map entry consisting of a key and a value .
&mut self
key
&K
value
&V
&mut self
key
&K
value
&V