pub fn serialize<T, S>(
value: &T,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
T: Serialize,
S: Serializer,
Expand description
Serialize the given value as a list of just that value.
pub fn serialize<T, S>(
value: &T,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
T: Serialize,
S: Serializer,
Serialize the given value as a list of just that value.