#[non_exhaustive]pub enum ShaderDataError {
CannotCreate,
OutOfBounds {
index: usize,
},
CannotSetData {
index: usize,
},
CannotReplaceData,
}Expand description
Possible errors that can occur with shader data.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CannotCreate
Cannot create the shader data on the backend side.
OutOfBounds
Index out of bounds.,
CannotSetData
Cannot set data.
CannotReplaceData
Cannot replace data.
Trait Implementations§
Source§impl Clone for ShaderDataError
impl Clone for ShaderDataError
Source§fn clone(&self) -> ShaderDataError
fn clone(&self) -> ShaderDataError
Returns a duplicate 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 ShaderDataError
impl Debug for ShaderDataError
Source§impl Display for ShaderDataError
impl Display for ShaderDataError
Source§impl Error for ShaderDataError
impl Error for ShaderDataError
1.30.0 · 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 PartialEq for ShaderDataError
impl PartialEq for ShaderDataError
impl Eq for ShaderDataError
impl StructuralPartialEq for ShaderDataError
Auto Trait Implementations§
impl Freeze for ShaderDataError
impl RefUnwindSafe for ShaderDataError
impl Send for ShaderDataError
impl Sync for ShaderDataError
impl Unpin for ShaderDataError
impl UnwindSafe for ShaderDataError
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