pub enum ShowcaseWebCanvasContextFamily {
WebGl2,
Canvas2d,
}Expand description
Locked HTML5 <canvas> context family (a single <canvas> can NEVER bind both WebGl2 and Canvas2d).
Variants§
WebGl2
Canvas locked to webgl2 (GpuDirect or GpuUpload).
Canvas2d
Canvas locked to 2d (Canvas2d fallback).
Trait Implementations§
impl Copy for ShowcaseWebCanvasContextFamily
impl Eq for ShowcaseWebCanvasContextFamily
Source§impl Ord for ShowcaseWebCanvasContextFamily
impl Ord for ShowcaseWebCanvasContextFamily
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for ShowcaseWebCanvasContextFamily
impl PartialOrd for ShowcaseWebCanvasContextFamily
impl StructuralPartialEq for ShowcaseWebCanvasContextFamily
Auto Trait Implementations§
impl Forget for ShowcaseWebCanvasContextFamily
impl Freeze for ShowcaseWebCanvasContextFamily
impl Move for ShowcaseWebCanvasContextFamily
impl RefUnwindSafe for ShowcaseWebCanvasContextFamily
impl Send for ShowcaseWebCanvasContextFamily
impl Sync for ShowcaseWebCanvasContextFamily
impl Unpin for ShowcaseWebCanvasContextFamily
impl UnsafeUnpin for ShowcaseWebCanvasContextFamily
impl UnwindSafe for ShowcaseWebCanvasContextFamily
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.