Enum axgeom::CastResult
source · pub enum CastResult<N> {
Hit(N),
NoHit,
}
Expand description
Describes if a ray hit a rectangle.
Variants§
Implementations§
source§impl<N> CastResult<N>
impl<N> CastResult<N>
Trait Implementations§
source§impl<N: Clone> Clone for CastResult<N>
impl<N: Clone> Clone for CastResult<N>
source§fn clone(&self) -> CastResult<N>
fn clone(&self) -> CastResult<N>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<N: Debug> Debug for CastResult<N>
impl<N: Debug> Debug for CastResult<N>
source§impl<N: PartialEq> PartialEq<CastResult<N>> for CastResult<N>
impl<N: PartialEq> PartialEq<CastResult<N>> for CastResult<N>
source§fn eq(&self, other: &CastResult<N>) -> bool
fn eq(&self, other: &CastResult<N>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<N: Copy> Copy for CastResult<N>
impl<N: Eq> Eq for CastResult<N>
impl<N> StructuralEq for CastResult<N>
impl<N> StructuralPartialEq for CastResult<N>
Auto Trait Implementations§
impl<N> RefUnwindSafe for CastResult<N>where N: RefUnwindSafe,
impl<N> Send for CastResult<N>where N: Send,
impl<N> Sync for CastResult<N>where N: Sync,
impl<N> Unpin for CastResult<N>where N: Unpin,
impl<N> UnwindSafe for CastResult<N>where N: UnwindSafe,
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