pub trait BuildRegion {
    // Provided methods
    fn empty(services: &mut Services) -> Region { ... }
    fn circle(
        center: impl Into<Point<2>>,
        radius: impl Into<Scalar>,
        services: &mut Services
    ) -> Region { ... }
    fn polygon<P, Ps>(points: Ps, services: &mut Services) -> Region
       where P: Into<Point<2>>,
             Ps: IntoIterator<Item = P>,
             Ps::IntoIter: Clone + ExactSizeIterator { ... }
}
Expand description

Build a Region

Provided Methods§

source

fn empty(services: &mut Services) -> Region

Build an empty region

source

fn circle( center: impl Into<Point<2>>, radius: impl Into<Scalar>, services: &mut Services ) -> Region

Build a circle

source

fn polygon<P, Ps>(points: Ps, services: &mut Services) -> Regionwhere P: Into<Point<2>>, Ps: IntoIterator<Item = P>, Ps::IntoIter: Clone + ExactSizeIterator,

Build a polygon

Implementors§