Struct meru_interface::key_assign::KeyAssign
source · [−]Tuple Fields
0: Vec<MultiKey>
Implementations
sourceimpl KeyAssign
impl KeyAssign
pub fn and(self, rhs: Self) -> Self
pub fn or(self, rhs: Self) -> Self
pub fn pressed(&self, input_state: &impl InputState) -> bool
pub fn just_pressed(&self, input_state: &impl InputState) -> bool
pub fn extract_keycode(&self) -> Option<KeyCode>
pub fn insert_keycode(&mut self, kc: KeyCode)
pub fn extract_gamepad(&self) -> Option<GamepadButton>
pub fn insert_gamepad(&mut self, button: GamepadButton)
Trait Implementations
sourceimpl<'de> Deserialize<'de> for KeyAssign
impl<'de> Deserialize<'de> for KeyAssign
sourcefn 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
sourceimpl PartialEq<KeyAssign> for KeyAssign
impl PartialEq<KeyAssign> for KeyAssign
impl Eq for KeyAssign
impl StructuralEq for KeyAssign
impl StructuralPartialEq for KeyAssign
Auto Trait Implementations
impl RefUnwindSafe for KeyAssign
impl Send for KeyAssign
impl Sync for KeyAssign
impl Unpin for KeyAssign
impl UnwindSafe for KeyAssign
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more