Enum rich_sdl2_rust::window::WindowContextKind
source · #[non_exhaustive]pub enum WindowContextKind {
Software,
OpenGl,
Vulkan,
Metal,
}
Expand description
A kind of a window’s context.
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.
Software
Using software render context.
OpenGl
Using OpenGL render context.
Vulkan
Using Vulkan render context.
Metal
Using Metal render context.
Trait Implementations§
source§impl Clone for WindowContextKind
impl Clone for WindowContextKind
source§fn clone(&self) -> WindowContextKind
fn clone(&self) -> WindowContextKind
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 WindowContextKind
impl Debug for WindowContextKind
source§impl PartialEq for WindowContextKind
impl PartialEq for WindowContextKind
source§fn eq(&self, other: &WindowContextKind) -> bool
fn eq(&self, other: &WindowContextKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for WindowContextKind
impl Eq for WindowContextKind
impl StructuralPartialEq for WindowContextKind
Auto Trait Implementations§
impl RefUnwindSafe for WindowContextKind
impl Send for WindowContextKind
impl Sync for WindowContextKind
impl Unpin for WindowContextKind
impl UnwindSafe for WindowContextKind
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