pub enum SpatialError {
InvalidRay,
InvalidDistance,
InvalidBounds(usize),
InvalidCamera,
}Expand description
Invalid, nonfinite, or unsupported spatial input.
Variants§
InvalidRay
Ray origin/direction is nonfinite or direction has no usable length.
InvalidDistance
A maximum query distance must be nonnegative and not NaN.
InvalidBounds(usize)
One box has nonfinite coordinates or a reversed axis.
InvalidCamera
Camera, clipping distances, or viewport geometry is invalid.
Trait Implementations§
Source§impl Clone for SpatialError
impl Clone for SpatialError
Source§fn clone(&self) -> SpatialError
fn clone(&self) -> SpatialError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SpatialError
Source§impl Debug for SpatialError
impl Debug for SpatialError
Source§impl Display for SpatialError
impl Display for SpatialError
impl Eq for SpatialError
Source§impl Error for SpatialError
impl Error for SpatialError
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 SpatialError
impl PartialEq for SpatialError
impl StructuralPartialEq for SpatialError
Auto Trait Implementations§
impl Freeze for SpatialError
impl RefUnwindSafe for SpatialError
impl Send for SpatialError
impl Sync for SpatialError
impl Unpin for SpatialError
impl UnsafeUnpin for SpatialError
impl UnwindSafe for SpatialError
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