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.

Returns an Fun1 with the same name and syntax and a reference to the original function.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.