Trait Walkable

Source
pub trait Walkable<N: Scalar, const D: usize> {
    // Required methods
    fn first_point(&self) -> Option<Point<N, D>>;
    fn last_point(&self) -> Option<Point<N, D>>;

    // Provided method
    fn walk(&self) -> Result<BBoxWalker<N, D>, &str> { ... }
}

Required Methods§

Source

fn first_point(&self) -> Option<Point<N, D>>

Source

fn last_point(&self) -> Option<Point<N, D>>

Provided Methods§

Source

fn walk(&self) -> Result<BBoxWalker<N, D>, &str>

Implementations on Foreign Types§

Source§

impl<N: Copy + Scalar, const D: usize> Walkable<N, D> for RangeInclusive<Point<N, D>>

Source§

fn first_point(&self) -> Option<Point<N, D>>

Source§

fn last_point(&self) -> Option<Point<N, D>>

Source§

impl<N: ClosedAdd + ClosedSub + Copy + One + Scalar, const D: usize> Walkable<N, D> for (Bound<Point<N, D>>, Bound<Point<N, D>>)

Source§

fn first_point(&self) -> Option<Point<N, D>>

Source§

fn last_point(&self) -> Option<Point<N, D>>

Source§

impl<N: ClosedSub + Copy + One + Scalar, const D: usize> Walkable<N, D> for Range<Point<N, D>>

Source§

fn first_point(&self) -> Option<Point<N, D>>

Source§

fn last_point(&self) -> Option<Point<N, D>>

Implementors§

Source§

impl<N: ClosedAdd + ClosedSub + Copy + One + Scalar + Zero, const D: usize> Walkable<N, D> for BBox<N, D>