Skip to main content

visual_kind_to_mode

Function visual_kind_to_mode 

Source
pub fn visual_kind_to_mode(kind: VisualKind) -> VisualMode
Expand description

Project a grammar VisualKind onto the protocol-side VisualMode. Used when constructing a Selection from a modal-state visual mode so the document actor’s selection set carries the visual flavour. Moved here from lattice-ui-tui::app::visual in 5.5.E.4 alongside the Effect::SelectionChange arm.