Enum rich_sdl2_rust::window::SubsystemKind
source · #[non_exhaustive]pub enum SubsystemKind {
Show 13 variants
Windows,
WinRT,
X11,
DirectFB,
Cocoa,
UIKit,
Wayland,
Android,
Vivante,
OS2,
Haiku,
KmsDrm,
RiscOS,
}
Expand description
Supported windowing subsystems.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Windows
HWND handle for Windows.
WinRT
CoreWindow handle for Windows Runtime.
X11
X11 Window handle for UNIX-like.
DirectFB
IDirectFBWindow handle for UNIX-like.
Cocoa
NSWindow handle for macOS.
UIKit
UIWindow handle for iOS.
Wayland
wl_display handle for UNIX-like.
Android
ANativeWindow handle for Android.
Vivante
EGLNativeWindowType handle for Vivante VDK (EGL).
OS2
HWND handle for OS/2.
Haiku
For Haiku OS.
KmsDrm
Device index for libDRM.
RiscOS
For RISC OS.
Trait Implementations§
source§impl Clone for SubsystemKind
impl Clone for SubsystemKind
source§fn clone(&self) -> SubsystemKind
fn clone(&self) -> SubsystemKind
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 SubsystemKind
impl Debug for SubsystemKind
source§impl Hash for SubsystemKind
impl Hash for SubsystemKind
source§impl PartialEq for SubsystemKind
impl PartialEq for SubsystemKind
source§fn eq(&self, other: &SubsystemKind) -> bool
fn eq(&self, other: &SubsystemKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SubsystemKind
impl Eq for SubsystemKind
impl StructuralPartialEq for SubsystemKind
Auto Trait Implementations§
impl RefUnwindSafe for SubsystemKind
impl Send for SubsystemKind
impl Sync for SubsystemKind
impl Unpin for SubsystemKind
impl UnwindSafe for SubsystemKind
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