libcosmic/cosmic/widget/canvas/path/lyon_path/builder/trait.Build.html
2026-04-18 20:11:25 +00:00

16 lines
No EOL
15 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Builds a path."><title>Build in cosmic::widget::canvas::path::lyon_path::builder - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../../../../" data-static-root-path="../../../../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Build</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.PathType" title="PathType">PathType</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.build" title="build">build</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>builder</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../../index.html">cosmic</a>::<wbr><a href="../../../../index.html">widget</a>::<wbr><a href="../../../index.html">canvas</a>::<wbr><a href="../../index.html">path</a>::<wbr><a href="../index.html">lyon_path</a>::<wbr><a href="index.html">builder</a></div><h1>Trait <span class="trait">Build</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub trait Build {
type <a href="#associatedtype.PathType" class="associatedtype">PathType</a>;
// Required method
fn <a href="#tymethod.build" class="fn">build</a>(self) -&gt; Self::<a class="associatedtype" href="trait.Build.html#associatedtype.PathType" title="type cosmic::widget::canvas::path::lyon_path::builder::Build::PathType">PathType</a>;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Builds a path.</p>
<p>This trait is separate from <code>PathBuilder</code> and <code>SvgPathBuilder</code> to allow them to
be used as trait object (which isnt possible when a method returns an associated
type).</p>
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.PathType" class="method"><h4 class="code-header">type <a href="#associatedtype.PathType" class="associatedtype">PathType</a></h4></section></summary><div class="docblock"><p>The type of object that is created by this builder.</p>
</div></details></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.build" class="method"><h4 class="code-header">fn <a href="#tymethod.build" class="fn">build</a>(self) -&gt; Self::<a class="associatedtype" href="trait.Build.html#associatedtype.PathType" title="type cosmic::widget::canvas::path::lyon_path::builder::Build::PathType">PathType</a></h4></section></summary><div class="docblock"><p>Builds a path object, consuming the builder.</p>
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-Build-for-BuilderImpl" class="impl"><a href="#impl-Build-for-BuilderImpl" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</a> for <a class="struct" href="../struct.BuilderImpl.html" title="struct cosmic::widget::canvas::path::lyon_path::BuilderImpl">BuilderImpl</a></h3></section></summary><div class="impl-items"><section id="associatedtype.PathType-1" class="associatedtype trait-impl"><a href="#associatedtype.PathType-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.PathType" class="associatedtype">PathType</a> = <a class="struct" href="../struct.Path.html" title="struct cosmic::widget::canvas::path::lyon_path::Path">Path</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Build-for-BuilderWithAttributes" class="impl"><a href="#impl-Build-for-BuilderWithAttributes" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</a> for cosmic::widget::canvas::path::lyon_path::<a class="struct" href="../struct.BuilderWithAttributes.html" title="struct cosmic::widget::canvas::path::lyon_path::BuilderWithAttributes">BuilderWithAttributes</a></h3></section></summary><div class="impl-items"><section id="associatedtype.PathType-2" class="associatedtype trait-impl"><a href="#associatedtype.PathType-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.PathType" class="associatedtype">PathType</a> = <a class="struct" href="../struct.Path.html" title="struct cosmic::widget::canvas::path::lyon_path::Path">Path</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Build-for-Builder%3C'l%3E" class="impl"><a href="#impl-Build-for-Builder%3C'l%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'l&gt; <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</a> for <a class="struct" href="../path_buffer/struct.Builder.html" title="struct cosmic::widget::canvas::path::lyon_path::path_buffer::Builder">Builder</a>&lt;'l&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.PathType-3" class="associatedtype trait-impl"><a href="#associatedtype.PathType-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.PathType" class="associatedtype">PathType</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Build-for-BuilderWithAttributes%3C'l%3E" class="impl"><a href="#impl-Build-for-BuilderWithAttributes%3C'l%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'l&gt; <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</a> for cosmic::widget::canvas::path::lyon_path::path_buffer::<a class="struct" href="../path_buffer/struct.BuilderWithAttributes.html" title="struct cosmic::widget::canvas::path::lyon_path::path_buffer::BuilderWithAttributes">BuilderWithAttributes</a>&lt;'l&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.PathType-4" class="associatedtype trait-impl"><a href="#associatedtype.PathType-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.PathType" class="associatedtype">PathType</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Build-for-NoAttributes%3CB%3E" class="impl"><a href="#impl-Build-for-NoAttributes%3CB%3E" class="anchor">§</a><h3 class="code-header">impl&lt;B&gt; <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</a> for <a class="struct" href="struct.NoAttributes.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::NoAttributes">NoAttributes</a>&lt;B&gt;<div class="where">where
B: <a class="trait" href="trait.PathBuilder.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::PathBuilder">PathBuilder</a> + <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.PathType-5" class="associatedtype trait-impl"><a href="#associatedtype.PathType-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.PathType" class="associatedtype">PathType</a> = &lt;B as <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</a>&gt;::<a class="associatedtype" href="trait.Build.html#associatedtype.PathType" title="type cosmic::widget::canvas::path::lyon_path::builder::Build::PathType">PathType</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Build-for-Flattened%3CBuilder%3E" class="impl"><a href="#impl-Build-for-Flattened%3CBuilder%3E" class="anchor">§</a><h3 class="code-header">impl&lt;Builder&gt; <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</a> for <a class="struct" href="struct.Flattened.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::Flattened">Flattened</a>&lt;Builder&gt;<div class="where">where
Builder: <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.PathType-6" class="associatedtype trait-impl"><a href="#associatedtype.PathType-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.PathType" class="associatedtype">PathType</a> = &lt;Builder as <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</a>&gt;::<a class="associatedtype" href="trait.Build.html#associatedtype.PathType" title="type cosmic::widget::canvas::path::lyon_path::builder::Build::PathType">PathType</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Build-for-WithSvg%3CBuilder%3E" class="impl"><a href="#impl-Build-for-WithSvg%3CBuilder%3E" class="anchor">§</a><h3 class="code-header">impl&lt;Builder&gt; <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</a> for <a class="struct" href="struct.WithSvg.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::WithSvg">WithSvg</a>&lt;Builder&gt;<div class="where">where
Builder: <a class="trait" href="trait.PathBuilder.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::PathBuilder">PathBuilder</a> + <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.PathType-7" class="associatedtype trait-impl"><a href="#associatedtype.PathType-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.PathType" class="associatedtype">PathType</a> = &lt;Builder as <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</a>&gt;::<a class="associatedtype" href="trait.Build.html#associatedtype.PathType" title="type cosmic::widget::canvas::path::lyon_path::builder::Build::PathType">PathType</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Build-for-Transformed%3CBuilder,+Transform%3E" class="impl"><a href="#impl-Build-for-Transformed%3CBuilder,+Transform%3E" class="anchor">§</a><h3 class="code-header">impl&lt;Builder, Transform&gt; <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</a> for <a class="struct" href="struct.Transformed.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::Transformed">Transformed</a>&lt;Builder, Transform&gt;<div class="where">where
Builder: <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.PathType-8" class="associatedtype trait-impl"><a href="#associatedtype.PathType-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.PathType" class="associatedtype">PathType</a> = &lt;Builder as <a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</a>&gt;::<a class="associatedtype" href="trait.Build.html#associatedtype.PathType" title="type cosmic::widget::canvas::path::lyon_path::builder::Build::PathType">PathType</a></h4></section></div></details></div><script src="../../../../../../trait.impl/lyon_path/builder/trait.Build.js" data-ignore-extern-crates="lyon_path" async></script></section></div></main></body></html>