Skip to main content

NodeSource

Trait NodeSource 

Source
pub trait NodeSource {
    type Slot: Copy + 'static;
    type Key: Clone + Hash + Eq + 'static;
    type Conn: TreeConn<Slot = Self::Slot, Key = Self::Key>;

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

A hierarchical row source for tree: the RowSource idea grown a parent per row. Two implementations: branches (plain data) and a day-model store’s store.tree(children_of) (feature model).

Required Associated Types§

Source

type Slot: Copy + 'static

What a row builder receives.

Source

type Key: Clone + Hash + Eq + 'static

The app’s identity currency: what selection, moves and expansion speak.

Source

type Conn: TreeConn<Slot = Self::Slot, Key = Self::Key>

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 + Eq + 'static> NodeSource for Branches<T, K>

Source§

type Slot = ItemSlot<T, K>

Source§

type Key = K

Source§

type Conn = BranchesConn<T, K>

Day API ↩ Guides· daybrite.dev