DoublePointed

Trait DoublePointed 

Source
pub trait DoublePointed {
    // Required methods
    fn start(&self) -> Point<i32>;
    fn end(&self) -> Point<i32>;
    fn set_start(&mut self, p: Point<i32>);
    fn set_end(&mut self, p: Point<i32>);
}
Expand description

Two points (start & end)

Required Methods§

Source

fn start(&self) -> Point<i32>

Return the two defining points.

Source

fn end(&self) -> Point<i32>

Source

fn set_start(&mut self, p: Point<i32>)

Mutably change one of them.

Source

fn set_end(&mut self, p: Point<i32>)

Implementors§