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, consuming the builder.

Implementors§

source§

impl Build for BuilderImpl

source§

impl Build for lyon_path::path::BuilderWithAttributes

source§

impl<'l> Build for Builder<'l>

source§

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

source§

impl<B: PathBuilder + Build> Build for NoAttributes<B>

§

type PathType = <B as Build>::PathType

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