Struct ButtonClass

Source
pub struct ButtonClass { /* private fields */ }

Implementations§

Source§

impl ButtonClass

Source

pub fn type(&self) -> DeviceClassType

Source

pub fn len(&self) -> u16

Source

pub fn source(&self) -> Device

Source

pub fn state(&self) -> &[u32]

Source

pub fn labels(&self) -> &[Atom]

Trait Implementations§

Source§

impl Borrow<ButtonClass> for ButtonClassBuf

Source§

fn borrow(&self) -> &ButtonClass

Immutably borrows from an owned value. Read more
Source§

impl Debug for ButtonClass

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ToOwned for ButtonClass

Source§

type Owned = ButtonClassBuf

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> Self::Owned

Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§

fn clone_into(&self, target: &mut Self::Owned)

Uses borrowed data to replace owned data, usually by cloning. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more