Trait Context

Source
pub unsafe trait Context {
    // Required method
    fn as_ptr(&self) -> *const ALCcontext;

    // Provided method
    fn as_mut_ptr(&mut self) -> *mut ALCcontext { ... }
}
Expand description

Internal trait specifying the type is an OpenAL context.

Required Methods§

Source

fn as_ptr(&self) -> *const ALCcontext

Return a *const pointer for the context.

Provided Methods§

Source

fn as_mut_ptr(&mut self) -> *mut ALCcontext

Return a *mut pointer for the context.

Trait Implementations§

Source§

impl Device for dyn Context

Source§

fn as_ptr(&self) -> *const ALCdevice

Return a *const pointer for the device.
Source§

fn as_mut_ptr(&mut self) -> *mut ALCdevice

Return a *mut pointer for the device.

Implementations on Foreign Types§

Source§

impl Context for *const ALCcontext

Source§

impl Context for *mut ALCcontext

Implementors§

Source§

impl<'a> Context for Listener<'a>