Struct json_with_comments::ser::access::map::MapSerializer
source · pub struct MapSerializer<'a, W, F>where
F: JsoncFormatter,{ /* private fields */ }
Implementations§
source§impl<'a, W, F> MapSerializer<'a, W, F>where
W: Write,
F: JsoncFormatter,
impl<'a, W, F> MapSerializer<'a, W, F>where
W: Write,
F: JsoncFormatter,
Trait Implementations§
source§impl<'a, W, F> SerializeMap for MapSerializer<'a, W, F>where
W: Write,
F: JsoncFormatter,
impl<'a, W, F> SerializeMap for MapSerializer<'a, W, F>where
W: Write,
F: JsoncFormatter,
§type Error = JsonWithCommentsError
type Error = JsonWithCommentsError
Must match the
Error
type of our Serializer
.source§fn serialize_key<T>(&mut self, key: &T) -> Result<Self::Ok, Self::Error>
fn serialize_key<T>(&mut self, key: &T) -> Result<Self::Ok, Self::Error>
Serialize a map key. Read more
source§impl<'a, W, F> SerializeStruct for MapSerializer<'a, W, F>where
W: Write,
F: JsoncFormatter,
impl<'a, W, F> SerializeStruct for MapSerializer<'a, W, F>where
W: Write,
F: JsoncFormatter,
§type Ok = <MapSerializer<'a, W, F> as SerializeMap>::Ok
type Ok = <MapSerializer<'a, W, F> as SerializeMap>::Ok
Must match the
Ok
type of our Serializer
.§type Error = <MapSerializer<'a, W, F> as SerializeMap>::Error
type Error = <MapSerializer<'a, W, F> as SerializeMap>::Error
Must match the
Error
type of our Serializer
.Auto Trait Implementations§
impl<'a, W, F> RefUnwindSafe for MapSerializer<'a, W, F>where
F: RefUnwindSafe,
W: RefUnwindSafe,
impl<'a, W, F> Send for MapSerializer<'a, W, F>
impl<'a, W, F> Sync for MapSerializer<'a, W, F>
impl<'a, W, F> Unpin for MapSerializer<'a, W, F>
impl<'a, W, F> !UnwindSafe for MapSerializer<'a, W, F>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more