pub type BoxUnaryOperator<T> = BoxTransformer<T, T>;Expand description
Type alias for BoxTransformer<T, T>
Represents a unary operator that transforms a value of type T to another
value of the same type T, with single ownership semantics. Equivalent to
Java’s UnaryOperator<T>.
§Examples
use prism3_function::{BoxUnaryOperator, Transformer};
let increment: BoxUnaryOperator<i32> = BoxUnaryOperator::new(|x| x + 1);
assert_eq!(increment.apply(41), 42);§Author
Hu Haixing
Aliased Type§
pub struct BoxUnaryOperator<T> { /* private fields */ }