pub trait Unary<Operand> {
type Output;
// Required method
fn op(operand: Operand) -> Self::Output;
}
Expand description
Trait that represents an unary operation on the operand of type Operand
that returns the result of type Output
.
See Async::unary_op
.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.