pub(super) fn serialize<S>( cfg: &[CfgAtom], serializer: S, ) -> Result<S::Ok, S::Error>where S: Serializer,