Trait lyon_path::builder::Build

source ·
pub trait Build {
    type PathType;

    // Required method
    fn build(self) -> Self::PathType;
}
Expand description

Builds a path.

This trait is separate from PathBuilder and SvgPathBuilder to allow them to be used as trait object (which isn’t possible when a method returns an associated type).

Required Associated Types§

source

type PathType

The type of object that is created by this builder.

Required Methods§

source

fn build(self) -> Self::PathType

Builds a path object and resets the builder so that it can be used again.

Implementors§

source§

impl Build for lyon_path::path::Builder

source§

impl<'l> Build for lyon_path::path_buffer::Builder<'l>

source§

impl<Builder: Build> Build for Flattened<Builder>

§

type PathType = <Builder as Build>::PathType

source§

impl<Builder: Build, Transform> Build for Transformed<Builder, Transform>

§

type PathType = <Builder as Build>::PathType

source§

impl<Builder: PathBuilder + Build> Build for WithSvg<Builder>

§

type PathType = <Builder as Build>::PathType