pub trait NotCurrentGlContext: Sealed {
    type PossiblyCurrentContext: PossiblyCurrentGlContext;

    // Required method
    fn treat_as_possibly_current(self) -> Self::PossiblyCurrentContext;
}
Expand description

A trait to group common not current operations.

Required Associated Types§

source

type PossiblyCurrentContext: PossiblyCurrentGlContext

The type of possibly current context.

Required Methods§

source

fn treat_as_possibly_current(self) -> Self::PossiblyCurrentContext

Treat the not current context as possibly current. The operation is safe because the possibly current context is more restricted and not guaranteed to be current.

Implementors§