Struct async_ops::Mul[][src]

pub struct Mul;
Expand description

A Binary operation that will concurrently resolve two Futures and mul their results.

Example

use futures::executor::block_on;
use async_ops::Mul;

let a = async { 42 };
let b = async { 2 };

let result = async {
  async_ops::on(a).op(Mul, b).await
};

assert_eq!(std::ops::Mul::mul(42, 2), block_on(result));

Trait Implementations

The resulting type after applying the binary operation.

Do the binary operation on given operands.

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

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.