Trait serde_tagged::ser::HasDelegate

source ·
pub trait HasDelegate {
    type Ok;
    type Error: Error;
    type Delegate: Serializer<Ok = Self::Ok, Error = Self::Error>;

    // Required method
    fn delegate(self) -> Self::Delegate;
}
Expand description

A trait to provide access to a delegate serializer.

The delegate is expected to be responsible for the data-format of a serializer that implements this trait.

Required Associated Types§

source

type Ok

source

type Error: Error

source

type Delegate: Serializer<Ok = Self::Ok, Error = Self::Error>

Required Methods§

source

fn delegate(self) -> Self::Delegate

Returns the delegate-serializer of this object.

Implementors§

source§

impl<'a, S, T> HasDelegate for serde_tagged::ser::adj::struc::Serializer<'a, S, T>
where S: Serializer, T: Serialize + ?Sized,

§

type Ok = <S as Serializer>::Ok

§

type Error = <S as Serializer>::Error

§

type Delegate = S

source§

impl<'a, S, T> HasDelegate for serde_tagged::ser::adj::tuple::Serializer<'a, S, T>
where S: Serializer, T: Serialize + ?Sized,

§

type Ok = <S as Serializer>::Ok

§

type Error = <S as Serializer>::Error

§

type Delegate = S

source§

impl<'a, S, T> HasDelegate for serde_tagged::ser::external::Serializer<'a, S, T>
where S: Serializer, T: Serialize + 'a + ?Sized,

§

type Ok = <S as Serializer>::Ok

§

type Error = <S as Serializer>::Error

§

type Delegate = S

source§

impl<'a, S, T> HasDelegate for serde_tagged::ser::internal::Serializer<'a, S, T>
where S: Serializer, T: Serialize + ?Sized,

§

type Ok = <S as Serializer>::Ok

§

type Error = <S as Serializer>::Error

§

type Delegate = S

source§

impl<'a, S, Tk, Tv, Vk> HasDelegate for serde_tagged::ser::adj::map::Serializer<'a, S, Tk, Tv, Vk>
where S: Serializer, Tk: Serialize + ?Sized, Tv: Serialize + ?Sized, Vk: Serialize + ?Sized,

§

type Ok = <S as Serializer>::Ok

§

type Error = <S as Serializer>::Error

§

type Delegate = S