use serde::{Deserialize, Serialize}; enum Void {} #[allow(non_upper_case_globals, unused_attributes, unused_qualifications)] const _IMPL_SERIALIZE_FOR_Void: () = { #[allow(unknown_lints)] #[allow(rust_2018_idioms)] extern crate serde as _serde; #[automatically_derived] impl _serde::Serialize for Void { fn serialize<__S>(&self, __serializer: __S) -> _serde::export::Result<__S::Ok, __S::Error> where __S: _serde::Serializer, { match *self {} } } }; #[allow(non_upper_case_globals, unused_attributes, unused_qualifications)] const _IMPL_DESERIALIZE_FOR_Void: () = { #[allow(unknown_lints)] #[allow(rust_2018_idioms)] extern crate serde as _serde; #[automatically_derived] impl<'de> _serde::Deserialize<'de> for Void { fn deserialize<__D>(__deserializer: __D) -> _serde::export::Result where __D: _serde::Deserializer<'de>, { #[allow(non_camel_case_types)] enum __Field {} struct __FieldVisitor; impl<'de> _serde::de::Visitor<'de> for __FieldVisitor { type Value = __Field; fn expecting( &self, __formatter: &mut _serde::export::Formatter, ) -> _serde::export::fmt::Result { _serde::export::Formatter::write_str(__formatter, "variant identifier") } fn visit_u64<__E>(self, __value: u64) -> _serde::export::Result where __E: _serde::de::Error, { match __value { _ => _serde::export::Err(_serde::de::Error::invalid_value( _serde::de::Unexpected::Unsigned(__value), &"variant index 0 <= i < 0", )), } } fn visit_str<__E>(self, __value: &str) -> _serde::export::Result where __E: _serde::de::Error, { match __value { _ => _serde::export::Err(_serde::de::Error::unknown_variant( __value, VARIANTS, )), } } fn visit_bytes<__E>( self, __value: &[u8], ) -> _serde::export::Result where __E: _serde::de::Error, { match __value { _ => { let __value = &_serde::export::from_utf8_lossy(__value); _serde::export::Err(_serde::de::Error::unknown_variant( __value, VARIANTS, )) } } } } impl<'de> _serde::Deserialize<'de> for __Field { #[inline] fn deserialize<__D>(__deserializer: __D) -> _serde::export::Result where __D: _serde::Deserializer<'de>, { _serde::Deserializer::deserialize_identifier(__deserializer, __FieldVisitor) } } struct __Visitor<'de> { marker: _serde::export::PhantomData, lifetime: _serde::export::PhantomData<&'de ()>, } impl<'de> _serde::de::Visitor<'de> for __Visitor<'de> { type Value = Void; fn expecting( &self, __formatter: &mut _serde::export::Formatter, ) -> _serde::export::fmt::Result { _serde::export::Formatter::write_str(__formatter, "enum Void") } fn visit_enum<__A>( self, __data: __A, ) -> _serde::export::Result where __A: _serde::de::EnumAccess<'de>, { _serde::export::Result::map( _serde::de::EnumAccess::variant::<__Field>(__data), |(__impossible, _)| match __impossible {}, ) } } const VARIANTS: &'static [&'static str] = &[]; _serde::Deserializer::deserialize_enum( __deserializer, "Void", VARIANTS, __Visitor { marker: _serde::export::PhantomData::, lifetime: _serde::export::PhantomData, }, ) } } };