syntax::ast::make

Function variant

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