Enum components::platform::core::GLES2ContextError
source · [−]#[non_exhaustive]
pub enum GLES2ContextError {
Unsupported,
Driver,
}
Expand description
Error codes that relate to the gles2_context api.
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.
Unsupported
Creating GLES2 contexts
isn’t supported. Applications should use has_feature
to
check for the FeatureID::OglFeatureIdGles2Context
.
Driver
An underlying driver error occured.
Trait Implementations
sourceimpl Clone for GLES2ContextError
impl Clone for GLES2ContextError
sourcefn clone(&self) -> GLES2ContextError
fn clone(&self) -> GLES2ContextError
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 more
sourceimpl Debug for GLES2ContextError
impl Debug for GLES2ContextError
sourceimpl Display for GLES2ContextError
impl Display for GLES2ContextError
sourceimpl Hash for GLES2ContextError
impl Hash for GLES2ContextError
sourceimpl Ord for GLES2ContextError
impl Ord for GLES2ContextError
sourceimpl PartialOrd<GLES2ContextError> for GLES2ContextError
impl PartialOrd<GLES2ContextError> for GLES2ContextError
sourcefn partial_cmp(&self, other: &GLES2ContextError) -> Option<Ordering>
fn partial_cmp(&self, other: &GLES2ContextError) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
impl Copy for GLES2ContextError
impl Eq for GLES2ContextError
impl StructuralEq for GLES2ContextError
impl StructuralPartialEq for GLES2ContextError
Auto Trait Implementations
impl RefUnwindSafe for GLES2ContextError
impl Send for GLES2ContextError
impl Sync for GLES2ContextError
impl Unpin for GLES2ContextError
impl UnwindSafe for GLES2ContextError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
impl<T> Clamp<T> for T where
T: PartialOrd<T>,
impl<T> Clamp<T> for T where
T: PartialOrd<T>,
fn clamped(self, min: T, max: T) -> T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.