Receiver

Trait Receiver 

Source
pub trait Receiver<'a, T: 'a>: Sized {
    type Hkt: ReceiverHkt<'a, Apply<T>: Identity<Type = Self>>;

    const RECEIVER_WIT: ReceiverWit<'a, Self, T> = _;
}
Expand description

Trait that abstracts over T/&'a T/&'a mut T

Provided Associated Constants§

Source

const RECEIVER_WIT: ReceiverWit<'a, Self, T> = _

Witness for whether Self is a T,&'a T, or &'a mut T.

Required Associated Types§

Source

type Hkt: ReceiverHkt<'a, Apply<T>: Identity<Type = Self>>

Marker type for abstractly representing values/references/mutable references

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: 'a> Receiver<'a, T> for &'a T

Source§

type Hkt = RefHkt<'a>

Source§

impl<'a, T: 'a> Receiver<'a, T> for &'a mut T

Implementors§

Source§

impl<'a, T: 'a> Receiver<'a, T> for T