freya_edit/mode.rs
1/// How the editable content must behave.
2#[derive(PartialEq, Eq, Clone, Copy)]
3pub enum EditableMode {
4 /// Multiple editors of only one line.
5 ///
6 /// Useful for textarea-like editors that need more customization than a simple paragraph for example.
7 SingleLineMultipleEditors,
8 /// One editor of multiple lines.
9 ///
10 /// A paragraph for example.
11 MultipleLinesSingleEditor,
12}
13
14impl Default for EditableMode {
15 fn default() -> Self {
16 Self::MultipleLinesSingleEditor
17 }
18}