pub trait BuildFace {
// Provided methods
fn unbound(surface: Handle<Surface>, core: &mut Core) -> Face { ... }
fn circle(
surface: Handle<Surface>,
center: impl Into<Point<2>>,
radius: impl Into<Scalar>,
core: &mut Core,
) -> Face { ... }
fn triangle(points: [impl Into<Point<3>>; 3], core: &mut Core) -> Polygon<3> { ... }
fn polygon<P, Ps>(
surface: Handle<Surface>,
points: Ps,
core: &mut Core,
) -> Face
where P: Into<Point<2>>,
Ps: IntoIterator<Item = P>,
Ps::IntoIter: Clone + ExactSizeIterator { ... }
}Expand description
Build a Face
See module-level documentation for context.
Provided Methods§
Sourcefn unbound(surface: Handle<Surface>, core: &mut Core) -> Face
fn unbound(surface: Handle<Surface>, core: &mut Core) -> Face
Build a face with an empty exterior, no interiors, and no color
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".