pub enum MemoryObjectCreationError {
MemoryObjectNotSupported,
MemoryObjectFdNotSupported,
NullResult,
}
Expand description
Describes an error encountered during memory object creation
Variants§
MemoryObjectNotSupported
Driver does not support EXT_memory_object
MemoryObjectFdNotSupported
Driver does not support EXT_memory_object_fd
NullResult
OpenGL returned a null pointer when creating memory object
Trait Implementations§
source§impl Clone for MemoryObjectCreationError
impl Clone for MemoryObjectCreationError
source§fn clone(&self) -> MemoryObjectCreationError
fn clone(&self) -> MemoryObjectCreationError
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 moresource§impl Debug for MemoryObjectCreationError
impl Debug for MemoryObjectCreationError
source§impl Display for MemoryObjectCreationError
impl Display for MemoryObjectCreationError
source§impl Error for MemoryObjectCreationError
impl Error for MemoryObjectCreationError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<MemoryObjectCreationError> for TextureImportError
impl From<MemoryObjectCreationError> for TextureImportError
source§fn from(e: MemoryObjectCreationError) -> Self
fn from(e: MemoryObjectCreationError) -> Self
Converts to this type from the input type.
source§impl PartialEq<MemoryObjectCreationError> for MemoryObjectCreationError
impl PartialEq<MemoryObjectCreationError> for MemoryObjectCreationError
source§fn eq(&self, other: &MemoryObjectCreationError) -> bool
fn eq(&self, other: &MemoryObjectCreationError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MemoryObjectCreationError
impl Eq for MemoryObjectCreationError
impl StructuralEq for MemoryObjectCreationError
impl StructuralPartialEq for MemoryObjectCreationError
Auto Trait Implementations§
impl RefUnwindSafe for MemoryObjectCreationError
impl Send for MemoryObjectCreationError
impl Sync for MemoryObjectCreationError
impl Unpin for MemoryObjectCreationError
impl UnwindSafe for MemoryObjectCreationError
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> Content for Twhere
T: Copy,
impl<T> Content for Twhere T: Copy,
source§unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>where
F: FnOnce(&mut T) -> Result<(), E>,
unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>where F: FnOnce(&mut T) -> Result<(), E>,
Prepares an output buffer, then turns this buffer into an
Owned
.
User-provided closure F
must only write to and not read from &mut Self
.source§fn get_elements_size() -> usize
fn get_elements_size() -> usize
Returns the size of each element.
source§fn to_void_ptr(&self) -> *const ()
fn to_void_ptr(&self) -> *const ()
Produces a pointer to the data.
source§fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
source§fn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.