pub struct Compound<'a, W, C>
where W: 'a, C: 'a,
{ /* private fields */ }
Expand description

Part of serde serialization API.

Trait Implementations§

§

impl<'a, W, C> Debug for Compound<'a, W, C>
where W: Debug + 'a, C: Debug + 'a,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'a, W, C> SerializeSeq for Compound<'a, W, C>
where W: Write + 'a, C: SerializerConfig,

§

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>( &mut self, value: &T ) -> Result<(), <Compound<'a, W, C> as SerializeSeq>::Error>
where T: Serialize + ?Sized,

Serialize a sequence element.
§

fn end( self ) -> Result<<Compound<'a, W, C> as SerializeSeq>::Ok, <Compound<'a, W, C> as SerializeSeq>::Error>

Finish serializing a sequence.
§

impl<'a, W, C> SerializeStruct for Compound<'a, W, C>
where W: Write + 'a, C: SerializerConfig,

§

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>( &mut self, key: &'static str, value: &T ) -> Result<(), <Compound<'a, W, C> as SerializeStruct>::Error>
where T: Serialize + ?Sized,

Serialize a struct field.
§

fn end( self ) -> Result<<Compound<'a, W, C> as SerializeStruct>::Ok, <Compound<'a, W, C> as SerializeStruct>::Error>

Finish serializing a struct.
source§

fn skip_field(&mut self, key: &'static str) -> Result<(), Self::Error>

Indicate that a struct field has been skipped.
§

impl<'a, W, C> SerializeStructVariant for Compound<'a, W, C>
where W: Write + 'a, C: SerializerConfig,

§

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>( &mut self, key: &'static str, value: &T ) -> Result<(), <Compound<'a, W, C> as SerializeStructVariant>::Error>
where T: Serialize + ?Sized,

Serialize a struct variant field.
§

fn end( self ) -> Result<<Compound<'a, W, C> as SerializeStructVariant>::Ok, <Compound<'a, W, C> as SerializeStructVariant>::Error>

Finish serializing a struct variant.
source§

fn skip_field(&mut self, key: &'static str) -> Result<(), Self::Error>

Indicate that a struct variant field has been skipped.
§

impl<'a, W, C> SerializeTuple for Compound<'a, W, C>
where W: Write + 'a, C: SerializerConfig,

§

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>( &mut self, value: &T ) -> Result<(), <Compound<'a, W, C> as SerializeTuple>::Error>
where T: Serialize + ?Sized,

Serialize a tuple element.
§

fn end( self ) -> Result<<Compound<'a, W, C> as SerializeTuple>::Ok, <Compound<'a, W, C> as SerializeTuple>::Error>

Finish serializing a tuple.
§

impl<'a, W, C> SerializeTupleStruct for Compound<'a, W, C>
where W: Write + 'a, C: SerializerConfig,

§

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>( &mut self, value: &T ) -> Result<(), <Compound<'a, W, C> as SerializeTupleStruct>::Error>
where T: Serialize + ?Sized,

Serialize a tuple struct field.
§

fn end( self ) -> Result<<Compound<'a, W, C> as SerializeTupleStruct>::Ok, <Compound<'a, W, C> as SerializeTupleStruct>::Error>

Finish serializing a tuple struct.
§

impl<'a, W, C> SerializeTupleVariant for Compound<'a, W, C>
where W: Write + 'a, C: SerializerConfig,

§

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>( &mut self, value: &T ) -> Result<(), <Compound<'a, W, C> as SerializeTupleVariant>::Error>
where T: Serialize + ?Sized,

Serialize a tuple variant field.
§

fn end( self ) -> Result<<Compound<'a, W, C> as SerializeTupleVariant>::Ok, <Compound<'a, W, C> as SerializeTupleVariant>::Error>

Finish serializing a tuple variant.

Auto Trait Implementations§

§

impl<'a, W, C> RefUnwindSafe for Compound<'a, W, C>

§

impl<'a, W, C> Send for Compound<'a, W, C>
where C: Send, W: Send,

§

impl<'a, W, C> Sync for Compound<'a, W, C>
where C: Sync, W: Sync,

§

impl<'a, W, C> Unpin for Compound<'a, W, C>

§

impl<'a, W, C> !UnwindSafe for Compound<'a, W, C>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more