Enum glium::buffer::BufferCreationError
source · pub enum BufferCreationError {
OutOfMemory,
BufferTypeNotSupported,
}
Expand description
Error that can happen when creating a buffer.
Variants§
OutOfMemory
Not enough memory to create the buffer.
BufferTypeNotSupported
This type of buffer is not supported.
Trait Implementations§
source§impl Clone for BufferCreationError
impl Clone for BufferCreationError
source§fn clone(&self) -> BufferCreationError
fn clone(&self) -> BufferCreationError
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 BufferCreationError
impl Debug for BufferCreationError
source§impl Display for BufferCreationError
impl Display for BufferCreationError
source§impl Error for BufferCreationError
impl Error for BufferCreationError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
source§impl From<BufferCreationError> for CreationError
impl From<BufferCreationError> for CreationError
source§fn from(err: BufferCreationError) -> CreationError
fn from(err: BufferCreationError) -> CreationError
Converts to this type from the input type.
source§impl From<BufferCreationError> for CreationError
impl From<BufferCreationError> for CreationError
source§fn from(err: BufferCreationError) -> CreationError
fn from(err: BufferCreationError) -> CreationError
Converts to this type from the input type.
source§impl From<BufferCreationError> for CreationError
impl From<BufferCreationError> for CreationError
source§fn from(err: BufferCreationError) -> CreationError
fn from(err: BufferCreationError) -> CreationError
Converts to this type from the input type.
impl Copy for BufferCreationError
Auto Trait Implementations§
impl RefUnwindSafe for BufferCreationError
impl Send for BufferCreationError
impl Sync for BufferCreationError
impl Unpin for BufferCreationError
impl UnwindSafe for BufferCreationError
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§fn read<F, E>(size: usize, f: F) -> Result<T, E>where
F: FnOnce(&mut T) -> Result<(), E>,
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
.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.