Enum glutin::config::ColorBufferType
source · pub enum ColorBufferType {
Rgb {
r_size: u8,
g_size: u8,
b_size: u8,
},
Luminance(u8),
}
Expand description
The buffer type baked by the config.
Variants§
Rgb
Fields
The backing buffer is using RGB format.
Luminance(u8)
The backing buffer is using Luminance.
Trait Implementations§
source§impl Clone for ColorBufferType
impl Clone for ColorBufferType
source§fn clone(&self) -> ColorBufferType
fn clone(&self) -> ColorBufferType
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 ColorBufferType
impl Debug for ColorBufferType
source§impl PartialEq<ColorBufferType> for ColorBufferType
impl PartialEq<ColorBufferType> for ColorBufferType
source§fn eq(&self, other: &ColorBufferType) -> bool
fn eq(&self, other: &ColorBufferType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ColorBufferType
impl Eq for ColorBufferType
impl StructuralEq for ColorBufferType
impl StructuralPartialEq for ColorBufferType
Auto Trait Implementations§
impl RefUnwindSafe for ColorBufferType
impl Send for ColorBufferType
impl Sync for ColorBufferType
impl Unpin for ColorBufferType
impl UnwindSafe for ColorBufferType
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