Function serde_tagged::ser::adj::tuple::serialize

source ·
pub fn serialize<S, T, V>(
    serializer: S,
    tag: &T,
    value: &V,
) -> Result<S::Ok, S::Error>
where S: Serializer, T: Serialize + ?Sized, V: Serialize + ?Sized,
Expand description

Serializes the specified tag and value as tuple.

The tag-value pair will be serialized as tuple where the first element will be the tag and the second element the tuple. The specified serializer performs the actual serialization and thus controls the data format. For more information on this tag-format, see the module documentation.

§Note

You should prefer this method to the Serializer.