HKT

Trait HKT 

Source
pub trait HKT<T> {
    type Cont<_T>;
}
Expand description

The HKT trait defines an interface for higher-kinded types (HKT).

Required Associated Types§

Source

type Cont<_T>

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<K, V> HKT<V> for BTreeMap<K, V>

Source§

type Cont<U> = BTreeMap<K, U>

Source§

impl<K, V> HKT<V> for HashMap<K, V>

Source§

type Cont<U> = HashMap<K, U>

Source§

impl<T> HKT<T> for Option<T>

Source§

type Cont<_T> = Option<_T>

Source§

impl<T> HKT<T> for Box<T>

Source§

type Cont<_T> = Box<_T>

Source§

impl<T> HKT<T> for BinaryHeap<T>

Source§

type Cont<_T> = BinaryHeap<_T>

Source§

impl<T> HKT<T> for BTreeSet<T>

Source§

type Cont<_T> = BTreeSet<_T>

Source§

impl<T> HKT<T> for LinkedList<T>

Source§

type Cont<_T> = LinkedList<_T>

Source§

impl<T> HKT<T> for VecDeque<T>

Source§

type Cont<_T> = VecDeque<_T>

Source§

impl<T> HKT<T> for Rc<T>

Source§

type Cont<_T> = Rc<_T>

Source§

impl<T> HKT<T> for Weak<T>

Source§

type Cont<_T> = Weak<_T>

Source§

impl<T> HKT<T> for Arc<T>

Source§

type Cont<_T> = Arc<_T>

Source§

impl<T> HKT<T> for Vec<T>

Source§

type Cont<_T> = Vec<_T>

Source§

impl<T> HKT<T> for OnceCell<T>

Source§

type Cont<_T> = OnceCell<_T>

Source§

impl<T> HKT<T> for Cell<T>

Source§

type Cont<_T> = Cell<_T>

Source§

impl<T> HKT<T> for RefCell<T>

Source§

type Cont<_T> = RefCell<_T>

Source§

impl<T> HKT<T> for LazyLock<T>

Source§

type Cont<_T> = LazyLock<_T>

Source§

impl<T> HKT<T> for Mutex<T>

Source§

type Cont<_T> = Mutex<_T>

Source§

impl<T> HKT<T> for RwLock<T>

Source§

type Cont<_T> = RwLock<_T>

Source§

impl<V> HKT<V> for HashSet<V>

Source§

type Cont<_T> = HashSet<_T>

Implementors§