#[non_exhaustive]pub enum RenderKind {
OpenGl,
Software,
}Expand description
Which render backend is attached — what
Engine::attached_render reports.
Non-exhaustive: a future backend (e.g. Vulkan, if mpv ever exposes it through the render API) is an additive variant, not a breaking change.
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.
OpenGl
The OpenGL backend
(Engine::attach_gl_render).
Software
The software backend
(Engine::attach_sw_render).
Trait Implementations§
Source§impl Clone for RenderKind
impl Clone for RenderKind
Source§fn clone(&self) -> RenderKind
fn clone(&self) -> RenderKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RenderKind
Source§impl Debug for RenderKind
impl Debug for RenderKind
impl Eq for RenderKind
Source§impl PartialEq for RenderKind
impl PartialEq for RenderKind
impl StructuralPartialEq for RenderKind
Auto Trait Implementations§
impl Freeze for RenderKind
impl RefUnwindSafe for RenderKind
impl Send for RenderKind
impl Sync for RenderKind
impl Unpin for RenderKind
impl UnsafeUnpin for RenderKind
impl UnwindSafe for RenderKind
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