serde_tagged/ser/mod.rs
1//! Serialization of tagged values.
2
3pub mod adj;
4pub mod external;
5pub mod internal;
6
7
8use serde;
9
10/// A trait to provide access to a delegate serializer.
11///
12/// The delegate is expected to be responsible for the data-format of a
13/// serializer that implements this trait.
14pub trait HasDelegate {
15 type Ok;
16 type Error: serde::ser::Error;
17 type Delegate: serde::Serializer<Ok = Self::Ok, Error = Self::Error>;
18
19 /// Returns the delegate-serializer of this object.
20 fn delegate(self) -> Self::Delegate;
21}