ObjectInterface

Enum ObjectInterface 

Source
pub enum ObjectInterface {
Show 23 variants WlBuffer, WlCallback, WlCompositor, WlDataDevice, WlDataDeviceManager, WlDataOffer, WlDataSource, WlDisplay, WlFixes, WlKeyboard, WlOutput, WlPointer, WlRegion, WlRegistry, WlSeat, WlShell, WlShellSurface, WlShm, WlShmPool, WlSubcompositor, WlSubsurface, WlSurface, WlTouch,
}

Variants§

§

WlBuffer

wl_buffer

§

WlCallback

wl_callback

§

WlCompositor

wl_compositor

§

WlDataDevice

wl_data_device

§

WlDataDeviceManager

wl_data_device_manager

§

WlDataOffer

wl_data_offer

§

WlDataSource

wl_data_source

§

WlDisplay

wl_display

§

WlFixes

wl_fixes

§

WlKeyboard

wl_keyboard

§

WlOutput

wl_output

§

WlPointer

wl_pointer

§

WlRegion

wl_region

§

WlRegistry

wl_registry

§

WlSeat

wl_seat

§

WlShell

wl_shell

§

WlShellSurface

wl_shell_surface

§

WlShm

wl_shm

§

WlShmPool

wl_shm_pool

§

WlSubcompositor

wl_subcompositor

§

WlSubsurface

wl_subsurface

§

WlSurface

wl_surface

§

WlTouch

wl_touch

Implementations§

Source§

impl ObjectInterface

Source

pub fn from_str(interface: &str) -> Option<ObjectInterface>

Source§

impl ObjectInterface

Source

pub const fn name(self) -> &'static str

Source

pub const fn xml_version(self) -> u32

Trait Implementations§

Source§

impl Clone for ObjectInterface

Source§

fn clone(&self) -> ObjectInterface

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ObjectInterface

Source§

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

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

impl Linearize for ObjectInterface

Source§

const LENGTH: usize = 23usize

The cardinality of this type.
Source§

type Storage<__T> = [__T; 23]

[T; Self::LENGTH] Read more
Source§

type CopyStorage<__T> = [__T; 23] where __T: Copy

[T; Self::LENGTH] Read more
Source§

fn linearize(&self) -> usize

Maps this value to the natural numbers. Read more
Source§

unsafe fn from_linear_unchecked(linear: usize) -> Self

The inverse of the linearize function. Read more
Source§

impl PartialEq for ObjectInterface

Source§

fn eq(&self, other: &ObjectInterface) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for ObjectInterface

Source§

impl Eq for ObjectInterface

Source§

impl StructuralPartialEq for ObjectInterface

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
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<Lhs, Rhs> IsntPartialEqExt<Lhs, Rhs> for Lhs
where Lhs: PartialEq<Rhs> + ?Sized, Rhs: ?Sized,

Source§

fn not_eq(&self, other: &Rhs) -> bool

The negation of eq
Source§

fn not_ne(&self, other: &Rhs) -> bool

The negation of ne
Source§

impl<T> LinearizeExt for T
where T: Linearize + ?Sized,

Source§

fn from_linear(linear: usize) -> Option<T>

Source§

fn variants() -> Variants<T>

Returns an iterator over all values of this type.
Source§

fn linearized(&self) -> Linearized<T>

Linearizes this value and stores the value in a Linearized object. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.