pub enum InputMode {
Show 15 variants
Normal,
EditingNote,
EditingSection,
EditingExistingNote,
EditingExistingSection,
Saving,
Loading,
FileMenu,
NewFile,
TimeHack,
KeyBindings,
KeyCapture,
ConfirmReplace,
BindWarning,
ThemeSelect,
}Expand description
Input mode for the application.
Variants§
Normal
Normal mode where key events control the application.
EditingNote
Editing mode for entering a note.
EditingSection
Editing mode for entering a section title.
EditingExistingNote
Editing an existing note.
EditingExistingSection
Editing an existing section title.
Saving
Prompting for a file path to save entries.
Loading
Prompting for a file path to load entries.
FileMenu
Selecting an action from the file management menu.
NewFile
Prompting for a new file name and creating it.
TimeHack
Entering a time hack value.
KeyBindings
Selecting a key binding to change.
KeyCapture
Capturing a new key for a binding.
ConfirmReplace
Confirming replacement of an existing binding.
BindWarning
Warning shown when the bindings key would be lost.
ThemeSelect
Selecting a color theme.
Trait Implementations§
impl Copy for InputMode
impl Eq for InputMode
impl StructuralPartialEq for InputMode
Auto Trait Implementations§
impl Freeze for InputMode
impl RefUnwindSafe for InputMode
impl Send for InputMode
impl Sync for InputMode
impl Unpin for InputMode
impl UnwindSafe for InputMode
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more