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