Struct x11rb_protocol::protocol::xproto::ButtonIndex
source · [−]pub struct ButtonIndex(_);
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?
Implementations
Trait Implementations
sourceimpl Clone for ButtonIndex
impl Clone for ButtonIndex
sourcefn clone(&self) -> ButtonIndex
fn clone(&self) -> ButtonIndex
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ButtonIndex
impl Debug for ButtonIndex
sourceimpl Default for ButtonIndex
impl Default for ButtonIndex
sourcefn default() -> ButtonIndex
fn default() -> ButtonIndex
Returns the “default value” for a type. Read more
sourceimpl From<ButtonIndex> for u8
impl From<ButtonIndex> for u8
sourcefn from(input: ButtonIndex) -> Self
fn from(input: ButtonIndex) -> Self
Converts to this type from the input type.
sourceimpl From<ButtonIndex> for Option<u8>
impl From<ButtonIndex> for Option<u8>
sourcefn from(input: ButtonIndex) -> Self
fn from(input: ButtonIndex) -> Self
Converts to this type from the input type.
sourceimpl From<ButtonIndex> for u16
impl From<ButtonIndex> for u16
sourcefn from(input: ButtonIndex) -> Self
fn from(input: ButtonIndex) -> Self
Converts to this type from the input type.
sourceimpl From<ButtonIndex> for Option<u16>
impl From<ButtonIndex> for Option<u16>
sourcefn from(input: ButtonIndex) -> Self
fn from(input: ButtonIndex) -> Self
Converts to this type from the input type.
sourceimpl From<ButtonIndex> for u32
impl From<ButtonIndex> for u32
sourcefn from(input: ButtonIndex) -> Self
fn from(input: ButtonIndex) -> Self
Converts to this type from the input type.
sourceimpl From<ButtonIndex> for Option<u32>
impl From<ButtonIndex> for Option<u32>
sourcefn from(input: ButtonIndex) -> Self
fn from(input: ButtonIndex) -> Self
Converts to this type from the input type.
sourceimpl From<u8> for ButtonIndex
impl From<u8> for ButtonIndex
sourceimpl Hash for ButtonIndex
impl Hash for ButtonIndex
sourceimpl Ord for ButtonIndex
impl Ord for ButtonIndex
sourceimpl PartialEq<ButtonIndex> for ButtonIndex
impl PartialEq<ButtonIndex> for ButtonIndex
sourcefn eq(&self, other: &ButtonIndex) -> bool
fn eq(&self, other: &ButtonIndex) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ButtonIndex) -> bool
fn ne(&self, other: &ButtonIndex) -> bool
This method tests for !=
.
sourceimpl PartialOrd<ButtonIndex> for ButtonIndex
impl PartialOrd<ButtonIndex> for ButtonIndex
sourcefn partial_cmp(&self, other: &ButtonIndex) -> Option<Ordering>
fn partial_cmp(&self, other: &ButtonIndex) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for ButtonIndex
impl Eq for ButtonIndex
impl StructuralEq for ButtonIndex
impl StructuralPartialEq for ButtonIndex
Auto Trait Implementations
impl RefUnwindSafe for ButtonIndex
impl Send for ButtonIndex
impl Sync for ButtonIndex
impl Unpin for ButtonIndex
impl UnwindSafe for ButtonIndex
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