[][src]Struct phosphorus::GlEnum

pub struct GlEnum {
    pub name: String,
    pub value: String,
    pub group: Option<String>,
    pub alias_of: Option<String>,
    pub api: Option<ApiGroup>,
    pub is_bitmask: bool,
}

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

impl Clone for GlEnum[src]

impl Debug for GlEnum[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.