Trait async_ops::Unary[][src]

pub trait Unary<Operand> {
    type Output;
    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.

Associated Types

The resulting type after applying the unary operation.

Required methods

Do the unary operation on the given operand.

Implementors