#[non_exhaustive]pub enum Error {
Show 13 variants
InvalidTopology,
IndexOutOfBounds,
InvalidLayout,
InvalidParameter,
UnknownFlags,
UnsupportedVersion,
BufferTooSmall,
InvalidStream,
SizeOverflow,
LimitExceeded,
AllocationFailed,
NumericalFailure,
IndexOverflow,
}Expand description
Checked input, resource, allocation, or numerical failure.
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.
InvalidTopology
A triangle list does not contain a multiple of three indices.
IndexOutOfBounds
An index does not identify a supplied vertex.
InvalidLayout
A vertex view has an invalid stride, width, offset, or length.
InvalidParameter
A parameter is outside the operation’s supported domain.
UnknownFlags
A vertex flag or option mask contains unknown or unsupported bits.
UnsupportedVersion
A codec version is unsupported.
BufferTooSmall
A caller destination is too small.
InvalidStream
An encoded stream is malformed.
SizeOverflow
Size arithmetic or a platform allocation bound overflowed.
LimitExceeded
The per-call storage or counted-work limit was exceeded.
AllocationFailed
A fallible allocation failed.
NumericalFailure
Geometry or an intermediate calculation is non-finite.
IndexOverflow
An output vertex index cannot fit the requested index width.
Trait Implementations§
impl Copy for Error
impl Eq for Error
Source§impl Error for Error
Available on crate feature std only.
impl Error for Error
Available on crate feature
std only.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()
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Forget for Error
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more