pub enum TextInputMode {
SingleLine,
MultiLine,
}Expand description
Single-line vs multi-line editing behavior.
This mode only changes keyboard translation for Enter. Direct
TextEditAction::InsertText and TextEditAction::Paste actions may
still contain newlines in single-line mode; widgets must enforce any
stronger content invariant themselves.
§Examples
use ailloli_ui_text::TextInputMode;
assert_ne!(TextInputMode::SingleLine, TextInputMode::MultiLine);Variants§
SingleLine
Ignore Enter in TextKeymap translation.
MultiLine
Translate Enter into newline insertion.
Trait Implementations§
Source§impl Clone for TextInputMode
impl Clone for TextInputMode
Source§fn clone(&self) -> TextInputMode
fn clone(&self) -> TextInputMode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextInputMode
impl Debug for TextInputMode
Source§impl PartialEq for TextInputMode
impl PartialEq for TextInputMode
impl Copy for TextInputMode
impl Eq for TextInputMode
impl StructuralPartialEq for TextInputMode
Auto Trait Implementations§
impl Freeze for TextInputMode
impl RefUnwindSafe for TextInputMode
impl Send for TextInputMode
impl Sync for TextInputMode
impl Unpin for TextInputMode
impl UnwindSafe for TextInputMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.