Struct lair_keystore_api::dependencies::rmp_serde::encode::Compound
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> SerializeSeq for Compound<'a, W, C>where
W: Write + 'a,
C: SerializerConfig,
impl<'a, W, C> SerializeSeq for Compound<'a, W, C>where
W: Write + 'a,
C: SerializerConfig,
§fn serialize_element<T>(
&mut self,
value: &T
) -> Result<(), <Compound<'a, W, C> as SerializeSeq>::Error>
fn serialize_element<T>( &mut self, value: &T ) -> Result<(), <Compound<'a, W, C> as SerializeSeq>::Error>
Serialize a sequence element.
§fn end(
self
) -> Result<<Compound<'a, W, C> as SerializeSeq>::Ok, <Compound<'a, W, C> as SerializeSeq>::Error>
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,
impl<'a, W, C> SerializeStruct for Compound<'a, W, C>where
W: Write + 'a,
C: SerializerConfig,
§fn serialize_field<T>(
&mut self,
key: &'static str,
value: &T
) -> Result<(), <Compound<'a, W, C> as SerializeStruct>::Error>
fn serialize_field<T>( &mut self, key: &'static str, value: &T ) -> Result<(), <Compound<'a, W, C> as SerializeStruct>::Error>
Serialize a struct field.
§fn end(
self
) -> Result<<Compound<'a, W, C> as SerializeStruct>::Ok, <Compound<'a, W, C> as SerializeStruct>::Error>
fn end( self ) -> Result<<Compound<'a, W, C> as SerializeStruct>::Ok, <Compound<'a, W, C> as SerializeStruct>::Error>
Finish serializing a struct.
§impl<'a, W, C> SerializeStructVariant for Compound<'a, W, C>where
W: Write + 'a,
C: SerializerConfig,
impl<'a, W, C> SerializeStructVariant for Compound<'a, W, C>where
W: Write + 'a,
C: SerializerConfig,
§fn serialize_field<T>(
&mut self,
key: &'static str,
value: &T
) -> Result<(), <Compound<'a, W, C> as SerializeStructVariant>::Error>
fn serialize_field<T>( &mut self, key: &'static str, value: &T ) -> Result<(), <Compound<'a, W, C> as SerializeStructVariant>::Error>
Serialize a struct variant field.
§fn end(
self
) -> Result<<Compound<'a, W, C> as SerializeStructVariant>::Ok, <Compound<'a, W, C> as SerializeStructVariant>::Error>
fn end( self ) -> Result<<Compound<'a, W, C> as SerializeStructVariant>::Ok, <Compound<'a, W, C> as SerializeStructVariant>::Error>
Finish serializing a struct variant.
§impl<'a, W, C> SerializeTuple for Compound<'a, W, C>where
W: Write + 'a,
C: SerializerConfig,
impl<'a, W, C> SerializeTuple for Compound<'a, W, C>where
W: Write + 'a,
C: SerializerConfig,
§fn serialize_element<T>(
&mut self,
value: &T
) -> Result<(), <Compound<'a, W, C> as SerializeTuple>::Error>
fn serialize_element<T>( &mut self, value: &T ) -> Result<(), <Compound<'a, W, C> as SerializeTuple>::Error>
Serialize a tuple element.
§fn end(
self
) -> Result<<Compound<'a, W, C> as SerializeTuple>::Ok, <Compound<'a, W, C> as SerializeTuple>::Error>
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,
impl<'a, W, C> SerializeTupleStruct for Compound<'a, W, C>where
W: Write + 'a,
C: SerializerConfig,
§fn serialize_field<T>(
&mut self,
value: &T
) -> Result<(), <Compound<'a, W, C> as SerializeTupleStruct>::Error>
fn serialize_field<T>( &mut self, value: &T ) -> Result<(), <Compound<'a, W, C> as SerializeTupleStruct>::Error>
Serialize a tuple struct field.
§fn end(
self
) -> Result<<Compound<'a, W, C> as SerializeTupleStruct>::Ok, <Compound<'a, W, C> as SerializeTupleStruct>::Error>
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,
impl<'a, W, C> SerializeTupleVariant for Compound<'a, W, C>where
W: Write + 'a,
C: SerializerConfig,
§fn serialize_field<T>(
&mut self,
value: &T
) -> Result<(), <Compound<'a, W, C> as SerializeTupleVariant>::Error>
fn serialize_field<T>( &mut self, value: &T ) -> Result<(), <Compound<'a, W, C> as SerializeTupleVariant>::Error>
Serialize a tuple variant field.
§fn end(
self
) -> Result<<Compound<'a, W, C> as SerializeTupleVariant>::Ok, <Compound<'a, W, C> as SerializeTupleVariant>::Error>
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>where
C: RefUnwindSafe,
W: RefUnwindSafe,
impl<'a, W, C> Send for Compound<'a, W, C>
impl<'a, W, C> Sync for Compound<'a, W, C>
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> 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