Struct strason::object::SerializeSeq [−][src]
pub struct SerializeSeq<T> { /* fields omitted */ }
Trait Implementations
impl SerializeSeq for SerializeSeq<Json>
[src]
impl SerializeSeq for SerializeSeq<Json>
type Ok = Json
Must match the Ok
type of our Serializer
.
type Error = Error
Must match the Error
type of our Serializer
.
fn serialize_element<T: Serialize + ?Sized>(
&mut self,
value: &T
) -> Result<(), Error>
[src]
fn serialize_element<T: Serialize + ?Sized>(
&mut self,
value: &T
) -> Result<(), Error>
Serialize a sequence element.
fn end(self) -> Result<Json, Error>
[src]
fn end(self) -> Result<Json, Error>
Finish serializing a sequence.
impl SerializeTuple for SerializeSeq<Json>
[src]
impl SerializeTuple for SerializeSeq<Json>
type Ok = Json
Must match the Ok
type of our Serializer
.
type Error = Error
Must match the Error
type of our Serializer
.
fn serialize_element<T: Serialize + ?Sized>(
&mut self,
value: &T
) -> Result<(), Error>
[src]
fn serialize_element<T: Serialize + ?Sized>(
&mut self,
value: &T
) -> Result<(), Error>
Serialize a tuple element.
fn end(self) -> Result<Json, Error>
[src]
fn end(self) -> Result<Json, Error>
Finish serializing a tuple.
impl SerializeMap for SerializeSeq<(String, Json)>
[src]
impl SerializeMap for SerializeSeq<(String, Json)>
type Ok = Json
Must match the Ok
type of our Serializer
.
type Error = Error
Must match the Error
type of our Serializer
.
fn serialize_key<T: Serialize + ?Sized>(&mut self, key: &T) -> Result<(), Error>
[src]
fn serialize_key<T: Serialize + ?Sized>(&mut self, key: &T) -> Result<(), Error>
Serialize a map key. Read more
fn serialize_value<T: Serialize + ?Sized>(
&mut self,
val: &T
) -> Result<(), Error>
[src]
fn serialize_value<T: Serialize + ?Sized>(
&mut self,
val: &T
) -> Result<(), Error>
Serialize a map value. Read more
fn end(self) -> Result<Json, Error>
[src]
fn end(self) -> Result<Json, 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,
[src]
fn serialize_entry<K, V>(
&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 SerializeTupleStruct for SerializeSeq<Json>
[src]
impl SerializeTupleStruct for SerializeSeq<Json>
type Ok = Json
Must match the Ok
type of our Serializer
.
type Error = Error
Must match the Error
type of our Serializer
.
fn serialize_field<T: Serialize + ?Sized>(
&mut self,
value: &T
) -> Result<(), Error>
[src]
fn serialize_field<T: Serialize + ?Sized>(
&mut self,
value: &T
) -> Result<(), Error>
Serialize a tuple struct field.
fn end(self) -> Result<Json, Error>
[src]
fn end(self) -> Result<Json, Error>
Finish serializing a tuple struct.
impl SerializeStruct for SerializeSeq<(String, Json)>
[src]
impl SerializeStruct for SerializeSeq<(String, Json)>
type Ok = Json
Must match the Ok
type of our Serializer
.
type Error = Error
Must match the Error
type of our Serializer
.
fn serialize_field<T: Serialize + ?Sized>(
&mut self,
key: &'static str,
val: &T
) -> Result<(), Error>
[src]
fn serialize_field<T: Serialize + ?Sized>(
&mut self,
key: &'static str,
val: &T
) -> Result<(), Error>
Serialize a struct field.
fn end(self) -> Result<Json, Error>
[src]
fn end(self) -> Result<Json, Error>
Finish serializing a struct.
fn skip_field(&mut self, key: &'static str) -> Result<(), Self::Error>
[src]
fn skip_field(&mut self, key: &'static str) -> Result<(), Self::Error>
Indicate that a struct field has been skipped.
Auto Trait Implementations
impl<T> Send for SerializeSeq<T> where
T: Send,
impl<T> Send for SerializeSeq<T> where
T: Send,
impl<T> Sync for SerializeSeq<T> where
T: Sync,
impl<T> Sync for SerializeSeq<T> where
T: Sync,