pub enum OpenGlContextOwnership {
Shared,
Dedicated,
Unknown(u32),
}Expand description
Whether a render session’s OpenGL context shares objects with yours.
See mln_open_gl_context_ownership in the
C API reference.
Variants§
The session’s context shares objects with your share_context.
Dedicated
The session’s context shares objects with no other context.
Unknown(u32)
Implementations§
Trait Implementations§
Source§impl Clone for OpenGlContextOwnership
impl Clone for OpenGlContextOwnership
Source§fn clone(&self) -> OpenGlContextOwnership
fn clone(&self) -> OpenGlContextOwnership
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OpenGlContextOwnership
Source§impl Debug for OpenGlContextOwnership
impl Debug for OpenGlContextOwnership
Source§impl Default for OpenGlContextOwnership
impl Default for OpenGlContextOwnership
impl Eq for OpenGlContextOwnership
Source§impl Hash for OpenGlContextOwnership
impl Hash for OpenGlContextOwnership
Source§impl PartialEq for OpenGlContextOwnership
impl PartialEq for OpenGlContextOwnership
impl StructuralPartialEq for OpenGlContextOwnership
Auto Trait Implementations§
impl Freeze for OpenGlContextOwnership
impl RefUnwindSafe for OpenGlContextOwnership
impl Send for OpenGlContextOwnership
impl Sync for OpenGlContextOwnership
impl Unpin for OpenGlContextOwnership
impl UnsafeUnpin for OpenGlContextOwnership
impl UnwindSafe for OpenGlContextOwnership
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more