pub fn serialize<S: Serializer>(
    rd: &dyn AsRawDescriptor,
    se: S,
) -> Result<S::Ok, S::Error>