gleamgen/types/variant
Types
Functions
pub fn to_unchecked(variant: Variant(a)) -> Variant(Unchecked)
pub fn with_argument(
old: Variant(a),
name: Option(String),
type_: GeneratedType(b),
) -> Variant(#(a, b))
pub fn with_arguments_unchecked(
old: Variant(a),
variants: List(#(Option(String), GeneratedType(Unchecked))),
) -> Variant(Unchecked)