pub enum ContextDescriptor<Def, Alt>where
Def: DeviceInterface,
Alt: DeviceInterface,{
Default(Def::ContextDescriptor),
Alternate(Alt::ContextDescriptor),
}
Expand description
Information needed to create a context. Some APIs call this a “config” or a “pixel format”.
These are local to a device.
Variants§
Default(Def::ContextDescriptor)
The default context descriptor type.
Alternate(Alt::ContextDescriptor)
The alternate context descriptor type.
Trait Implementations§
source§impl<Def, Alt> Clone for ContextDescriptor<Def, Alt>where
Def: DeviceInterface + Clone,
Alt: DeviceInterface + Clone,
Def::ContextDescriptor: Clone,
Alt::ContextDescriptor: Clone,
impl<Def, Alt> Clone for ContextDescriptor<Def, Alt>where
Def: DeviceInterface + Clone,
Alt: DeviceInterface + Clone,
Def::ContextDescriptor: Clone,
Alt::ContextDescriptor: Clone,
source§fn clone(&self) -> ContextDescriptor<Def, Alt>
fn clone(&self) -> ContextDescriptor<Def, Alt>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<Def, Alt> Freeze for ContextDescriptor<Def, Alt>
impl<Def, Alt> RefUnwindSafe for ContextDescriptor<Def, Alt>where
<Def as Device>::ContextDescriptor: RefUnwindSafe,
<Alt as Device>::ContextDescriptor: RefUnwindSafe,
impl<Def, Alt> Send for ContextDescriptor<Def, Alt>
impl<Def, Alt> Sync for ContextDescriptor<Def, Alt>
impl<Def, Alt> Unpin for ContextDescriptor<Def, Alt>
impl<Def, Alt> UnwindSafe for ContextDescriptor<Def, Alt>where
<Def as Device>::ContextDescriptor: UnwindSafe,
<Alt as Device>::ContextDescriptor: 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