Function ruma_serde::vec_as_map_of_empty::serialize[][src]

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.