Skip to main content

Crate dartboard_picker_core

Crate dartboard_picker_core 

Source

Modules§

sources
Entry-generating helpers for building SectionSpec contents. Consumers pick and combine these however they like; this crate ships no default catalog of its own.

Structs§

IconCatalogData
A catalog of tabs, where each tab owns an ordered list of sections. Tabs are addressed by index; the consumer owns whatever enum or label scheme they like and maps it to an index at call time.
IconEntry
MemoizedCatalog
Wraps an IconCatalogData with a trail-stack cache: each successful narrowing step pushes a new entry whose query is a strict extension of the previous. Lookups pop entries whose query is not a prefix of the new query (which handles backspaces naturally — the stack rewinds to the matching prefix) and either return an exact hit, narrow from the longest cached prefix, or fall all the way back to a cold scan.
SectionSpec
A consumer-defined section: a title and the entries that belong in it. The catalog owns these; SectionView borrows from them.
SectionView

Enums§

SectionEntries
A view over a section’s entries: either a borrowed slice (unfiltered) or a Vec of references (filtered by a search query). Either way no entry data is cloned.

Functions§

adjust_scroll_offset
entry_at_selectable
flat_len
flat_to_selectable
selectable_count
selectable_to_flat