Struct glium::Version [] [src]

pub struct Version(pub Api, pub u8, pub u8);

Describes a version.

A version can only be compared to another version if they belong to the same API. For example, both Version(Gl, 3, 0) >= Version(GlEs, 3, 0) and Version(GlEs, 3, 0) >= Version(Gl, 3, 0) return false.

Trait Implementations

impl PartialOrd for Version

fn partial_cmp(&self, other: &Version) -> Option<Ordering>

fn lt(&self, other: &Rhs) -> bool

fn le(&self, other: &Rhs) -> bool

fn gt(&self, other: &Rhs) -> bool

fn ge(&self, other: &Rhs) -> bool

Derived Implementations

impl Eq for Version

impl PartialEq for Version

fn eq(&self, __arg_0: &Version) -> bool

fn ne(&self, __arg_0: &Version) -> bool

impl Clone for Version

fn clone(&self) -> Version

fn clone_from(&mut self, source: &Self)

impl Copy for Version

impl Debug for Version

fn fmt(&self, __arg_0: &mut Formatter) -> Result