pub struct GlVersionInfo {
pub is_gles: bool,
pub major: Option<u32>,
pub minor: Option<u32>,
}Fields§
§is_gles: bool§major: Option<u32>§minor: Option<u32>Implementations§
Source§impl GlVersionInfo
impl GlVersionInfo
pub fn version_at_least(self, major: u32, minor: u32) -> bool
Trait Implementations§
Source§impl Clone for GlVersionInfo
impl Clone for GlVersionInfo
Source§fn clone(&self) -> GlVersionInfo
fn clone(&self) -> GlVersionInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GlVersionInfo
impl Debug for GlVersionInfo
Source§impl Default for GlVersionInfo
impl Default for GlVersionInfo
Source§fn default() -> GlVersionInfo
fn default() -> GlVersionInfo
Returns the “default value” for a type. Read more
Source§impl PartialEq for GlVersionInfo
impl PartialEq for GlVersionInfo
Source§fn eq(&self, other: &GlVersionInfo) -> bool
fn eq(&self, other: &GlVersionInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for GlVersionInfo
impl Eq for GlVersionInfo
impl StructuralPartialEq for GlVersionInfo
Auto Trait Implementations§
impl Freeze for GlVersionInfo
impl RefUnwindSafe for GlVersionInfo
impl Send for GlVersionInfo
impl Sync for GlVersionInfo
impl Unpin for GlVersionInfo
impl UnsafeUnpin for GlVersionInfo
impl UnwindSafe for GlVersionInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more