[][src]Struct gleam::gl::ErrorReactingGl

pub struct ErrorReactingGl<F> { /* fields omitted */ }

A wrapper around GL context that calls a specified callback on each GL error.

Methods

impl<F: 'static + Fn(&dyn Gl, &str, GLenum)> ErrorReactingGl<F>[src]

pub fn wrap(fns: Rc<dyn Gl>, callback: F) -> Rc<dyn Gl>[src]

Trait Implementations

impl<F: Fn(&dyn Gl, &str, GLenum)> Gl for ErrorReactingGl<F>[src]

Auto Trait Implementations

impl<F> !Sync for ErrorReactingGl<F>

impl<F> !Send for ErrorReactingGl<F>

impl<F> Unpin for ErrorReactingGl<F> where
    F: Unpin

impl<F> !RefUnwindSafe for ErrorReactingGl<F>

impl<F> !UnwindSafe for ErrorReactingGl<F>

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<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]