fn deserialize_enum<V>(
        self,
        name: &'static str,
        variants: &'static [&'static str],
        visitor: V,
    ) -> Result<V::Value, Self::Error>
    where
        V: Visitor<'de>,
    {
        self.calls.push(Tokens::Enum(name, variants));
        visitor.visit_enum(EnumAccess {
            calls: self.calls,
            magic: self.magic,
            variants,
            sel_variant: Cell::new(None),
        })
    }
/// Hint that the `Deserialize` type is expecting an enum value with a
/// particular name and possible variants.
Hint that the `Deserialize` type is expecting an enum value with a
particular name and possible variants.
Hint that the ` Deserialize ` type is expecting an enum value with a particular name and possible variants .
fn deserialize_enum<V>(
        self,
        name: &'static str,
        variants: &'static [&'static str],
        visitor: V,
    ) -> Result<V::Value, Self::Error>
    where
        V: Visitor<'de>,
    {
        self.calls.push(Tokens::Enum(name, variants));
        visitor.visit_enum(EnumAccess {
            calls: self.calls,
            magic: self.magic,
            variants,
            sel_variant: Cell::new(None),
        })
    }
fn deserialize_enum < V > ( self , name : & ' static str , variants : & ' static [ & ' static str ] , visitor : V , ) -> Result < V :: Value , Self :: Error > where V : Visitor < ' de > , { self . calls . push ( Tokens :: Enum ( name , variants ) ) ; visitor . visit_enum ( EnumAccess { calls : self . calls , magic : self . magic , variants , sel_variant : Cell :: new ( None ) , } ) }
Hint that the `Deserialize` type is expecting an enum value with a
particular name and possible variants.
Hint that the ` Deserialize ` type is expecting an enum value with a particular name and possible variants .
self
name
&'static str
variants
&'static [&'static str]
visitor
V
self
name
&'static str
variants
&'static [&'static str]
visitor
V