Struct glium::backend::glutin::ContextSurfacePair
source · pub struct ContextSurfacePair<T: SurfaceTypeTrait + ResizeableSurface> { /* private fields */ }
Expand description
Wraps a glutin context together with the corresponding Surface. This is necessary so that we can swap buffers and determine the framebuffer size within glium.
Implementations§
source§impl<T: SurfaceTypeTrait + ResizeableSurface> ContextSurfacePair<T>
impl<T: SurfaceTypeTrait + ResizeableSurface> ContextSurfacePair<T>
Trait Implementations§
source§impl<T: SurfaceTypeTrait + ResizeableSurface> Deref for ContextSurfacePair<T>
impl<T: SurfaceTypeTrait + ResizeableSurface> Deref for ContextSurfacePair<T>
§type Target = PossiblyCurrentContext
type Target = PossiblyCurrentContext
The resulting type after dereferencing.
source§fn deref(&self) -> &PossiblyCurrentContext
fn deref(&self) -> &PossiblyCurrentContext
Dereferences the value.
Auto Trait Implementations§
impl<T> RefUnwindSafe for ContextSurfacePair<T>where
T: RefUnwindSafe,
impl<T> !Send for ContextSurfacePair<T>
impl<T> !Sync for ContextSurfacePair<T>
impl<T> Unpin for ContextSurfacePair<T>where
T: Unpin,
impl<T> UnwindSafe for ContextSurfacePair<T>where
T: UnwindSafe,
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