pub struct ChordDef {
pub window_ms: u32,
}Expand description
How ButtonChords fire (shuyi_ui::input::state): a chord button
whose own action waits for its partner waits at most window_ms
(unless it waits for its release).
Fields§
§window_ms: u32How long, in milliseconds, two buttons pressed one after the other still count as pressed together.
Trait Implementations§
impl Copy for ChordDef
Source§impl<'de> Deserialize<'de> for ChordDef
impl<'de> Deserialize<'de> for ChordDef
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChordDef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChordDef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ChordDef
Source§impl Serialize for ChordDef
impl Serialize for ChordDef
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ChordDef
Auto Trait Implementations§
impl Freeze for ChordDef
impl RefUnwindSafe for ChordDef
impl Send for ChordDef
impl Sync for ChordDef
impl Unpin for ChordDef
impl UnsafeUnpin for ChordDef
impl UnwindSafe for ChordDef
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