Function serde_tagged::ser::adj::tuple::serialize [] [src]

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

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.