pub struct KeySettings {Show 34 fields
pub up: KeyEvent,
pub down: KeyEvent,
pub left: KeyEvent,
pub right: KeyEvent,
pub next: KeyEvent,
pub previous: KeyEvent,
pub page_up: KeyEvent,
pub page_down: KeyEvent,
pub goto_start: KeyEvent,
pub goto_end: KeyEvent,
pub quit: KeyEvent,
pub save_and_quit: KeyEvent,
pub save_as: KeyEvent,
pub save: KeyEvent,
pub open: KeyEvent,
pub help: KeyEvent,
pub log: KeyEvent,
pub run: KeyEvent,
pub find_text: KeyEvent,
pub find_symbol: KeyEvent,
pub edit_comment: KeyEvent,
pub find_comment: KeyEvent,
pub patch_text: KeyEvent,
pub patch_assembly: KeyEvent,
pub jump: KeyEvent,
pub change_view: KeyEvent,
pub change_selected_pane: KeyEvent,
pub fullscreen: KeyEvent,
pub confirm: KeyEvent,
pub close_popup: KeyEvent,
pub new_line: KeyEvent,
pub clear_log: KeyEvent,
pub undo: KeyEvent,
pub redo: KeyEvent,
}Fields§
§up: KeyEvent§down: KeyEvent§left: KeyEvent§right: KeyEvent§next: KeyEvent§previous: KeyEvent§page_up: KeyEvent§page_down: KeyEvent§goto_start: KeyEvent§goto_end: KeyEvent§quit: KeyEvent§save_and_quit: KeyEvent§save_as: KeyEvent§save: KeyEvent§open: KeyEvent§help: KeyEvent§log: KeyEvent§run: KeyEvent§find_text: KeyEvent§find_symbol: KeyEvent§edit_comment: KeyEvent§find_comment: KeyEvent§patch_text: KeyEvent§patch_assembly: KeyEvent§jump: KeyEvent§change_view: KeyEvent§change_selected_pane: KeyEvent§fullscreen: KeyEvent§confirm: KeyEvent§close_popup: KeyEvent§new_line: KeyEvent§clear_log: KeyEvent§undo: KeyEvent§redo: KeyEventImplementations§
Source§impl KeySettings
impl KeySettings
pub fn register_userdata(data: &mut UserDataRegistry<Settings>)
Source§impl KeySettings
impl KeySettings
pub fn key_code_to_string(code: KeyCode) -> String
pub fn string_to_key_code(string: &str) -> Result<KeyCode, String>
pub fn key_event_kind_to_string(kind: KeyEventKind) -> String
pub fn string_to_key_event_kind(string: &str) -> Result<KeyEventKind, String>
Trait Implementations§
Source§impl Clone for KeySettings
impl Clone for KeySettings
Source§fn clone(&self) -> KeySettings
fn clone(&self) -> KeySettings
Returns a duplicate 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 KeySettings
impl Debug for KeySettings
Source§impl Default for KeySettings
impl Default for KeySettings
Source§impl<'de> Deserialize<'de> for KeySettingswhere
KeySettings: Default,
impl<'de> Deserialize<'de> for KeySettingswhere
KeySettings: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for KeySettings
impl PartialEq for KeySettings
Source§impl Serialize for KeySettings
impl Serialize for KeySettings
impl Eq for KeySettings
impl StructuralPartialEq for KeySettings
Auto Trait Implementations§
impl Freeze for KeySettings
impl RefUnwindSafe for KeySettings
impl Send for KeySettings
impl Sync for KeySettings
impl Unpin for KeySettings
impl UnwindSafe for KeySettings
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,
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