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§
Sourcefn circle(
center: impl Into<Point<2>>,
radius: impl Into<Scalar>,
core: &mut Core,
) -> Region
fn circle( center: impl Into<Point<2>>, radius: impl Into<Scalar>, core: &mut Core, ) -> Region
Build a circle
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.