gleamgen/expression/constructor
Types
Use to_expression[n] or to_expression_unchecked to create an expression from the constructor.
pub opaque type Constructor(construct_to, args, generics)
pub type Variants7(a, b, c, d, e, f, g) =
#(#(#(#(#(#(#(#(), a), b), c), d), e), f), g)
pub type Variants8(a, b, c, d, e, f, g, h) =
#(#(#(#(#(#(#(#(#(), a), b), c), d), e), f), g), h)
Values
pub fn name(
constructor: Constructor(construct_to, args, generics),
) -> String
pub fn to_expression0(
constructor: Constructor(construct_to, #(), generics),
) -> expression.Expression(
fn() -> custom.CustomType(construct_to, generics),
)
pub fn to_expression1(
constructor: Constructor(construct_to, #(#(), a), generics),
) -> expression.Expression(
fn(a) -> custom.CustomType(construct_to, generics),
)
pub fn to_expression2(
constructor: Constructor(
construct_to,
#(#(#(), a), b),
generics,
),
) -> expression.Expression(
fn(a, b) -> custom.CustomType(construct_to, generics),
)
pub fn to_expression3(
constructor: Constructor(
construct_to,
#(#(#(#(), a), b), c),
generics,
),
) -> expression.Expression(
fn(a, b, c) -> custom.CustomType(construct_to, generics),
)
pub fn to_expression4(
constructor: Constructor(
construct_to,
#(#(#(#(#(), a), b), c), d),
generics,
),
) -> expression.Expression(
fn(a, b, c, d) -> custom.CustomType(construct_to, generics),
)
pub fn to_expression5(
constructor: Constructor(
construct_to,
#(#(#(#(#(#(), a), b), c), d), e),
generics,
),
) -> expression.Expression(
fn(a, b, c, d, e) -> custom.CustomType(construct_to, generics),
)
pub fn to_expression6(
constructor: Constructor(
construct_to,
#(#(#(#(#(#(#(), a), b), c), d), e), f),
generics,
),
) -> expression.Expression(
fn(a, b, c, d, e, f) -> custom.CustomType(
construct_to,
generics,
),
)
pub fn to_expression7(
constructor: Constructor(
construct_to,
#(#(#(#(#(#(#(#(), a), b), c), d), e), f), g),
generics,
),
) -> expression.Expression(
fn(a, b, c, d, e, f, g) -> custom.CustomType(
construct_to,
generics,
),
)
pub fn to_expression8(
constructor: Constructor(
construct_to,
#(#(#(#(#(#(#(#(#(), a), b), c), d), e), f), g), h),
generics,
),
) -> expression.Expression(
fn(a, b, c, d, e, f, g, h) -> custom.CustomType(
construct_to,
generics,
),
)
pub fn to_expression9(
constructor: Constructor(
construct_to,
#(#(#(#(#(#(#(#(#(#(), a), b), c), d), e), f), g), h), i),
generics,
),
) -> expression.Expression(
fn(a, b, c, d, e, f, g, h, i) -> custom.CustomType(
construct_to,
generics,
),
)
pub fn to_expression_dynamic(
constructor: Constructor(construct_to, args, generics),
) -> expression.Expression(a)
pub fn unsafe_convert(
constructor: Constructor(
construct_to,
original_variants,
original_generics,
),
) -> Constructor(construct_to, new_variants, new_generics)