Skip to main content

RowSource

Trait RowSource 

Source
pub trait RowSource {
    type Slot: Copy + 'static;
    type Ref: 'static;
    type Conn: RowConn<Slot = Self::Slot, Ref = Self::Ref>;

    // Required method
    fn connect(self) -> Self::Conn;
}
Expand description

Where a collection’s rows come from. each(source, row) and list()(source, row) accept anything implementing this: plain data via items(closure, key_of), or (with the model feature) a day-model store directly (collection order) or store.rows(projection) (a tracked display projection of key ids).

Required Associated Types§

Source

type Slot: Copy + 'static

What a row builder receives.

Source

type Ref: 'static

What selection callbacks hand the app.

Source

type Conn: RowConn<Slot = Self::Slot, Ref = Self::Ref>

Required Methods§

Source

fn connect(self) -> Self::Conn

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: Clone + 'static, K: Clone + Hash + 'static> RowSource for Items<T, K>

Source§

type Slot = ItemSlot<T, K>

Source§

type Ref = K

Source§

type Conn = ItemsConn<T, K>

Day API ↩ Guides· daybrite.dev