pub fn new(name: &str) -> Self {
        Variant {
            name: name.to_string(),
            fields: Fields::Empty,
        }
    }
/// Return a new enum variant with the given name.
Return a new enum variant with the given name.
Return a new enum variant with the given name .
pub fn new(name: &str) -> Self {
        Variant {
            name: name.to_string(),
            fields: Fields::Empty,
        }
    }
pub fn new ( name : & str ) -> Self { Variant { name : name . to_string ( ) , fields : Fields :: Empty , } }
Return a new enum variant with the given name.
Return a new enum variant with the given name .
name
&str