pub trait Geometry {
    type Point;
    type Line;

    // Required methods
    fn amount_points(&self) -> usize;
    fn amount_lines(&self) -> usize;
    fn point_by_index(&self, index: usize) -> Option<Self::Point>;
    fn line_by_index(&self, index: usize) -> Option<Self::Line>;
    fn index_of_point(&self, point: &Self::Point) -> usize;
    fn index_of_line(&self, point: &Self::Line) -> usize;
    fn is_incident(&self, line: &Self::Line, point: &Self::Point) -> bool;
}

Required Associated Types§

Required Methods§

source

fn amount_points(&self) -> usize

source

fn amount_lines(&self) -> usize

source

fn point_by_index(&self, index: usize) -> Option<Self::Point>

source

fn line_by_index(&self, index: usize) -> Option<Self::Line>

source

fn index_of_point(&self, point: &Self::Point) -> usize

source

fn index_of_line(&self, point: &Self::Line) -> usize

source

fn is_incident(&self, line: &Self::Line, point: &Self::Point) -> bool

Implementors§