Struct x11rb::protocol::xproto::ButtonIndex
source · pub struct ButtonIndex(u8);
Expand description
§Fields
Any
- Any of the following (or none):1
- The left mouse button.2
- The right mouse button.3
- The middle mouse button.4
- Scroll wheel. TODO: direction?5
- Scroll wheel. TODO: direction?
Tuple Fields§
§0: u8
Implementations§
source§impl ButtonIndex
impl ButtonIndex
pub const ANY: ButtonIndex = _
pub const M1: ButtonIndex = _
pub const M2: ButtonIndex = _
pub const M3: ButtonIndex = _
pub const M4: ButtonIndex = _
pub const M5: ButtonIndex = _
Trait Implementations§
source§impl Clone for ButtonIndex
impl Clone for ButtonIndex
source§fn clone(&self) -> ButtonIndex
fn clone(&self) -> ButtonIndex
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 ButtonIndex
impl Debug for ButtonIndex
source§impl Default for ButtonIndex
impl Default for ButtonIndex
source§fn default() -> ButtonIndex
fn default() -> ButtonIndex
Returns the “default value” for a type. Read more
source§impl From<u8> for ButtonIndex
impl From<u8> for ButtonIndex
source§fn from(value: u8) -> ButtonIndex
fn from(value: u8) -> ButtonIndex
Converts to this type from the input type.
source§impl Hash for ButtonIndex
impl Hash for ButtonIndex
source§impl Ord for ButtonIndex
impl Ord for ButtonIndex
source§fn cmp(&self, other: &ButtonIndex) -> Ordering
fn cmp(&self, other: &ButtonIndex) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ButtonIndex
impl PartialEq for ButtonIndex
source§impl PartialOrd for ButtonIndex
impl PartialOrd for ButtonIndex
impl Copy for ButtonIndex
impl Eq for ButtonIndex
impl StructuralPartialEq for ButtonIndex
Auto Trait Implementations§
impl Freeze for ButtonIndex
impl RefUnwindSafe for ButtonIndex
impl Send for ButtonIndex
impl Sync for ButtonIndex
impl Unpin for ButtonIndex
impl UnwindSafe for ButtonIndex
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,
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
)