#[non_exhaustive]pub enum Driver {
Any,
Nop,
Gl,
Gl3,
Gles1,
Gles2,
Webgl,
}
Expand description
Identifiers for underlying hardware drivers that may be used by Cogl for rendering.
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.
Any
Implies no preference for which driver is used
Nop
A No-Op driver.
Gl
An OpenGL driver.
Gl3
An OpenGL driver using the core GL 3.1 profile
Gles1
An OpenGL ES 1.1 driver.
Gles2
An OpenGL ES 2.0 driver.
Webgl
A WebGL driver.
Trait Implementations§
Source§impl Ord for Driver
impl Ord for Driver
Source§impl PartialOrd for Driver
impl PartialOrd for Driver
impl Copy for Driver
impl Eq for Driver
impl StructuralPartialEq for Driver
Auto Trait Implementations§
impl Freeze for Driver
impl RefUnwindSafe for Driver
impl Send for Driver
impl Sync for Driver
impl Unpin for Driver
impl UnwindSafe for Driver
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