#[non_exhaustive]pub enum SurfaceFormat {
Invalid = 0,
_1A = 1,
_8A = 8,
_16_555 = 16,
_32XRGB = 32,
_16_565 = 80,
_32ARGB = 96,
}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.
Trait Implementations§
Source§impl Clone for SurfaceFormat
impl Clone for SurfaceFormat
Source§fn clone(&self) -> SurfaceFormat
fn clone(&self) -> SurfaceFormat
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 SurfaceFormat
Source§impl Debug for SurfaceFormat
impl Debug for SurfaceFormat
impl Eq for SurfaceFormat
Source§impl PartialEq for SurfaceFormat
impl PartialEq for SurfaceFormat
Source§fn eq(&self, other: &SurfaceFormat) -> bool
fn eq(&self, other: &SurfaceFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SurfaceFormat
Auto Trait Implementations§
impl Freeze for SurfaceFormat
impl RefUnwindSafe for SurfaceFormat
impl Send for SurfaceFormat
impl Sync for SurfaceFormat
impl Unpin for SurfaceFormat
impl UnsafeUnpin for SurfaceFormat
impl UnwindSafe for SurfaceFormat
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