Function ruma_common::serde::vec_as_map_of_empty::serialize
source · [−]pub fn serialize<S, T>(vec: &Vec<T>, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
T: Serialize + Eq + Ord,
Expand description
Serialize the given Vec<T>
as a map of T => Empty
.