BuildFace

Trait BuildFace 

Source
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§

Source

fn unbound(surface: Handle<Surface>, core: &mut Core) -> Face

Build a face with an empty exterior, no interiors, and no color

Source

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

Build a circle

Source

fn triangle(points: [impl Into<Point<3>>; 3], core: &mut Core) -> Polygon<3>

Build a triangle

Source

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,

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§