Enum youtube_tui::config::serde::KeyCodeSerde
source · pub enum KeyCodeSerde {
Char(char),
KeyVariants(KeyVariantsSerde),
F(String),
}
Expand description
serde version of a single key code
Variants§
Implementations§
source§impl KeyCodeSerde
impl KeyCodeSerde
pub fn to_keycode(self) -> Option<KeyCode>
Trait Implementations§
source§impl Clone for KeyCodeSerde
impl Clone for KeyCodeSerde
source§fn clone(&self) -> KeyCodeSerde
fn clone(&self) -> KeyCodeSerde
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 KeyCodeSerde
impl Debug for KeyCodeSerde
source§impl<'de> Deserialize<'de> for KeyCodeSerde
impl<'de> Deserialize<'de> for KeyCodeSerde
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 Hash for KeyCodeSerde
impl Hash for KeyCodeSerde
source§impl PartialEq<KeyCodeSerde> for KeyCodeSerde
impl PartialEq<KeyCodeSerde> for KeyCodeSerde
source§fn eq(&self, other: &KeyCodeSerde) -> bool
fn eq(&self, other: &KeyCodeSerde) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for KeyCodeSerde
impl Serialize for KeyCodeSerde
impl Eq for KeyCodeSerde
impl StructuralEq for KeyCodeSerde
impl StructuralPartialEq for KeyCodeSerde
Auto Trait Implementations§
impl RefUnwindSafe for KeyCodeSerde
impl Send for KeyCodeSerde
impl Sync for KeyCodeSerde
impl Unpin for KeyCodeSerde
impl UnwindSafe for KeyCodeSerde
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> CloneAny for Twhere
T: Any + Clone,
impl<T> CloneAny for Twhere T: Any + Clone,
fn clone_any(&self) -> Box<dyn CloneAny, Global>
fn clone_any_send(&self) -> Box<dyn CloneAny + Send, Global>where T: Send,
fn clone_any_sync(&self) -> Box<dyn CloneAny + Sync, Global>where T: Sync,
fn clone_any_send_sync(&self) -> Box<dyn CloneAny + Sync + Send, Global>where T: Send + Sync,
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.