Vendor things
This commit is contained in:
parent
5deceec006
commit
977e3c17e5
19434 changed files with 10682014 additions and 0 deletions
36
third-party/vendor/wayland-client/src/native_lib/mod.rs
vendored
Normal file
36
third-party/vendor/wayland-client/src/native_lib/mod.rs
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
mod display;
|
||||
mod event_queue;
|
||||
mod proxy;
|
||||
|
||||
pub(crate) use self::display::DisplayInner;
|
||||
pub(crate) use self::event_queue::EventQueueInner;
|
||||
pub(crate) use self::proxy::ProxyInner;
|
||||
|
||||
use crate::{Interface, Main, Proxy};
|
||||
|
||||
/// This type only exists for type-level compatibility
|
||||
/// with the rust implementation.
|
||||
///
|
||||
/// It is an empty enum that cannot be instantiated
|
||||
#[derive(Debug)]
|
||||
pub enum ProxyMap {}
|
||||
|
||||
impl ProxyMap {
|
||||
/// Unusable method only existing for type-level compatibility
|
||||
pub fn get<I: Interface>(&mut self, _: u32) -> Option<Proxy<I>> {
|
||||
match *self {}
|
||||
}
|
||||
|
||||
/// Unusable method only existing for type-level compatibility
|
||||
pub fn get_or_dead<I: Interface>(&mut self, _: u32) -> Proxy<I> {
|
||||
match *self {}
|
||||
}
|
||||
|
||||
/// Unusable method only existing for type-level compatibility
|
||||
pub fn get_new<I: Interface + AsRef<Proxy<I>> + From<Proxy<I>>>(
|
||||
&mut self,
|
||||
_: u32,
|
||||
) -> Option<Main<I>> {
|
||||
match *self {}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue