[][src]Enum axgeom::CastResult

#[must_use]pub enum CastResult<N> {
    Hit(N),
    NoHit,
}

Describes if a ray hit a rectangle.

Variants

Hit(N)
NoHit

Implementations

impl<N> CastResult<N>[src]

pub fn map<X>(self, func: impl FnMut(N) -> X) -> CastResult<X>[src]

pub fn unwrap(self) -> N[src]

Trait Implementations

impl<N: Clone> Clone for CastResult<N>[src]

impl<N: Copy> Copy for CastResult<N>[src]

impl<N: Debug> Debug for CastResult<N>[src]

impl<N: Eq> Eq for CastResult<N>[src]

impl<N: PartialEq> PartialEq<CastResult<N>> for CastResult<N>[src]

impl<N> StructuralEq for CastResult<N>[src]

impl<N> StructuralPartialEq for CastResult<N>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.