Struct line_2d::LineSegment[][src]

pub struct LineSegment { /* fields omitted */ }

Implementations

impl LineSegment[src]

pub fn try_new(start: Coord, end: Coord) -> Result<Self, StartAndEndAreTheSame>[src]

pub fn new(start: Coord, end: Coord) -> Self[src]

pub fn start(&self) -> Coord[src]

pub fn end(&self) -> Coord[src]

pub fn delta(&self) -> Coord[src]

pub fn num_steps(&self) -> u32[src]

pub fn num_cardinal_steps(&self) -> u32[src]

pub fn reverse(&self) -> Self[src]

pub fn infinite_iter(&self) -> InfiniteIter

Notable traits for InfiniteIter

impl Iterator for InfiniteIter type Item = Coord;
[src]

pub fn infinite_cardinal_iter(&self) -> InfiniteCardinalIter

Notable traits for InfiniteCardinalIter

impl Iterator for InfiniteCardinalIter type Item = Coord;
[src]

pub fn config_infinite_iter(&self, config: InfiniteConfig) -> InfiniteIter

Notable traits for InfiniteIter

impl Iterator for InfiniteIter type Item = Coord;
[src]

pub fn config_infinite_cardinal_iter(
    &self,
    config: InfiniteConfig
) -> InfiniteCardinalIter

Notable traits for InfiniteCardinalIter

impl Iterator for InfiniteCardinalIter type Item = Coord;
[src]

pub fn iter(&self) -> Iter

Notable traits for Iter

impl Iterator for Iter type Item = Coord;
[src]

pub fn cardinal_iter(&self) -> CardinalIter

Notable traits for CardinalIter

impl Iterator for CardinalIter type Item = Coord;
[src]

pub fn config_iter(&self, config: Config) -> Iter

Notable traits for Iter

impl Iterator for Iter type Item = Coord;
[src]

pub fn config_cardinal_iter(&self, config: Config) -> CardinalIter

Notable traits for CardinalIter

impl Iterator for CardinalIter type Item = Coord;
[src]

pub fn infinite_node_iter(&self) -> InfiniteNodeIter

Notable traits for InfiniteNodeIter

impl Iterator for InfiniteNodeIter type Item = Node;
[src]

pub fn infinite_cardinal_node_iter(&self) -> InfiniteCardinalNodeIter[src]

pub fn config_infinite_node_iter(
    &self,
    config: InfiniteConfig
) -> InfiniteNodeIter

Notable traits for InfiniteNodeIter

impl Iterator for InfiniteNodeIter type Item = Node;
[src]

pub fn config_infinite_cardinal_node_iter(
    &self,
    config: InfiniteConfig
) -> InfiniteCardinalNodeIter
[src]

pub fn node_iter(&self) -> NodeIter

Notable traits for NodeIter

impl Iterator for NodeIter type Item = Node;
[src]

pub fn cardinal_node_iter(&self) -> CardinalNodeIter

Notable traits for CardinalNodeIter

impl Iterator for CardinalNodeIter type Item = Node;
[src]

pub fn config_node_iter(&self, config: Config) -> NodeIter

Notable traits for NodeIter

impl Iterator for NodeIter type Item = Node;
[src]

pub fn config_cardinal_node_iter(&self, config: Config) -> CardinalNodeIter

Notable traits for CardinalNodeIter

impl Iterator for CardinalNodeIter type Item = Node;
[src]

Trait Implementations

impl Clone for LineSegment[src]

impl Copy for LineSegment[src]

impl Debug for LineSegment[src]

impl Eq for LineSegment[src]

impl Hash for LineSegment[src]

impl Ord for LineSegment[src]

impl PartialEq<LineSegment> for LineSegment[src]

impl PartialOrd<LineSegment> for LineSegment[src]

impl StructuralEq for LineSegment[src]

impl StructuralPartialEq for LineSegment[src]

Auto Trait Implementations

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.