pub struct NodeGraphKeyCode(pub Code);Expand description
Serialized key code (a keyboard_types::Code), stored as a string like "Space" or "KeyA".
This is intentionally aligned with the KeyboardEvent.code naming used by XyFlow for
panActivationKeyCode.
Tuple Fields§
§0: CodeTrait Implementations§
Source§impl Clone for NodeGraphKeyCode
impl Clone for NodeGraphKeyCode
Source§fn clone(&self) -> NodeGraphKeyCode
fn clone(&self) -> NodeGraphKeyCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NodeGraphKeyCode
Source§impl Debug for NodeGraphKeyCode
impl Debug for NodeGraphKeyCode
Source§impl<'de> Deserialize<'de> for NodeGraphKeyCode
impl<'de> Deserialize<'de> for NodeGraphKeyCode
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NodeGraphKeyCode
Source§impl Hash for NodeGraphKeyCode
impl Hash for NodeGraphKeyCode
Source§impl PartialEq for NodeGraphKeyCode
impl PartialEq for NodeGraphKeyCode
Source§fn eq(&self, other: &NodeGraphKeyCode) -> bool
fn eq(&self, other: &NodeGraphKeyCode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NodeGraphKeyCode
impl Serialize for NodeGraphKeyCode
impl StructuralPartialEq for NodeGraphKeyCode
Auto Trait Implementations§
impl Freeze for NodeGraphKeyCode
impl RefUnwindSafe for NodeGraphKeyCode
impl Send for NodeGraphKeyCode
impl Sync for NodeGraphKeyCode
impl Unpin for NodeGraphKeyCode
impl UnsafeUnpin for NodeGraphKeyCode
impl UnwindSafe for NodeGraphKeyCode
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.