Enum gfx::UpdateError
source · pub enum UpdateError<T> {
OutOfBounds {
target: T,
source: T,
},
UnitCountMismatch {
target: usize,
slice: usize,
},
InvalidUsage(Usage),
}
Expand description
An error occuring in buffer/texture updates.
Variants§
Trait Implementations§
source§impl<T: Clone> Clone for UpdateError<T>
impl<T: Clone> Clone for UpdateError<T>
source§fn clone(&self) -> UpdateError<T>
fn clone(&self) -> UpdateError<T>
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<T: Debug> Debug for UpdateError<T>
impl<T: Debug> Debug for UpdateError<T>
source§impl<T: Any + Debug + Display> Error for UpdateError<T>
impl<T: Any + Debug + Display> Error for UpdateError<T>
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<T: PartialEq> PartialEq<UpdateError<T>> for UpdateError<T>
impl<T: PartialEq> PartialEq<UpdateError<T>> for UpdateError<T>
source§fn eq(&self, other: &UpdateError<T>) -> bool
fn eq(&self, other: &UpdateError<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.