[−][src]Struct phosphorus::GlEnum
A constant we need to declare.
Fields
name: String
The name
value: String
The value.
We keep it in string form because we want the final declaration within the source to be the same as we saw within gl.xml when possible.
group: Option<String>
Some enums are within enum groups, which helps document possible values that can go to various function arguments.
alias_of: Option<String>
This enum entry is an alias for some other enum.
api: Option<ApiGroup>
GL_ACTIVE_PROGRAM_EXT
has different values depending on the API group.
All other enums are the same between both OGL and GLES.
is_bitmask: bool
If this is set then we should define the const as GLbitfield
(and then
it would support bitwise ops) instead of GLenum
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for GlEnum
impl Send for GlEnum
impl Sync for GlEnum
impl Unpin for GlEnum
impl UnwindSafe for GlEnum
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,