Enum gl_helpers::DataFormat
source · pub enum DataFormat {
Show 15 variants
Red,
RG,
RGB,
BGR,
RGBA,
BGRA,
RedInteger,
RGInteger,
RGBInteger,
BGRInteger,
RGBAInteger,
BGRAInteger,
StencilInteger,
DepthComponent,
DepthStencil,
}
Variants
Red
RG
RGB
BGR
RGBA
BGRA
RedInteger
RGInteger
RGBInteger
BGRInteger
RGBAInteger
BGRAInteger
StencilInteger
DepthComponent
DepthStencil
Trait Implementations
sourceimpl Clone for DataFormat
impl Clone for DataFormat
sourcefn clone(&self) -> DataFormat
fn clone(&self) -> DataFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DataFormat
impl Debug for DataFormat
sourceimpl<'a> From<&'a DataFormat> for GLenum
impl<'a> From<&'a DataFormat> for GLenum
sourcefn from(data_format: &'a DataFormat) -> Self
fn from(data_format: &'a DataFormat) -> Self
Converts to this type from the input type.
sourceimpl From<DataFormat> for GLenum
impl From<DataFormat> for GLenum
sourcefn from(data_format: DataFormat) -> Self
fn from(data_format: DataFormat) -> Self
Converts to this type from the input type.
sourceimpl From<u32> for DataFormat
impl From<u32> for DataFormat
sourceimpl Hash for DataFormat
impl Hash for DataFormat
sourceimpl Ord for DataFormat
impl Ord for DataFormat
sourcefn cmp(&self, other: &DataFormat) -> Ordering
fn cmp(&self, other: &DataFormat) -> Ordering
1.21.0 · sourcefn 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 · sourcefn 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
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<DataFormat> for DataFormat
impl PartialEq<DataFormat> for DataFormat
sourcefn eq(&self, other: &DataFormat) -> bool
fn eq(&self, other: &DataFormat) -> bool
sourceimpl PartialOrd<DataFormat> for DataFormat
impl PartialOrd<DataFormat> for DataFormat
sourcefn partial_cmp(&self, other: &DataFormat) -> Option<Ordering>
fn partial_cmp(&self, other: &DataFormat) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for DataFormat
impl Eq for DataFormat
impl StructuralEq for DataFormat
impl StructuralPartialEq for DataFormat
Auto Trait Implementations
impl RefUnwindSafe for DataFormat
impl Send for DataFormat
impl Sync for DataFormat
impl Unpin for DataFormat
impl UnwindSafe for DataFormat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more