pub enum ViewCreationError {
OutOfMemory(OutOfMemory),
UnsupportedFormat(Option<Format>),
}
Expand description
Error creating a buffer view.
Variants§
OutOfMemory(OutOfMemory)
Out of either host or device memory.
UnsupportedFormat(Option<Format>)
Buffer view format is not supported.
Trait Implementations§
Source§impl Clone for ViewCreationError
impl Clone for ViewCreationError
Source§fn clone(&self) -> ViewCreationError
fn clone(&self) -> ViewCreationError
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 ViewCreationError
impl Debug for ViewCreationError
Source§impl Display for ViewCreationError
impl Display for ViewCreationError
Source§impl Error for ViewCreationError
impl Error for ViewCreationError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<OutOfMemory> for ViewCreationError
impl From<OutOfMemory> for ViewCreationError
Source§fn from(source: OutOfMemory) -> Self
fn from(source: OutOfMemory) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ViewCreationError
impl PartialEq for ViewCreationError
impl StructuralPartialEq for ViewCreationError
Auto Trait Implementations§
impl Freeze for ViewCreationError
impl RefUnwindSafe for ViewCreationError
impl Send for ViewCreationError
impl Sync for ViewCreationError
impl Unpin for ViewCreationError
impl UnwindSafe for ViewCreationError
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