Struct diceprop::Fun2 [−][src]
pub struct Fun2<'a, F> {
pub name: &'a str,
// some fields omitted
}
Expand description
Represents a function of arity 2.
Fields
name: &'a str
The name of the function.
Implementations
Creates a Fun2
with the given name and prefix syntax (e.g. f(x, y)
).
Creates a Fun2
with the given name and infix syntax (e.g. (x + y)
).
Returns an Eval
that contains the result of the function applied to the given
arguments.
This operation will log the function application via dicetest::hints
.
Returns an Eval
that contains the result of the function applied to the given
arguments.
This operation will log the function application via dicetest::hints
.