Trait BuildRegion

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

Build a Region

See module-level documentation for context.

Provided Methods§

Source

fn empty(core: &mut Core) -> Region

Build an empty region

Source

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

Build a circle

Source

fn polygon<P, Ps>(points: Ps, core: &mut Core) -> Region
where P: Into<Point<2>>, Ps: IntoIterator<Item = P>, Ps::IntoIter: Clone + ExactSizeIterator,

Build a polygon

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§