pub struct Shl;
Expand description
A Binary
operation that will concurrently resolve two Futures
and shl
their results.
§Example
use futures_executor::block_on;
use async_ops::Shl;
let a = async { 42 };
let b = async { 2 };
let result = async {
async_ops::on(a).op(Shl, b).await
};
assert_eq!(std::ops::Shl::shl(42, 2), block_on(result));
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Shl
impl RefUnwindSafe for Shl
impl Send for Shl
impl Sync for Shl
impl Unpin for Shl
impl UnwindSafe for Shl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more