Struct x11rb_protocol::protocol::xproto::ButtonIndex
source · pub struct ButtonIndex(/* private fields */);
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§
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<'de> Deserialize<'de> for ButtonIndex
impl<'de> Deserialize<'de> for ButtonIndex
source§fn 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
source§impl From<ButtonIndex> for Option<u16>
impl From<ButtonIndex> for Option<u16>
source§fn from(input: ButtonIndex) -> Self
fn from(input: ButtonIndex) -> Self
Converts to this type from the input type.
source§impl From<ButtonIndex> for Option<u32>
impl From<ButtonIndex> for Option<u32>
source§fn from(input: ButtonIndex) -> Self
fn from(input: ButtonIndex) -> Self
Converts to this type from the input type.
source§impl From<ButtonIndex> for Option<u8>
impl From<ButtonIndex> for Option<u8>
source§fn from(input: ButtonIndex) -> Self
fn from(input: ButtonIndex) -> Self
Converts to this type from the input type.
source§impl From<ButtonIndex> for u16
impl From<ButtonIndex> for u16
source§fn from(input: ButtonIndex) -> Self
fn from(input: ButtonIndex) -> Self
Converts to this type from the input type.
source§impl From<ButtonIndex> for u32
impl From<ButtonIndex> for u32
source§fn from(input: ButtonIndex) -> Self
fn from(input: ButtonIndex) -> Self
Converts to this type from the input type.
source§impl From<ButtonIndex> for u8
impl From<ButtonIndex> for u8
source§fn from(input: ButtonIndex) -> Self
fn from(input: ButtonIndex) -> Self
Converts to this type from the input type.
source§impl From<u8> for ButtonIndex
impl From<u8> for ButtonIndex
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§fn 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 ==
.source§impl PartialOrd for ButtonIndex
impl PartialOrd for ButtonIndex
source§fn partial_cmp(&self, other: &ButtonIndex) -> Option<Ordering>
fn partial_cmp(&self, other: &ButtonIndex) -> Option<Ordering>
1.0.0 · source§fn 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 moresource§impl Serialize for ButtonIndex
impl Serialize 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