pub struct ApplyFn<'a, A, B> { /* private fields */ }
Expand description
An ApplyFn
is a function from A
to B
wrapped in something Rust’s type
system can more easily digest. Arguments for
Apply::apply()
are required to be of this type rather than
an arbitrary type matching Fn(A) -> B
.
Apply the wrapped function to a value of type A
.
Formats the value using the given formatter.
Read more
Converts to this type from the input type.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
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.