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)
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>);
}Two points (start & end)