IntoSlots

Trait IntoSlots 

Source
trait IntoSlots {
    type Slots: Slots;

    // Required method
    fn make_slots() -> Self::Slots;
}
Expand description

Internal helper to take a cons-list of Storable types and return a cons-list of slots for them.

Required Associated Types§

Source

type Slots: Slots

A cons-list that contains a slot for every type in this cons-list.

Required Methods§

Source

fn make_slots() -> Self::Slots

Creates a new instance of the slot cons-list with all slots empty.

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.

Implementors§

Source§

impl IntoSlots for Nil

Source§

impl<T, R> IntoSlots for Cons<T, R>
where T: Storable + 'static, R: IntoSlots,

Source§

type Slots = Cons<Slot<T>, <R as IntoSlots>::Slots>