Enum luminance::shader::ShaderDataError [−][src]
#[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
Fields
index: usize
Tried (incorrect) index.
Index out of bounds.,
CannotSetData
Fields
index: usize
Tried (incorrect) index.
Cannot set data.
CannotReplaceData
Cannot replace data.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ShaderDataError
impl Send for ShaderDataError
impl Sync for ShaderDataError
impl Unpin for ShaderDataError
impl UnwindSafe for ShaderDataError
Blanket Implementations
Mutably borrows from an owned value. Read more