Enum egui_bind::KeyOrPointer
source · pub enum KeyOrPointer {
Key(Key),
Pointer(PointerButton),
}Expand description
Bind target that can be either a egui::Key or a egui::PointerButton
Variants§
Trait Implementations§
source§impl BindTarget for KeyOrPointer
impl BindTarget for KeyOrPointer
source§const IS_POINTER: bool = true
const IS_POINTER: bool = true
Can accept pointer bind?
source§fn set_pointer(&mut self, button: PointerButton, _: Modifiers)
fn set_pointer(&mut self, button: PointerButton, _: Modifiers)
Sets new pointer bind
source§impl Clone for KeyOrPointer
impl Clone for KeyOrPointer
source§fn clone(&self) -> KeyOrPointer
fn clone(&self) -> KeyOrPointer
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 KeyOrPointer
impl Debug for KeyOrPointer
source§impl PartialEq for KeyOrPointer
impl PartialEq for KeyOrPointer
source§fn eq(&self, other: &KeyOrPointer) -> bool
fn eq(&self, other: &KeyOrPointer) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for KeyOrPointer
impl Eq for KeyOrPointer
impl StructuralPartialEq for KeyOrPointer
Auto Trait Implementations§
impl Freeze for KeyOrPointer
impl RefUnwindSafe for KeyOrPointer
impl Send for KeyOrPointer
impl Sync for KeyOrPointer
impl Unpin for KeyOrPointer
impl UnwindSafe for KeyOrPointer
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)