pub fn serialize<F, S>(flags: &F, serializer: S) -> Result<S::Ok, S::Error>where F: Flags, S: Serializer,