pub enum StaticAABB2DIndexBuildError {
ItemCountError {
added: usize,
expected: usize,
},
NumericCastError,
}
Expand description
Error type for errors that may be returned in attempting to build the index.
Variants§
ItemCountError
Fields
Error for the case when the number of items added does not match the size given at construction.
NumericCastError
Error for the case when the numeric type T used for the index fails to cast to f64.
Trait Implementations§
source§impl Debug for StaticAABB2DIndexBuildError
impl Debug for StaticAABB2DIndexBuildError
source§impl Error for StaticAABB2DIndexBuildError
impl Error for StaticAABB2DIndexBuildError
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
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<StaticAABB2DIndexBuildError> for StaticAABB2DIndexBuildError
impl PartialEq<StaticAABB2DIndexBuildError> for StaticAABB2DIndexBuildError
source§fn eq(&self, other: &StaticAABB2DIndexBuildError) -> bool
fn eq(&self, other: &StaticAABB2DIndexBuildError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StaticAABB2DIndexBuildError
Auto Trait Implementations§
impl RefUnwindSafe for StaticAABB2DIndexBuildError
impl Send for StaticAABB2DIndexBuildError
impl Sync for StaticAABB2DIndexBuildError
impl Unpin for StaticAABB2DIndexBuildError
impl UnwindSafe for StaticAABB2DIndexBuildError
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