Trait Assignable

Source
pub trait Assignable<T> {
    // Required method
    fn from(value: T) -> Self;
}
Expand description

Trait for types that can be used with the Binary::op_assign to assign the result of the Binary operation to the left-hand operand.

See Async::assignable.

Required Methods§

Source

fn from(value: T) -> Self

Wrap the given value with Self.

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.

Implementations on Foreign Types§

Source§

impl<'a, T, Fut: Future<Output = T> + 'a> Assignable<Fut> for LocalBoxFuture<'a, T>

Source§

fn from(future: Fut) -> Self

Wrap the given Future with LocalBoxFuture.

Source§

impl<'a, T, Fut: Future<Output = T> + Send + 'a> Assignable<Fut> for BoxFuture<'a, T>

Source§

fn from(future: Fut) -> Self

Wrap the given Future with BoxFuture.

Implementors§