[][src]Struct gleam::gl::ProfilingGl

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

A wrapper around GL context that times each call and invokes the callback if the call takes longer than the threshold.

Methods

impl<F: 'static + Fn(&str, Duration)> ProfilingGl<F>[src]

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

Trait Implementations

impl<F: Fn(&str, Duration)> Gl for ProfilingGl<F>[src]

Auto Trait Implementations

impl<F> !RefUnwindSafe for ProfilingGl<F>

impl<F> !Send for ProfilingGl<F>

impl<F> !Sync for ProfilingGl<F>

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

impl<F> !UnwindSafe for ProfilingGl<F>

Blanket Implementations

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

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

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

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.