syntax::ast::make

Function variant

source
pub fn variant(
    visibility: Option<Visibility>,
    name: Name,
    field_list: Option<FieldList>,
    discriminant: Option<Expr>,
) -> Variant