gleamgen/expression/case_
Types
pub type CaseExpression(input, output) {
CaseExpression(
input_expression: Expression(input),
cases: List(
#(Matcher(Unchecked, Unchecked), Expression(output)),
),
)
}
Constructors
-
CaseExpression( input_expression: Expression(input), cases: List( #(Matcher(Unchecked, Unchecked), Expression(output)), ), )
Functions
pub fn build_expression(
case_: CaseExpression(a, b),
) -> Expression(b)
pub fn with_matcher(
old: CaseExpression(a, b),
matcher: Matcher(a, c),
handler: fn(c) -> Expression(b),
) -> CaseExpression(a, b)