Skip to main content

MultiLineMode

Trait MultiLineMode 

Source
pub trait MultiLineMode: InputModeKind { }
Expand description

The modes whose layout spans more than one line: TextareaMode and EditorMode.

Soft wrap, wrapping indent and the search session are meaningless in a single-line field, but shared by the two multi-line modes. Bounding an impl block on this trait puts those methods on both without writing them twice, and keeps them off InputMode.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§