pub enum RayFail {
Parallel,
NoHit,
NoBars,
}Expand description
Raycast failure states.
Variants§
Parallel
Ray and Barrier are parallel; cannot collide.
Universal
NoHit
Did not hit any colliders.
Universal
NoBars
No Barrier was provided; nothing to collide with.
*Exclusive to cast_wide
Trait Implementations§
Source§impl Error for RayFail
impl Error for RayFail
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 RayFail
Auto Trait Implementations§
impl Freeze for RayFail
impl RefUnwindSafe for RayFail
impl Send for RayFail
impl Sync for RayFail
impl Unpin for RayFail
impl UnwindSafe for RayFail
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