pub enum BvhError {
MeshMismatch,
InvalidOptions(&'static str),
OutOfMemory,
Store(StoreError),
}Expand description
Errors returned by BVH operations. On any error the BVH is left exactly as it was before the call: every operation reserves the memory it needs before it changes the tree (best-effort steps that run afterwards are skipped silently instead of failing).
Variants§
MeshMismatch
The mesh is not the one this BVH was built from.
InvalidOptions(&'static str)
An option is out of range; the message says which.
OutOfMemory
A memory allocation failed.
Store(StoreError)
The mesh store reported an error.
Trait Implementations§
impl Eq for BvhError
Source§impl Error for BvhError
impl Error for BvhError
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 From<StoreError> for BvhError
impl From<StoreError> for BvhError
Source§fn from(e: StoreError) -> Self
fn from(e: StoreError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for BvhError
Auto Trait Implementations§
impl Freeze for BvhError
impl RefUnwindSafe for BvhError
impl Send for BvhError
impl Sync for BvhError
impl Unpin for BvhError
impl UnsafeUnpin for BvhError
impl UnwindSafe for BvhError
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