pub trait Build {
    type PathType;

    // Required method
    fn build(self) -> Self::PathType;
}
Available on crate feature canvas only.
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§

type PathType

The type of object that is created by this builder.

Required Methods§

fn build(self) -> Self::PathType

Builds a path object, consuming the builder.

Implementations on Foreign Types§

§

impl<'l> Build for FillBuilder<'l>

§

type PathType = Result<(), TessellationError>

§

fn build(self) -> Result<(), TessellationError>

§

impl<'l> Build for PathWalker<'l>

§

type PathType = ()

§

fn build(self)

§

impl<'l> Build for StrokeBuilder<'l>

§

type PathType = Result<(), TessellationError>

§

fn build(self) -> Result<(), TessellationError>

Implementors§

§

impl Build for BuilderImpl

§

impl Build for iced::widget::canvas::path::lyon_path::path::BuilderWithAttributes

§

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

§

impl<'l> Build for iced::widget::canvas::path::lyon_path::path_buffer::BuilderWithAttributes<'l>

§

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

§

type PathType = <B as Build>::PathType

§

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

§

type PathType = <Builder as Build>::PathType

§

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

§

type PathType = <Builder as Build>::PathType

§

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

§

type PathType = <Builder as Build>::PathType