fn visit_enum<A>(self, data: A) -> Result<Self::Value, A::Error>
    where
        A: EnumAccess<'de>,
    {
        let _ = data;
        Err(Error::invalid_type(Unexpected::Enum, &self))
    }
/// The input contains an enum.
///
/// The default implementation fails with a type error.
The input contains an enum.
The default implementation fails with a type error.
The input contains an enum . The default implementation fails with a type error .
fn visit_enum<A>(self, data: A) -> Result<Self::Value, A::Error>
    where
        A: EnumAccess<'de>,
    {
        let _ = data;
        Err(Error::invalid_type(Unexpected::Enum, &self))
    }
fn visit_enum < A > ( self , data : A ) -> Result < Self :: Value , A :: Error > where A : EnumAccess < ' de > , { let _ = data ; Err ( Error :: invalid_type ( Unexpected :: Enum , & self ) ) }
The input contains an enum.
The input contains an enum .
self
data
A
self
data
A