[][src]Enum offscreen_gl_context::GLVersion

pub enum GLVersion {
    Major(u8),
    MajorMinor(u8u8),
}

Describes the OpenGL version that is requested when a context is created.

Variants

Major(u8)

Request a specific major version The minor version is automatically selected.

MajorMinor(u8u8)

Request a specific major and minor version version.

Methods

impl GLVersion[src]

pub fn major_version(&self) -> u8[src]

Trait Implementations

impl Clone for GLVersion[src]

impl Copy for GLVersion[src]

impl Debug for GLVersion[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]