Trait async_ops::Binary[][src]

pub trait Binary<Lhs, Rhs> {
    type Output;
    fn op(lhs: Lhs, rhs: Rhs) -> Self::Output;

    fn op_assign(lhs: &mut Lhs, rhs: Rhs)
    where
        Lhs: Assignable<Self::Output>
, { ... } }
Expand description

Trait that represents a binary operation on the left-hand operand of type Lhs and the right-hand operand of type Rhs that returns the result of type Output.

See Async::op and Async::op_assign.

Associated Types

The resulting type after applying the binary operation.

Required methods

Do the binary operation on given operands.

Provided methods

Do the binary operation on given operands and assign the result to the lhs operand.

Implementors