This commit is contained in:
wash2 2026-04-18 20:11:25 +00:00
commit 0fa87f2b35
16382 changed files with 734838 additions and 0 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,3 @@
<!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="Fill `Geometry` with a certain style."><title>cosmic::widget::canvas::fill - 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 mod"><!--[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="#">Module fill</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget::<wbr>canvas</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></div><h1>Module <span>fill</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><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Fill <a href="../../../iced/daemon/program/graphics/geometry/trait.Renderer.html#associatedtype.Geometry" title="associated type cosmic::iced::daemon::program::graphics::geometry::Renderer::Geometry"><code>Geometry</code></a> with a certain style.</p>
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Fill.html" title="struct cosmic::widget::canvas::fill::Fill">Fill</a></dt><dd>The style used to fill geometry.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.Rule.html" title="enum cosmic::widget::canvas::fill::Rule">Rule</a></dt><dd>The fill rule defines how to determine what is inside and what is outside of
a shape.</dd><dt><a class="enum" href="enum.Style.html" title="enum cosmic::widget::canvas::fill::Style">Style</a></dt><dd>The coloring style of some drawing.</dd></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"enum":["Rule","Style"],"struct":["Fill"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,2 @@
<!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="Creates a new `Packed` gradient for use in shader code."><title>pack in cosmic::widget::canvas::gradient - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>gradient</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">gradient</a></div><h1>Function <span class="fn">pack</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 fn pack(gradient: &amp;<a class="enum" href="../../../iced/enum.Gradient.html" title="enum cosmic::iced::Gradient">Gradient</a>, bounds: <a class="struct" href="../../../iced/struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>) -&gt; <a class="struct" href="struct.Packed.html" title="struct cosmic::widget::canvas::gradient::Packed">Packed</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <a href="struct.Packed.html" title="struct cosmic::widget::canvas::gradient::Packed"><code>Packed</code></a> gradient for use in shader code.</p>
</div></details></section></div></main></body></html>

View file

@ -0,0 +1,3 @@
<!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="A gradient that can be used as a fill for some geometry."><title>cosmic::widget::canvas::gradient - 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 mod"><!--[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="#">Module gradient</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget::<wbr>canvas</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></div><h1>Module <span>gradient</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><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A gradient that can be used as a fill for some geometry.</p>
<p>For a gradient that you can use as a background variant for a widget, see <a href="../enum.Gradient.html" title="enum cosmic::widget::canvas::Gradient"><code>Gradient</code></a>.</p>
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Linear.html" title="struct cosmic::widget::canvas::gradient::Linear">Linear</a></dt><dd>A linear gradient.</dd><dt><a class="struct" href="struct.Packed.html" title="struct cosmic::widget::canvas::gradient::Packed">Packed</a></dt><dd>Packed <a href="../enum.Gradient.html" title="enum cosmic::widget::canvas::Gradient"><code>Gradient</code></a> data for use in shader code.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.Gradient.html" title="enum cosmic::widget::canvas::gradient::Gradient">Gradient</a></dt><dd>A fill which linearly interpolates colors along a direction.</dd></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.pack.html" title="fn cosmic::widget::canvas::gradient::pack">pack</a></dt><dd>Creates a new <a href="struct.Packed.html" title="struct cosmic::widget::canvas::gradient::Packed"><code>Packed</code></a> gradient for use in shader code.</dd></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"enum":["Gradient"],"fn":["pack"],"struct":["Linear","Packed"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,45 @@
<!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="Canvases can be leveraged to draw interactive 2D graphics."><title>cosmic::widget::canvas - 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 mod"><!--[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="#">Module canvas</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example-drawing-a-simple-circle" title="Example: Drawing a Simple Circle">Example: Drawing a Simple Circle</a></li></ul><h3><a href="#modules">Module Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#traits" title="Traits">Traits</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget</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></div><h1>Module <span>canvas</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><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Canvases can be leveraged to draw interactive 2D graphics.</p>
<h2 id="example-drawing-a-simple-circle"><a class="doc-anchor" href="#example-drawing-a-simple-circle">§</a>Example: Drawing a Simple Circle</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>iced::mouse;
<span class="kw">use </span>iced::widget::canvas;
<span class="kw">use </span>iced::{Color, Rectangle, Renderer, Theme};
<span class="comment">// First, we define the data we need for drawing
</span><span class="attr">#[derive(Debug)]
</span><span class="kw">struct </span>Circle {
radius: f32,
}
<span class="comment">// Then, we implement the `Program` trait
</span><span class="kw">impl</span>&lt;Message&gt; canvas::Program&lt;Message&gt; <span class="kw">for </span>Circle {
<span class="comment">// No internal state
</span><span class="kw">type </span>State = ();
<span class="kw">fn </span>draw(
<span class="kw-2">&amp;</span><span class="self">self</span>,
_state: <span class="kw-2">&amp;</span>(),
renderer: <span class="kw-2">&amp;</span>Renderer,
_theme: <span class="kw-2">&amp;</span>Theme,
bounds: Rectangle,
_cursor: mouse::Cursor
) -&gt; Vec&lt;canvas::Geometry&gt; {
<span class="comment">// We prepare a new `Frame`
</span><span class="kw">let </span><span class="kw-2">mut </span>frame = canvas::Frame::new(renderer, bounds.size());
<span class="comment">// We create a `Path` representing a simple circle
</span><span class="kw">let </span>circle = canvas::Path::circle(frame.center(), <span class="self">self</span>.radius);
<span class="comment">// And fill it with some color
</span>frame.fill(<span class="kw-2">&amp;</span>circle, Color::BLACK);
<span class="comment">// Then, we produce the geometry
</span><span class="macro">vec!</span>[frame.into_geometry()]
}
}
<span class="comment">// Finally, we simply use our `Circle` to create the `Canvas`!
</span><span class="kw">fn </span>view&lt;<span class="lifetime">'a</span>, Message: <span class="lifetime">'a</span>&gt;(_state: <span class="kw-2">&amp;</span><span class="lifetime">'a </span>State) -&gt; Element&lt;<span class="lifetime">'a</span>, Message&gt; {
canvas(Circle { radius: <span class="number">50.0 </span>}).into()
}</code></pre></div>
</div></details><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="fill/index.html" title="mod cosmic::widget::canvas::fill">fill</a></dt><dd>Fill <a href="../../iced/daemon/program/graphics/geometry/trait.Renderer.html#associatedtype.Geometry" title="associated type cosmic::iced::daemon::program::graphics::geometry::Renderer::Geometry"><code>Geometry</code></a> with a certain style.</dd><dt><a class="mod" href="gradient/index.html" title="mod cosmic::widget::canvas::gradient">gradient</a></dt><dd>A gradient that can be used as a fill for some geometry.</dd><dt><a class="mod" href="path/index.html" title="mod cosmic::widget::canvas::path">path</a></dt><dd>Build different kinds of 2D shapes.</dd><dt><a class="mod" href="stroke/index.html" title="mod cosmic::widget::canvas::stroke">stroke</a></dt><dd>Create lines from a <a href="struct.Path.html" title="struct cosmic::widget::canvas::Path"><code>Path</code></a> and assigns them various attributes/styles.</dd></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Action.html" title="struct cosmic::widget::canvas::Action">Action</a></dt><dd>A runtime action that can be performed by some widgets.</dd><dt><a class="struct" href="struct.Canvas.html" title="struct cosmic::widget::canvas::Canvas">Canvas</a></dt><dd>A widget capable of drawing 2D graphics.</dd><dt><a class="struct" href="struct.Fill.html" title="struct cosmic::widget::canvas::Fill">Fill</a></dt><dd>The style used to fill geometry.</dd><dt><a class="struct" href="struct.Group.html" title="struct cosmic::widget::canvas::Group">Group</a></dt><dd>A cache group.</dd><dt><a class="struct" href="struct.Image.html" title="struct cosmic::widget::canvas::Image">Image</a></dt><dd>A raster image that can be drawn.</dd><dt><a class="struct" href="struct.LineDash.html" title="struct cosmic::widget::canvas::LineDash">Line<wbr>Dash</a></dt><dd>The dash pattern used when stroking the line.</dd><dt><a class="struct" href="struct.Path.html" title="struct cosmic::widget::canvas::Path">Path</a></dt><dd>An immutable set of points that may or may not be connected.</dd><dt><a class="struct" href="struct.Stroke.html" title="struct cosmic::widget::canvas::Stroke">Stroke</a></dt><dd>The style of a stroke.</dd><dt><a class="struct" href="struct.Text.html" title="struct cosmic::widget::canvas::Text">Text</a></dt><dd>A bunch of text that can be drawn to a canvas</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.Event.html" title="enum cosmic::widget::canvas::Event">Event</a></dt><dd>A user interface event.</dd><dt><a class="enum" href="enum.Gradient.html" title="enum cosmic::widget::canvas::Gradient">Gradient</a></dt><dd>A fill which linearly interpolates colors along a direction.</dd><dt><a class="enum" href="enum.LineCap.html" title="enum cosmic::widget::canvas::LineCap">LineCap</a></dt><dd>The shape used at the end of open subpaths when they are stroked.</dd><dt><a class="enum" href="enum.LineJoin.html" title="enum cosmic::widget::canvas::LineJoin">Line<wbr>Join</a></dt><dd>The shape used at the corners of paths or basic shapes when they are
stroked.</dd><dt><a class="enum" href="enum.Style.html" title="enum cosmic::widget::canvas::Style">Style</a></dt><dd>The coloring style of some drawing.</dd></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.Program.html" title="trait cosmic::widget::canvas::Program">Program</a></dt><dd>The state and logic of a <a href="../struct.Canvas.html" title="struct cosmic::widget::Canvas"><code>Canvas</code></a>.</dd></dl><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><dl class="item-table"><dt><a class="type" href="type.Cache.html" title="type cosmic::widget::canvas::Cache">Cache</a></dt><dd>A simple cache that stores generated <a href="type.Geometry.html" title="type cosmic::widget::canvas::Geometry"><code>Geometry</code></a> to avoid recomputation.</dd><dt><a class="type" href="type.Frame.html" title="type cosmic::widget::canvas::Frame">Frame</a></dt><dd>The frame supported by a renderer.</dd><dt><a class="type" href="type.Geometry.html" title="type cosmic::widget::canvas::Geometry">Geometry</a></dt><dd>The geometry supported by a renderer.</dd></dl></section></div></main></body></html>

View file

@ -0,0 +1,2 @@
<!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="Build and draw curves."><title>cosmic::widget::canvas::path::arc - 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 mod"><!--[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="#">Module arc</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path</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></div><h1>Module <span>arc</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><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Build and draw curves.</p>
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Arc.html" title="struct cosmic::widget::canvas::path::arc::Arc">Arc</a></dt><dd>A segment of a differentiable curve.</dd><dt><a class="struct" href="struct.Elliptical.html" title="struct cosmic::widget::canvas::path::arc::Elliptical">Elliptical</a></dt><dd>An elliptical <a href="../struct.Arc.html" title="struct cosmic::widget::canvas::path::Arc"><code>Arc</code></a>.</dd></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"struct":["Arc","Elliptical"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,2 @@
<!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="Build different kinds of 2D shapes."><title>cosmic::widget::canvas::path - 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 mod"><!--[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="#">Module path</a></h2><h3><a href="#modules">Module Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget::<wbr>canvas</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></div><h1>Module <span>path</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><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Build different kinds of 2D shapes.</p>
</div></details><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="arc/index.html" title="mod cosmic::widget::canvas::path::arc">arc</a></dt><dd>Build and draw curves.</dd><dt><a class="mod" href="lyon_path/index.html" title="mod cosmic::widget::canvas::path::lyon_path">lyon_<wbr>path</a></dt><dd>Data structures and traits to work with paths (vector graphics).</dd></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Arc.html" title="struct cosmic::widget::canvas::path::Arc">Arc</a></dt><dd>A segment of a differentiable curve.</dd><dt><a class="struct" href="struct.Builder.html" title="struct cosmic::widget::canvas::path::Builder">Builder</a></dt><dd>A <a href="../struct.Path.html" title="struct cosmic::widget::canvas::Path"><code>Path</code></a> builder.</dd><dt><a class="struct" href="struct.Path.html" title="struct cosmic::widget::canvas::path::Path">Path</a></dt><dd>An immutable set of points that may or may not be connected.</dd></dl></section></div></main></body></html>

View file

@ -0,0 +1,69 @@
<!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="Path building utilities."><title>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 mod"><!--[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="#">Module builder</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#pathbuilder-or-svgpathbuilder" title="`PathBuilder` or `SvgPathBuilder`"><code>PathBuilder</code> or <code>SvgPathBuilder</code></a></li><li><a href="#examples" title="Examples">Examples</a></li></ul><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#traits" title="Traits">Traits</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path</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></div><h1>Module <span>builder</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><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Path building utilities.</p>
<h3 id="pathbuilder-or-svgpathbuilder"><a class="doc-anchor" href="#pathbuilder-or-svgpathbuilder">§</a><code>PathBuilder</code> or <code>SvgPathBuilder</code></h3>
<p>Path can be built via either of two abstractions:</p>
<ul>
<li><a href="trait.PathBuilder.html">PathBuilder</a> is a simple and efficient interface which
does not deal with any ambiguous cases.</li>
<li><a href="trait.SvgPathBuilder.html">SvgPathBuilder</a> is a higher-level interface that
follows SVGs specification, removing the the burden of dealing with special cases
from the user at a run-time cost.</li>
</ul>
<p><code>SvgPathBuilder</code> may be a better choice when interactive with SVG, or dealing with arbitrary
input. <code>PathBuilder</code>. <code>PathBuilder</code> is probably a more useful trait to implement when creating
a new path data structure since all <code>PathBuilder</code> implementations automatically get an
<code>SvgPathBuilder</code> adapter (see the <code>with_svg</code> method). It may also make sense to use the
<code>PathBuilder</code> API when following a specification that behaves like SVG paths or when no
performance can be traded for convenience.</p>
<h3 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h3>
<p>The following example shows how to create a simple path using the
<a href="trait.PathBuilder.html">PathBuilder</a> interface.</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>lyon_path::{Path, geom::point};
<span class="kw">let </span><span class="kw-2">mut </span>builder = Path::builder();
<span class="comment">// All sub-paths *must* have be contained in a begin/end pair.
</span>builder.begin(point(<span class="number">0.0</span>, <span class="number">0.0</span>));
builder.line_to(point(<span class="number">1.0</span>, <span class="number">0.0</span>));
builder.quadratic_bezier_to(point(<span class="number">2.0</span>, <span class="number">0.0</span>), point(<span class="number">2.0</span>, <span class="number">1.0</span>));
builder.end(<span class="bool-val">false</span>);
builder.begin(point(<span class="number">10.0</span>, <span class="number">0.0</span>));
builder.cubic_bezier_to(point(<span class="number">12.0</span>, <span class="number">2.0</span>), point(<span class="number">11.0</span>, <span class="number">2.0</span>), point(<span class="number">5.0</span>, <span class="number">0.0</span>));
builder.close(); <span class="comment">// close() is equivalent to end(true).
</span><span class="kw">let </span>path = builder.build();</code></pre></div>
<p>The same path can be built using the <code>SvgPathBuilder</code> API:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>lyon_path::{Path, geom::{point, vector}, builder::SvgPathBuilder};
<span class="comment">// Use the SVG adapter.
</span><span class="kw">let </span><span class="kw-2">mut </span>builder = Path::builder().with_svg();
<span class="comment">// All sub-paths *must* have be contained in a begin/end pair.
</span>builder.move_to(point(<span class="number">0.0</span>, <span class="number">0.0</span>));
builder.line_to(point(<span class="number">1.0</span>, <span class="number">0.0</span>));
builder.quadratic_bezier_to(point(<span class="number">2.0</span>, <span class="number">0.0</span>), point(<span class="number">2.0</span>, <span class="number">1.0</span>));
<span class="comment">// No need to explicitly end a sub-path.
</span>builder.move_to(point(<span class="number">10.0</span>, <span class="number">0.0</span>));
builder.relative_cubic_bezier_to(vector(<span class="number">2.0</span>, <span class="number">2.0</span>), vector(<span class="number">1.0</span>, <span class="number">2.0</span>), vector(-<span class="number">5.0</span>, <span class="number">0.0</span>));
builder.close();
<span class="kw">let </span>path = builder.build();</code></pre></div>
<p>Implementors of the <code>PathBuilder</code> trait automatically gain access to a few other adapters.
For example a builder that approximates curves with a sequence of line segments:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>lyon_path::{Path, geom::point};
<span class="kw">let </span>tolerance = <span class="number">0.05</span>;<span class="comment">// maximum distance between a curve and its approximation.
</span><span class="kw">let </span><span class="kw-2">mut </span>builder = Path::builder().flattened(tolerance);
builder.begin(point(<span class="number">0.0</span>, <span class="number">0.0</span>));
builder.quadratic_bezier_to(point(<span class="number">1.0</span>, <span class="number">0.0</span>), point(<span class="number">1.0</span>, <span class="number">1.0</span>));
builder.end(<span class="bool-val">true</span>);
<span class="comment">// The resulting path contains only Begin, Line and End events.
</span><span class="kw">let </span>path = builder.build();</code></pre></div>
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.BorderRadii.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::BorderRadii">Border<wbr>Radii</a></dt><dd>The radius of each corner of a rounded rectangle.</dd><dt><a class="struct" href="struct.Flattened.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::Flattened">Flattened</a></dt><dd>A Builder that approximates curves with successions of line segments.</dd><dt><a class="struct" href="struct.NoAttributes.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::NoAttributes">NoAttributes</a></dt><dd>A convenience wrapper for <code>PathBuilder</code> without custom attributes.</dd><dt><a class="struct" href="struct.Transformed.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::Transformed">Transformed</a></dt><dd>Builds a path with a transformation applied.</dd><dt><a class="struct" href="struct.WithSvg.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::WithSvg">WithSvg</a></dt><dd>Implements an SVG-like building interface on top of a PathBuilder.</dd></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.Build.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::Build">Build</a></dt><dd>Builds a path.</dd><dt><a class="trait" href="trait.PathBuilder.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::PathBuilder">Path<wbr>Builder</a></dt><dd>The base path building interface.</dd><dt><a class="trait" href="trait.SvgPathBuilder.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::SvgPathBuilder">SvgPath<wbr>Builder</a></dt><dd>A path building interface that tries to stay close to SVGs path specification.
<a href="https://svgwg.org/specs/paths/">https://svgwg.org/specs/paths/</a></dd></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"struct":["BorderRadii","Flattened","NoAttributes","Transformed","WithSvg"],"trait":["Build","PathBuilder","SvgPathBuilder"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,16 @@
<!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>

View file

@ -0,0 +1,228 @@
<!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="The base path building interface."><title>PathBuilder 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="#">Path<wbr>Builder</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.begin" title="begin">begin</a></li><li><a href="#tymethod.cubic_bezier_to" title="cubic_bezier_to">cubic_bezier_to</a></li><li><a href="#tymethod.end" title="end">end</a></li><li><a href="#tymethod.line_to" title="line_to">line_to</a></li><li><a href="#tymethod.num_attributes" title="num_attributes">num_attributes</a></li><li><a href="#tymethod.quadratic_bezier_to" title="quadratic_bezier_to">quadratic_bezier_to</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.add_circle" title="add_circle">add_circle</a></li><li><a href="#method.add_ellipse" title="add_ellipse">add_ellipse</a></li><li><a href="#method.add_line_segment" title="add_line_segment">add_line_segment</a></li><li><a href="#method.add_point" title="add_point">add_point</a></li><li><a href="#method.add_polygon" title="add_polygon">add_polygon</a></li><li><a href="#method.add_rectangle" title="add_rectangle">add_rectangle</a></li><li><a href="#method.add_rounded_rectangle" title="add_rounded_rectangle">add_rounded_rectangle</a></li><li><a href="#method.close" title="close">close</a></li><li><a href="#method.event" title="event">event</a></li><li><a href="#method.flattened" title="flattened">flattened</a></li><li><a href="#method.path_event" title="path_event">path_event</a></li><li><a href="#method.reserve" title="reserve">reserve</a></li><li><a href="#method.transformed" title="transformed">transformed</a></li><li><a href="#method.with_svg" title="with_svg">with_svg</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">PathBuilder</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 PathBuilder {
<details class="toggle type-contents-toggle"><summary class="hideme"><span>Show 20 methods</span></summary> // Required methods
fn <a href="#tymethod.num_attributes" class="fn">num_attributes</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.begin" class="fn">begin</a>(
&amp;mut self,
at: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
custom_attributes: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
) -&gt; <a class="struct" href="../struct.EndpointId.html" title="struct cosmic::widget::canvas::path::lyon_path::EndpointId">EndpointId</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.end" class="fn">end</a>(&amp;mut self, close: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>);
<span class="item-spacer"></span> fn <a href="#tymethod.line_to" class="fn">line_to</a>(
&amp;mut self,
to: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
custom_attributes: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
) -&gt; <a class="struct" href="../struct.EndpointId.html" title="struct cosmic::widget::canvas::path::lyon_path::EndpointId">EndpointId</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.quadratic_bezier_to" class="fn">quadratic_bezier_to</a>(
&amp;mut self,
ctrl: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
to: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
custom_attributes: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
) -&gt; <a class="struct" href="../struct.EndpointId.html" title="struct cosmic::widget::canvas::path::lyon_path::EndpointId">EndpointId</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.cubic_bezier_to" class="fn">cubic_bezier_to</a>(
&amp;mut self,
ctrl1: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
ctrl2: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
to: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
custom_attributes: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
) -&gt; <a class="struct" href="../struct.EndpointId.html" title="struct cosmic::widget::canvas::path::lyon_path::EndpointId">EndpointId</a>;
// Provided methods
fn <a href="#method.close" class="fn">close</a>(&amp;mut self) { ... }
<span class="item-spacer"></span> fn <a href="#method.reserve" class="fn">reserve</a>(&amp;mut self, _endpoints: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, _ctrl_points: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) { ... }
<span class="item-spacer"></span> fn <a href="#method.path_event" class="fn">path_event</a>(
&amp;mut self,
event: <a class="enum" href="../enum.Event.html" title="enum cosmic::widget::canvas::path::lyon_path::Event">Event</a>&lt;<a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;, <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;&gt;,
attributes: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
) { ... }
<span class="item-spacer"></span> fn <a href="#method.event" class="fn">event</a>(
&amp;mut self,
event: <a class="enum" href="../enum.Event.html" title="enum cosmic::widget::canvas::path::lyon_path::Event">Event</a>&lt;(<a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;, &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>]), <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;&gt;,
) { ... }
<span class="item-spacer"></span> fn <a href="#method.add_polygon" class="fn">add_polygon</a>(
&amp;mut self,
polygon: <a class="struct" href="../struct.Polygon.html" title="struct cosmic::widget::canvas::path::lyon_path::Polygon">Polygon</a>&lt;'_, <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;&gt;,
attributes: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
) { ... }
<span class="item-spacer"></span> fn <a href="#method.add_point" class="fn">add_point</a>(
&amp;mut self,
at: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
attributes: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
) -&gt; <a class="struct" href="../struct.EndpointId.html" title="struct cosmic::widget::canvas::path::lyon_path::EndpointId">EndpointId</a> { ... }
<span class="item-spacer"></span> fn <a href="#method.add_line_segment" class="fn">add_line_segment</a>(
&amp;mut self,
line: &amp;<a class="struct" href="../geom/struct.LineSegment.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::LineSegment">LineSegment</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;,
attributes: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
) -&gt; (<a class="struct" href="../struct.EndpointId.html" title="struct cosmic::widget::canvas::path::lyon_path::EndpointId">EndpointId</a>, <a class="struct" href="../struct.EndpointId.html" title="struct cosmic::widget::canvas::path::lyon_path::EndpointId">EndpointId</a>) { ... }
<span class="item-spacer"></span> fn <a href="#method.add_ellipse" class="fn">add_ellipse</a>(
&amp;mut self,
center: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
radii: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
x_rotation: <a class="struct" href="../geom/struct.Angle.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::Angle">Angle</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;,
winding: <a class="enum" href="../enum.Winding.html" title="enum cosmic::widget::canvas::path::lyon_path::Winding">Winding</a>,
attributes: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
) { ... }
<span class="item-spacer"></span> fn <a href="#method.add_circle" class="fn">add_circle</a>(
&amp;mut self,
center: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
radius: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
winding: <a class="enum" href="../enum.Winding.html" title="enum cosmic::widget::canvas::path::lyon_path::Winding">Winding</a>,
attributes: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
)
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.add_rectangle" class="fn">add_rectangle</a>(
&amp;mut self,
rect: &amp;<a class="struct" href="../geom/euclid/struct.Box2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Box2D">Box2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
winding: <a class="enum" href="../enum.Winding.html" title="enum cosmic::widget::canvas::path::lyon_path::Winding">Winding</a>,
attributes: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
) { ... }
<span class="item-spacer"></span> fn <a href="#method.add_rounded_rectangle" class="fn">add_rounded_rectangle</a>(
&amp;mut self,
rect: &amp;<a class="struct" href="../geom/euclid/struct.Box2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Box2D">Box2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
radii: &amp;<a class="struct" href="struct.BorderRadii.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::BorderRadii">BorderRadii</a>,
winding: <a class="enum" href="../enum.Winding.html" title="enum cosmic::widget::canvas::path::lyon_path::Winding">Winding</a>,
custom_attributes: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
)
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.flattened" class="fn">flattened</a>(self, tolerance: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -&gt; <a class="struct" href="struct.Flattened.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::Flattened">Flattened</a>&lt;Self&gt;
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.transformed" class="fn">transformed</a>&lt;Transform&gt;(
self,
transform: Transform,
) -&gt; <a class="struct" href="struct.Transformed.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::Transformed">Transformed</a>&lt;Self, Transform&gt;
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
Transform: <a class="trait" href="../geom/traits/trait.Transformation.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::traits::Transformation">Transformation</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;</span> { ... }
<span class="item-spacer"></span> fn <a href="#method.with_svg" class="fn">with_svg</a>(self) -&gt; <a class="struct" href="struct.WithSvg.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::WithSvg">WithSvg</a>&lt;Self&gt;
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
</details>}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The base path building interface.</p>
<p>Unlike <code>SvgPathBuilder</code>, this interface strictly requires sub-paths to be manually
started and ended (See the <code>begin</code> and <code>end</code> methods).
All positions are provided in absolute coordinates.</p>
<p>The goal of this interface is to abstract over simple and fast implementations that
do not deal with corner cases such as adding segments without starting a sub-path.</p>
<p>More elaborate interfaces are built on top of the provided primitives. In particular,
the <code>SvgPathBuilder</code> trait providing more permissive and richer interface is
automatically implemented via the <code>WithSvg</code> adapter (See the <code>with_svg</code> method).</p>
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.num_attributes" class="method"><h4 class="code-header">fn <a href="#tymethod.num_attributes" class="fn">num_attributes</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></h4></section><details class="toggle method-toggle" open><summary><section id="tymethod.begin" class="method"><h4 class="code-header">fn <a href="#tymethod.begin" class="fn">begin</a>(
&amp;mut self,
at: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
custom_attributes: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
) -&gt; <a class="struct" href="../struct.EndpointId.html" title="struct cosmic::widget::canvas::path::lyon_path::EndpointId">EndpointId</a></h4></section></summary><div class="docblock"><p>Starts a new sub-path at a given position.</p>
<p>There must be no sub-path in progress when this method is called.
<code>at</code> becomes the current position of the sub-path.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.end" class="method"><h4 class="code-header">fn <a href="#tymethod.end" class="fn">end</a>(&amp;mut self, close: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Ends the current sub path.</p>
<p>A sub-path must be in progress when this method is called.
After this method is called, there is no sub-path in progress until
<code>begin</code> is called again.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.line_to" class="method"><h4 class="code-header">fn <a href="#tymethod.line_to" class="fn">line_to</a>(
&amp;mut self,
to: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
custom_attributes: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
) -&gt; <a class="struct" href="../struct.EndpointId.html" title="struct cosmic::widget::canvas::path::lyon_path::EndpointId">EndpointId</a></h4></section></summary><div class="docblock"><p>Adds a line segment to the current sub-path.</p>
<p>A sub-path must be in progress when this method is called.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.quadratic_bezier_to" class="method"><h4 class="code-header">fn <a href="#tymethod.quadratic_bezier_to" class="fn">quadratic_bezier_to</a>(
&amp;mut self,
ctrl: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
to: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
custom_attributes: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
) -&gt; <a class="struct" href="../struct.EndpointId.html" title="struct cosmic::widget::canvas::path::lyon_path::EndpointId">EndpointId</a></h4></section></summary><div class="docblock"><p>Adds a quadratic bézier curve to the current sub-path.</p>
<p>A sub-path must be in progress when this method is called.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.cubic_bezier_to" class="method"><h4 class="code-header">fn <a href="#tymethod.cubic_bezier_to" class="fn">cubic_bezier_to</a>(
&amp;mut self,
ctrl1: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
ctrl2: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
to: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
custom_attributes: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
) -&gt; <a class="struct" href="../struct.EndpointId.html" title="struct cosmic::widget::canvas::path::lyon_path::EndpointId">EndpointId</a></h4></section></summary><div class="docblock"><p>Adds a cubic bézier curve to the current sub-path.</p>
<p>A sub-path must be in progress when this method is called.</p>
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.close" class="method"><h4 class="code-header">fn <a href="#method.close" class="fn">close</a>(&amp;mut self)</h4></section></summary><div class="docblock"><p>Closes the current sub path.</p>
<p>Shorthand for <code>builder.end(true)</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.reserve" class="method"><h4 class="code-header">fn <a href="#method.reserve" class="fn">reserve</a>(&amp;mut self, _endpoints: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, _ctrl_points: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</h4></section></summary><div class="docblock"><p>Hints at the builder that a certain number of endpoints and control
points will be added.</p>
<p>The Builder implementation may use this information to pre-allocate
memory as an optimization.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.path_event" class="method"><h4 class="code-header">fn <a href="#method.path_event" class="fn">path_event</a>(
&amp;mut self,
event: <a class="enum" href="../enum.Event.html" title="enum cosmic::widget::canvas::path::lyon_path::Event">Event</a>&lt;<a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;, <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;&gt;,
attributes: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
)</h4></section></summary><div class="docblock"><p>Applies the provided path event.</p>
<p>By default this calls one of <code>begin</code>, <code>end</code>, <code>line</code>, <code>quadratic_bezier_segment</code>,
or <code>cubic_bezier_segment</code> according to the path event.</p>
<p>The requirements for each method apply to the corresponding event.</p>
</div></details><section id="method.event" class="method"><h4 class="code-header">fn <a href="#method.event" class="fn">event</a>(
&amp;mut self,
event: <a class="enum" href="../enum.Event.html" title="enum cosmic::widget::canvas::path::lyon_path::Event">Event</a>&lt;(<a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;, &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>]), <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;&gt;,
)</h4></section><details class="toggle method-toggle" open><summary><section id="method.add_polygon" class="method"><h4 class="code-header">fn <a href="#method.add_polygon" class="fn">add_polygon</a>(
&amp;mut self,
polygon: <a class="struct" href="../struct.Polygon.html" title="struct cosmic::widget::canvas::path::lyon_path::Polygon">Polygon</a>&lt;'_, <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;&gt;,
attributes: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
)</h4></section></summary><div class="docblock"><p>Adds a sub-path from a polygon.</p>
<p>There must be no sub-path in progress when this method is called.
No sub-path is in progress after the method is called.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_point" class="method"><h4 class="code-header">fn <a href="#method.add_point" class="fn">add_point</a>(
&amp;mut self,
at: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
attributes: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
) -&gt; <a class="struct" href="../struct.EndpointId.html" title="struct cosmic::widget::canvas::path::lyon_path::EndpointId">EndpointId</a></h4></section></summary><div class="docblock"><p>Adds a sub-path containing a single point.</p>
<p>There must be no sub-path in progress when this method is called.
No sub-path is in progress after the method is called.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_line_segment" class="method"><h4 class="code-header">fn <a href="#method.add_line_segment" class="fn">add_line_segment</a>(
&amp;mut self,
line: &amp;<a class="struct" href="../geom/struct.LineSegment.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::LineSegment">LineSegment</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;,
attributes: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
) -&gt; (<a class="struct" href="../struct.EndpointId.html" title="struct cosmic::widget::canvas::path::lyon_path::EndpointId">EndpointId</a>, <a class="struct" href="../struct.EndpointId.html" title="struct cosmic::widget::canvas::path::lyon_path::EndpointId">EndpointId</a>)</h4></section></summary><div class="docblock"><p>Adds a sub-path containing a single line segment.</p>
<p>There must be no sub-path in progress when this method is called.
No sub-path is in progress after the method is called.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_ellipse" class="method"><h4 class="code-header">fn <a href="#method.add_ellipse" class="fn">add_ellipse</a>(
&amp;mut self,
center: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
radii: <a class="struct" href="../geom/euclid/struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
x_rotation: <a class="struct" href="../geom/struct.Angle.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::Angle">Angle</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;,
winding: <a class="enum" href="../enum.Winding.html" title="enum cosmic::widget::canvas::path::lyon_path::Winding">Winding</a>,
attributes: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
)</h4></section></summary><div class="docblock"><p>Adds a sub-path containing an ellipse.</p>
<p>There must be no sub-path in progress when this method is called.
No sub-path is in progress after the method is called.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_circle" class="method"><h4 class="code-header">fn <a href="#method.add_circle" class="fn">add_circle</a>(
&amp;mut self,
center: <a class="struct" href="../geom/euclid/struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
radius: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
winding: <a class="enum" href="../enum.Winding.html" title="enum cosmic::widget::canvas::path::lyon_path::Winding">Winding</a>,
attributes: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
)<div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>Adds a sub-path containing a circle.</p>
<p>There must be no sub-path in progress when this method is called.
No sub-path is in progress after the method is called.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_rectangle" class="method"><h4 class="code-header">fn <a href="#method.add_rectangle" class="fn">add_rectangle</a>(
&amp;mut self,
rect: &amp;<a class="struct" href="../geom/euclid/struct.Box2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Box2D">Box2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
winding: <a class="enum" href="../enum.Winding.html" title="enum cosmic::widget::canvas::path::lyon_path::Winding">Winding</a>,
attributes: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
)</h4></section></summary><div class="docblock"><p>Adds a sub-path containing a rectangle.</p>
<p>There must be no sub-path in progress when this method is called.
No sub-path is in progress after the method is called.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_rounded_rectangle" class="method"><h4 class="code-header">fn <a href="#method.add_rounded_rectangle" class="fn">add_rounded_rectangle</a>(
&amp;mut self,
rect: &amp;<a class="struct" href="../geom/euclid/struct.Box2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Box2D">Box2D</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, <a class="struct" href="../geom/euclid/struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
radii: &amp;<a class="struct" href="struct.BorderRadii.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::BorderRadii">BorderRadii</a>,
winding: <a class="enum" href="../enum.Winding.html" title="enum cosmic::widget::canvas::path::lyon_path::Winding">Winding</a>,
custom_attributes: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>],
)<div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>Adds a sub-path containing a rectangle.</p>
<p>There must be no sub-path in progress when this method is called.
No sub-path is in progress after the method is called.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.flattened" class="method"><h4 class="code-header">fn <a href="#method.flattened" class="fn">flattened</a>(self, tolerance: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -&gt; <a class="struct" href="struct.Flattened.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::Flattened">Flattened</a>&lt;Self&gt;<div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>Returns a builder that approximates all curves with sequences of line segments.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.transformed" class="method"><h4 class="code-header">fn <a href="#method.transformed" class="fn">transformed</a>&lt;Transform&gt;(
self,
transform: Transform,
) -&gt; <a class="struct" href="struct.Transformed.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::Transformed">Transformed</a>&lt;Self, Transform&gt;<div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
Transform: <a class="trait" href="../geom/traits/trait.Transformation.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::traits::Transformation">Transformation</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;,</div></h4></section></summary><div class="docblock"><p>Returns a builder that applies the given transformation to all positions.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.with_svg" class="method"><h4 class="code-header">fn <a href="#method.with_svg" class="fn">with_svg</a>(self) -&gt; <a class="struct" href="struct.WithSvg.html" title="struct cosmic::widget::canvas::path::lyon_path::builder::WithSvg">WithSvg</a>&lt;Self&gt;<div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>Returns a builder that support SVG commands.</p>
<p>This must be called before starting to add any sub-path.</p>
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-PathBuilder-for-BuilderImpl" class="impl"><a href="#impl-PathBuilder-for-BuilderImpl" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.PathBuilder.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::PathBuilder">PathBuilder</a> for <a class="struct" href="../struct.BuilderImpl.html" title="struct cosmic::widget::canvas::path::lyon_path::BuilderImpl">BuilderImpl</a></h3></section><section id="impl-PathBuilder-for-BuilderWithAttributes" class="impl"><a href="#impl-PathBuilder-for-BuilderWithAttributes" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.PathBuilder.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::PathBuilder">PathBuilder</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><section id="impl-PathBuilder-for-Builder%3C'l%3E" class="impl"><a href="#impl-PathBuilder-for-Builder%3C'l%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'l&gt; <a class="trait" href="trait.PathBuilder.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::PathBuilder">PathBuilder</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><section id="impl-PathBuilder-for-BuilderWithAttributes%3C'l%3E" class="impl"><a href="#impl-PathBuilder-for-BuilderWithAttributes%3C'l%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'l&gt; <a class="trait" href="trait.PathBuilder.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::PathBuilder">PathBuilder</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><section id="impl-PathBuilder-for-NoAttributes%3CB%3E" class="impl"><a href="#impl-PathBuilder-for-NoAttributes%3CB%3E" class="anchor">§</a><h3 class="code-header">impl&lt;B&gt; <a class="trait" href="trait.PathBuilder.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::PathBuilder">PathBuilder</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>,</div></h3></section><section id="impl-PathBuilder-for-Flattened%3CBuilder%3E" class="impl"><a href="#impl-PathBuilder-for-Flattened%3CBuilder%3E" class="anchor">§</a><h3 class="code-header">impl&lt;Builder&gt; <a class="trait" href="trait.PathBuilder.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::PathBuilder">PathBuilder</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.PathBuilder.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::PathBuilder">PathBuilder</a>,</div></h3></section><section id="impl-PathBuilder-for-Transformed%3CBuilder,+Transform%3E" class="impl"><a href="#impl-PathBuilder-for-Transformed%3CBuilder,+Transform%3E" class="anchor">§</a><h3 class="code-header">impl&lt;Builder, Transform&gt; <a class="trait" href="trait.PathBuilder.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::PathBuilder">PathBuilder</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.PathBuilder.html" title="trait cosmic::widget::canvas::path::lyon_path::builder::PathBuilder">PathBuilder</a>,
Transform: <a class="trait" href="../geom/traits/trait.Transformation.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::traits::Transformation">Transformation</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;,</div></h3></section></div><script src="../../../../../../trait.impl/lyon_path/builder/trait.PathBuilder.js" data-ignore-extern-crates="lyon_path" async></script></section></div></main></body></html>

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,54 @@
<!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="A generic representation for paths that allow more control over how endpoints and control points are stored."><title>cosmic::widget::canvas::path::lyon_path::commands - 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 mod"><!--[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="#">Module commands</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#motivation" title="Motivation">Motivation</a></li><li><a href="#examples" title="Examples">Examples</a></li></ul><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path</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></div><h1>Module <span>commands</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><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A generic representation for paths that allow more control over how
endpoints and control points are stored.</p>
<h2 id="motivation"><a class="doc-anchor" href="#motivation">§</a>Motivation</h2>
<p>The default <code>Path</code> data structure in this crate is works well for the
most common use cases. Sometimes, however, it is useful to be able to
specify exactly how endpoints and control points are stored instead of
relying on implicitly following the order of the events.</p>
<p>This module contains bricks to help with building custom path representations.
The central piece is the <a href="struct.PathCommands.html"><code>PathCommands</code></a> buffer and
its <a href="struct.PathCommandsBuilder.html"><code>PathCommandsBuilder</code></a>, providing a compact
representation for path events with IDs instead of positions.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<p>The following example shows how <code>PathCommands</code> can be used together with an
external buffers for positions to implement features similar to the default
Path type with a different data structure.</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>lyon_path::{EndpointId, Event, IdEvent, commands::PathCommands};
<span class="kw">let </span>points = <span class="kw-2">&amp;</span>[
[<span class="number">0.0</span>, <span class="number">0.0</span>],
[<span class="number">1.0</span>, <span class="number">1.0</span>],
[<span class="number">0.0</span>, <span class="number">2.0</span>],
];
<span class="kw">let </span><span class="kw-2">mut </span>cmds = PathCommands::builder();
cmds.begin(EndpointId(<span class="number">0</span>));
cmds.line_to(EndpointId(<span class="number">1</span>));
cmds.line_to(EndpointId(<span class="number">2</span>));
cmds.end(<span class="bool-val">true</span>);
<span class="kw">let </span>cmds = cmds.build();
<span class="kw">for </span>event <span class="kw">in </span><span class="kw-2">&amp;</span>cmds {
<span class="kw">match </span>event {
IdEvent::Begin { at } =&gt; { <span class="macro">println!</span>(<span class="string">"move to {:?}"</span>, points[at.to_usize()]); }
IdEvent::Line { to, .. } =&gt; { <span class="macro">println!</span>(<span class="string">"line to {:?}"</span>, points[to.to_usize()]); }
IdEvent::End { close: <span class="bool-val">true</span>, .. } =&gt; { <span class="macro">println!</span>(<span class="string">"close"</span>); }
<span class="kw">_ </span>=&gt; { <span class="macro">panic!</span>(<span class="string">"unexpected event!"</span>) }
}
}
<span class="comment">// Iterate over the points directly using CommandsPathSlice
</span><span class="kw">for </span>event <span class="kw">in </span>cmds.path_slice(points, points).events() {
<span class="kw">match </span>event {
Event::Begin { at } =&gt; { <span class="macro">println!</span>(<span class="string">"move to {:?}"</span>, at); }
Event::Line { to, .. } =&gt; { <span class="macro">println!</span>(<span class="string">"line to {:?}"</span>, to); }
Event::End { close: <span class="bool-val">true</span>, .. } =&gt; { <span class="macro">println!</span>(<span class="string">"close"</span>); }
<span class="kw">_ </span>=&gt; { <span class="macro">panic!</span>(<span class="string">"unexpected event!"</span>) }
}
}
</code></pre></div>
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.CommandsPathSlice.html" title="struct cosmic::widget::canvas::path::lyon_path::commands::CommandsPathSlice">Commands<wbr>Path<wbr>Slice</a></dt><dd>A view on a <a href="struct.PathCommands.html"><code>PathCommands</code></a> buffer and
two slices for endpoints and control points, providing similar
functionalities as <code>PathSlice</code>.</dd><dt><a class="struct" href="struct.Events.html" title="struct cosmic::widget::canvas::path::lyon_path::commands::Events">Events</a></dt><dd>An iterator of <code>Event&lt;&amp;Endpoint, &amp;ControlPoint&gt;</code>.</dd><dt><a class="struct" href="struct.Iter.html" title="struct cosmic::widget::canvas::path::lyon_path::commands::Iter">Iter</a></dt><dd>An iterator of <code>Event&lt;&amp;Endpoint, &amp;ControlPoint&gt;</code>.</dd><dt><a class="struct" href="struct.PathCommands.html" title="struct cosmic::widget::canvas::path::lyon_path::commands::PathCommands">Path<wbr>Commands</a></dt><dd>The commands of a path encoded in a single array using IDs to refer
to endpoints and control points externally.</dd><dt><a class="struct" href="struct.PathCommandsBuilder.html" title="struct cosmic::widget::canvas::path::lyon_path::commands::PathCommandsBuilder">Path<wbr>Commands<wbr>Builder</a></dt><dd>Builds path commands.</dd><dt><a class="struct" href="struct.PathCommandsSlice.html" title="struct cosmic::widget::canvas::path::lyon_path::commands::PathCommandsSlice">Path<wbr>Commands<wbr>Slice</a></dt><dd>A view over <a href="struct.PathCommands.html"><code>PathCommands</code></a>.</dd><dt><a class="struct" href="struct.PointEvents.html" title="struct cosmic::widget::canvas::path::lyon_path::commands::PointEvents">Point<wbr>Events</a></dt><dd>An iterator of <code>PathEvent</code>.</dd></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"struct":["CommandsPathSlice","Events","Iter","PathCommands","PathCommandsBuilder","PathCommandsSlice","PointEvents"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,2 @@
<!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="An empty attribute slice."><title>NO_ATTRIBUTES in cosmic::widget::canvas::path::lyon_path - 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 constant"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path</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></div><h1>Constant <span class="constant">NO_ATTRIBUTES</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 const NO_ATTRIBUTES: &amp;'static [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>];</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>An empty attribute slice.</p>
</div></details></section></div></main></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,2 @@
<!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="Elliptic arc related maths and tools."><title>cosmic::widget::canvas::path::lyon_path::geom::arc - 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 mod"><!--[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="#">Module arc</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom</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">geom</a></div><h1>Module <span>arc</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><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Elliptic arc related maths and tools.</p>
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Arc.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::arc::Arc">Arc</a></dt><dd>An elliptic arc curve segment.</dd><dt><a class="struct" href="struct.ArcFlags.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::arc::ArcFlags">ArcFlags</a></dt><dd>Flag parameters for arcs as described by the SVG specification.</dd><dt><a class="struct" href="struct.Flattened.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::arc::Flattened">Flattened</a></dt><dd>Flattening iterator for arcs.</dd><dt><a class="struct" href="struct.SvgArc.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::arc::SvgArc">SvgArc</a></dt><dd>An elliptic arc curve segment using the SVGs end-point notation.</dd></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"struct":["Arc","ArcFlags","Flattened","SvgArc"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,29 @@
<!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="arrayvec provides the types `ArrayVec` and `ArrayString`: array-backed vector and string types, which store their contents inline."><title>cosmic::widget::canvas::path::lyon_path::geom::arrayvec - 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="../../../../../../../crates.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 mod crate"><!--[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"><ul class="block"><li><a id="all-types" href="all.html">All Items</a></li></ul><section id="rustdoc-toc"><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#rust-version" title="Rust Version">Rust Version</a></li></ul><h3><a href="#structs">Crate Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom</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">geom</a></div><h1>Crate <span>arrayvec</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="https://docs.rs/arrayvec/0.7/src/arrayvec/lib.rs.html#1-63">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p><strong>arrayvec</strong> provides the types <a href="struct.ArrayVec.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::arrayvec::ArrayVec"><code>ArrayVec</code></a> and <a href="struct.ArrayString.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::arrayvec::ArrayString"><code>ArrayString</code></a>:
array-backed vector and string types, which store their contents inline.</p>
<p>The arrayvec package has the following cargo features:</p>
<ul>
<li>
<p><code>std</code></p>
<ul>
<li>Optional, enabled by default</li>
<li>Use libstd; disable to use <code>no_std</code> instead.</li>
</ul>
</li>
<li>
<p><code>serde</code></p>
<ul>
<li>Optional</li>
<li>Enable serialization for ArrayVec and ArrayString using serde 1.x</li>
</ul>
</li>
<li>
<p><code>zeroize</code></p>
<ul>
<li>Optional</li>
<li>Implement <code>Zeroize</code> for ArrayVec and ArrayString</li>
</ul>
</li>
</ul>
<h3 id="rust-version"><a class="doc-anchor" href="#rust-version">§</a>Rust Version</h3>
<p>This version of arrayvec requires Rust 1.51 or later.</p>
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.ArrayString.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::arrayvec::ArrayString">Array<wbr>String</a></dt><dd>A string with a fixed capacity.</dd><dt><a class="struct" href="struct.ArrayVec.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::arrayvec::ArrayVec">Array<wbr>Vec</a></dt><dd>A vector with a fixed capacity.</dd><dt><a class="struct" href="struct.CapacityError.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::arrayvec::CapacityError">Capacity<wbr>Error</a></dt><dd>Error value indicating insufficient capacity</dd><dt><a class="struct" href="struct.Drain.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::arrayvec::Drain">Drain</a></dt><dd>A draining iterator for <code>ArrayVec</code>.</dd><dt><a class="struct" href="struct.IntoIter.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::arrayvec::IntoIter">Into<wbr>Iter</a></dt><dd>By-value iterator for <code>ArrayVec</code>.</dd></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"struct":["ArrayString","ArrayVec","CapacityError","Drain","IntoIter"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,2 @@
<!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="API documentation for the Rust `cubic_bezier` mod in crate `cosmic`."><title>cosmic::widget::canvas::path::lyon_path::geom::cubic_bezier - 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 mod"><!--[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="#">Module cubic_<wbr>bezier</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom</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">geom</a></div><h1>Module <span>cubic_bezier</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><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.CubicBezierPolynomial.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::cubic_bezier::CubicBezierPolynomial">Cubic<wbr>Bezier<wbr>Polynomial</a></dt><dd>The polynomial form of a cubic bézier segment.</dd><dt><a class="struct" href="struct.CubicBezierSegment.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::cubic_bezier::CubicBezierSegment">Cubic<wbr>Bezier<wbr>Segment</a></dt><dd>A 2d curve segment defined by four points: the beginning of the segment, two control
points and the end of the segment.</dd><dt><a class="struct" href="struct.Flattened.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::cubic_bezier::Flattened">Flattened</a></dt></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"struct":["CubicBezierPolynomial","CubicBezierSegment","Flattened"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
<!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="API documentation for the Rust `approxeq` mod in crate `cosmic`."><title>cosmic::widget::canvas::path::lyon_path::geom::euclid::approxeq - 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 mod"><!--[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="#">Module approxeq</a></h2><h3><a href="#traits">Module Items</a></h3><ul class="block"><li><a href="#traits" title="Traits">Traits</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid</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">geom</a>::<wbr><a href="../index.html">euclid</a></div><h1>Module <span>approxeq</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><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.ApproxEq.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::euclid::approxeq::ApproxEq">Approx<wbr>Eq</a></dt><dd>Trait for testing approximate equality</dd></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"trait":["ApproxEq"]};

View file

@ -0,0 +1,25 @@
<!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="Trait for testing approximate equality"><title>ApproxEq in cosmic::widget::canvas::path::lyon_path::geom::euclid::approxeq - 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="#">Approx<wbr>Eq</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.approx_epsilon" title="approx_epsilon">approx_epsilon</a></li><li><a href="#tymethod.approx_eq_eps" title="approx_eq_eps">approx_eq_eps</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.approx_eq" title="approx_eq">approx_eq</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-ApproxEq%3Cf32%3E-for-f32" title="f32">f32</a></li><li><a href="#impl-ApproxEq%3Cf64%3E-for-f64" title="f64">f64</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><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>geom::<wbr>euclid::<wbr>approxeq</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">geom</a>::<wbr><a href="../index.html">euclid</a>::<wbr><a href="index.html">approxeq</a></div><h1>Trait <span class="trait">ApproxEq</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 ApproxEq&lt;Eps&gt; {
// Required methods
fn <a href="#tymethod.approx_epsilon" class="fn">approx_epsilon</a>() -&gt; Eps;
<span class="item-spacer"></span> fn <a href="#tymethod.approx_eq_eps" class="fn">approx_eq_eps</a>(&amp;self, other: &amp;Self, approx_epsilon: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;Eps</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;
// Provided method
fn <a href="#method.approx_eq" class="fn">approx_eq</a>(&amp;self, other: &amp;Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a> { ... }
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Trait for testing approximate equality</p>
</div></details><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.approx_epsilon" class="method"><h4 class="code-header">fn <a href="#tymethod.approx_epsilon" class="fn">approx_epsilon</a>() -&gt; Eps</h4></section></summary><div class="docblock"><p>Default epsilon value</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.approx_eq_eps" class="method"><h4 class="code-header">fn <a href="#tymethod.approx_eq_eps" class="fn">approx_eq_eps</a>(&amp;self, other: &amp;Self, approx_epsilon: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;Eps</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if this object is approximately equal to the other one, using
a provided epsilon value.</p>
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.approx_eq" class="method"><h4 class="code-header">fn <a href="#method.approx_eq" class="fn">approx_eq</a>(&amp;self, other: &amp;Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if this object is approximately equal to the other one, using
the <a href="trait.ApproxEq.html#tymethod.approx_epsilon" title="associated function cosmic::widget::canvas::path::lyon_path::geom::euclid::approxeq::ApproxEq::approx_epsilon"><code>approx_epsilon</code></a> epsilon value.</p>
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-ApproxEq%3Cf32%3E-for-f32" class="impl"><a href="#impl-ApproxEq%3Cf32%3E-for-f32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ApproxEq.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::euclid::approxeq::ApproxEq">ApproxEq</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></h3></section></summary><div class="impl-items"><section id="method.approx_epsilon" class="method trait-impl"><a href="#method.approx_epsilon" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.approx_epsilon" class="fn">approx_epsilon</a>() -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></h4></section><section id="method.approx_eq_eps" class="method trait-impl"><a href="#method.approx_eq_eps" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.approx_eq_eps" class="fn">approx_eq_eps</a>(&amp;self, other: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, approx_epsilon: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ApproxEq%3Cf64%3E-for-f64" class="impl"><a href="#impl-ApproxEq%3Cf64%3E-for-f64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ApproxEq.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::euclid::approxeq::ApproxEq">ApproxEq</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>&gt; for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></h3></section></summary><div class="impl-items"><section id="method.approx_epsilon-1" class="method trait-impl"><a href="#method.approx_epsilon-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.approx_epsilon" class="fn">approx_epsilon</a>() -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></h4></section><section id="method.approx_eq_eps-1" class="method trait-impl"><a href="#method.approx_eq_eps-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.approx_eq_eps" class="fn">approx_eq_eps</a>(&amp;self, other: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, approx_epsilon: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-ApproxEq%3CT%3E-for-Angle%3CT%3E" class="impl"><a href="#impl-ApproxEq%3CT%3E-for-Angle%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.ApproxEq.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::euclid::approxeq::ApproxEq">ApproxEq</a>&lt;T&gt; for <a class="struct" href="../../struct.Angle.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::Angle">Angle</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="trait.ApproxEq.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::euclid::approxeq::ApproxEq">ApproxEq</a>&lt;T&gt;,</div></h3></section><section id="impl-ApproxEq%3CT%3E-for-Rotation2D%3CT,+Src,+Dst%3E" class="impl"><a href="#impl-ApproxEq%3CT%3E-for-Rotation2D%3CT,+Src,+Dst%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T, Src, Dst&gt; <a class="trait" href="trait.ApproxEq.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::euclid::approxeq::ApproxEq">ApproxEq</a>&lt;T&gt; for <a class="struct" href="../struct.Rotation2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Rotation2D">Rotation2D</a>&lt;T, Src, Dst&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Neg.html" title="trait core::ops::arith::Neg">Neg</a>&lt;Output = T&gt; + <a class="trait" href="trait.ApproxEq.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::euclid::approxeq::ApproxEq">ApproxEq</a>&lt;T&gt;,</div></h3></section><section id="impl-ApproxEq%3CT%3E-for-Rotation3D%3CT,+Src,+Dst%3E" class="impl"><a href="#impl-ApproxEq%3CT%3E-for-Rotation3D%3CT,+Src,+Dst%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T, Src, Dst&gt; <a class="trait" href="trait.ApproxEq.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::euclid::approxeq::ApproxEq">ApproxEq</a>&lt;T&gt; for <a class="struct" href="../struct.Rotation3D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Rotation3D">Rotation3D</a>&lt;T, Src, Dst&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Neg.html" title="trait core::ops::arith::Neg">Neg</a>&lt;Output = T&gt; + <a class="trait" href="trait.ApproxEq.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::euclid::approxeq::ApproxEq">ApproxEq</a>&lt;T&gt;,</div></h3></section><section id="impl-ApproxEq%3CT%3E-for-ScaleOffset2D%3CT,+Src,+Dst%3E" class="impl"><a href="#impl-ApproxEq%3CT%3E-for-ScaleOffset2D%3CT,+Src,+Dst%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T, Src, Dst&gt; <a class="trait" href="trait.ApproxEq.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::euclid::approxeq::ApproxEq">ApproxEq</a>&lt;T&gt; for <a class="struct" href="../struct.ScaleOffset2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::ScaleOffset2D">ScaleOffset2D</a>&lt;T, Src, Dst&gt;<div class="where">where
T: <a class="trait" href="trait.ApproxEq.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::euclid::approxeq::ApproxEq">ApproxEq</a>&lt;T&gt;,</div></h3></section><section id="impl-ApproxEq%3CT%3E-for-Transform2D%3CT,+Src,+Dst%3E" class="impl"><a href="#impl-ApproxEq%3CT%3E-for-Transform2D%3CT,+Src,+Dst%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T, Src, Dst&gt; <a class="trait" href="trait.ApproxEq.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::euclid::approxeq::ApproxEq">ApproxEq</a>&lt;T&gt; for <a class="struct" href="../struct.Transform2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Transform2D">Transform2D</a>&lt;T, Src, Dst&gt;<div class="where">where
T: <a class="trait" href="trait.ApproxEq.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::euclid::approxeq::ApproxEq">ApproxEq</a>&lt;T&gt;,</div></h3></section><section id="impl-ApproxEq%3CT%3E-for-Transform3D%3CT,+Src,+Dst%3E" class="impl"><a href="#impl-ApproxEq%3CT%3E-for-Transform3D%3CT,+Src,+Dst%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T, Src, Dst&gt; <a class="trait" href="trait.ApproxEq.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::euclid::approxeq::ApproxEq">ApproxEq</a>&lt;T&gt; for <a class="struct" href="../struct.Transform3D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Transform3D">Transform3D</a>&lt;T, Src, Dst&gt;<div class="where">where
T: <a class="trait" href="trait.ApproxEq.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::euclid::approxeq::ApproxEq">ApproxEq</a>&lt;T&gt;,</div></h3></section><section id="impl-ApproxEq%3CPoint2D%3CT,+U%3E%3E-for-Point2D%3CT,+U%3E" class="impl"><a href="#impl-ApproxEq%3CPoint2D%3CT,+U%3E%3E-for-Point2D%3CT,+U%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="trait.ApproxEq.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::euclid::approxeq::ApproxEq">ApproxEq</a>&lt;<a class="struct" href="../struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;T, U&gt;&gt; for <a class="struct" href="../struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;T, U&gt;<div class="where">where
T: <a class="trait" href="trait.ApproxEq.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::euclid::approxeq::ApproxEq">ApproxEq</a>&lt;T&gt;,</div></h3></section><section id="impl-ApproxEq%3CPoint3D%3CT,+U%3E%3E-for-Point3D%3CT,+U%3E" class="impl"><a href="#impl-ApproxEq%3CPoint3D%3CT,+U%3E%3E-for-Point3D%3CT,+U%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="trait.ApproxEq.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::euclid::approxeq::ApproxEq">ApproxEq</a>&lt;<a class="struct" href="../struct.Point3D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point3D">Point3D</a>&lt;T, U&gt;&gt; for <a class="struct" href="../struct.Point3D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point3D">Point3D</a>&lt;T, U&gt;<div class="where">where
T: <a class="trait" href="trait.ApproxEq.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::euclid::approxeq::ApproxEq">ApproxEq</a>&lt;T&gt;,</div></h3></section><section id="impl-ApproxEq%3CVector2D%3CT,+U%3E%3E-for-Vector2D%3CT,+U%3E" class="impl"><a href="#impl-ApproxEq%3CVector2D%3CT,+U%3E%3E-for-Vector2D%3CT,+U%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="trait.ApproxEq.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::euclid::approxeq::ApproxEq">ApproxEq</a>&lt;<a class="struct" href="../struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;T, U&gt;&gt; for <a class="struct" href="../struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;T, U&gt;<div class="where">where
T: <a class="trait" href="trait.ApproxEq.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::euclid::approxeq::ApproxEq">ApproxEq</a>&lt;T&gt;,</div></h3></section><section id="impl-ApproxEq%3CVector3D%3CT,+U%3E%3E-for-Vector3D%3CT,+U%3E" class="impl"><a href="#impl-ApproxEq%3CVector3D%3CT,+U%3E%3E-for-Vector3D%3CT,+U%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="trait.ApproxEq.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::euclid::approxeq::ApproxEq">ApproxEq</a>&lt;<a class="struct" href="../struct.Vector3D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector3D">Vector3D</a>&lt;T, U&gt;&gt; for <a class="struct" href="../struct.Vector3D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector3D">Vector3D</a>&lt;T, U&gt;<div class="where">where
T: <a class="trait" href="trait.ApproxEq.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::euclid::approxeq::ApproxEq">ApproxEq</a>&lt;T&gt;,</div></h3></section><section id="impl-ApproxEq%3CT%3E-for-Length%3CT,+U%3E" class="impl"><a href="#impl-ApproxEq%3CT%3E-for-Length%3CT,+U%3E" class="anchor">§</a><h3 class="code-header">impl&lt;U, T&gt; <a class="trait" href="trait.ApproxEq.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::euclid::approxeq::ApproxEq">ApproxEq</a>&lt;T&gt; for <a class="struct" href="../struct.Length.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Length">Length</a>&lt;T, U&gt;<div class="where">where
T: <a class="trait" href="trait.ApproxEq.html" title="trait cosmic::widget::canvas::path::lyon_path::geom::euclid::approxeq::ApproxEq">ApproxEq</a>&lt;T&gt;,</div></h3></section></div><script src="../../../../../../../../trait.impl/euclid/approxeq/trait.ApproxEq.js" data-ignore-extern-crates="euclid,std" async></script></section></div></main></body></html>

View file

@ -0,0 +1,2 @@
<!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="API documentation for the Rust `max` fn in crate `cosmic`."><title>max in cosmic::widget::canvas::path::lyon_path::geom::euclid::approxord - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid::<wbr>approxord</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">geom</a>::<wbr><a href="../index.html">euclid</a>::<wbr><a href="index.html">approxord</a></div><h1>Function <span class="fn">max</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 fn max&lt;T&gt;(x: T, y: T) -&gt; T<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a>,</div></code></pre></section></div></main></body></html>

View file

@ -0,0 +1,2 @@
<!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="API documentation for the Rust `min` fn in crate `cosmic`."><title>min in cosmic::widget::canvas::path::lyon_path::geom::euclid::approxord - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid::<wbr>approxord</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">geom</a>::<wbr><a href="../index.html">euclid</a>::<wbr><a href="index.html">approxord</a></div><h1>Function <span class="fn">min</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 fn min&lt;T&gt;(x: T, y: T) -&gt; T<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a>,</div></code></pre></section></div></main></body></html>

View file

@ -0,0 +1,3 @@
<!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="Utilities for testing approximate ordering - especially true for floating point types, where NaNs cannot be ordered."><title>cosmic::widget::canvas::path::lyon_path::geom::euclid::approxord - 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 mod"><!--[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="#">Module approxord</a></h2><h3><a href="#functions">Module Items</a></h3><ul class="block"><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid</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">geom</a>::<wbr><a href="../index.html">euclid</a></div><h1>Module <span>approxord</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><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Utilities for testing approximate ordering - especially true for
floating point types, where NaNs cannot be ordered.</p>
</div></details><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.max.html" title="fn cosmic::widget::canvas::path::lyon_path::geom::euclid::approxord::max">max</a></dt><dt><a class="fn" href="fn.min.html" title="fn cosmic::widget::canvas::path::lyon_path::geom::euclid::approxord::min">min</a></dt></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"fn":["max","min"]};

View file

@ -0,0 +1,2 @@
<!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="A set of aliases for all types, tagged with the default unknown unit."><title>cosmic::widget::canvas::path::lyon_path::geom::euclid::default - 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 mod"><!--[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="#">Module default</a></h2><h3><a href="#types">Module Items</a></h3><ul class="block"><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid</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">geom</a>::<wbr><a href="../index.html">euclid</a></div><h1>Module <span>default</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><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A set of aliases for all types, tagged with the default unknown unit.</p>
</div></details><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><dl class="item-table"><dt><a class="type" href="type.Box2D.html" title="type cosmic::widget::canvas::path::lyon_path::geom::euclid::default::Box2D">Box2D</a></dt><dt><a class="type" href="type.Box3D.html" title="type cosmic::widget::canvas::path::lyon_path::geom::euclid::default::Box3D">Box3D</a></dt><dt><a class="type" href="type.HomogeneousVector.html" title="type cosmic::widget::canvas::path::lyon_path::geom::euclid::default::HomogeneousVector">Homogeneous<wbr>Vector</a></dt><dt><a class="type" href="type.Length.html" title="type cosmic::widget::canvas::path::lyon_path::geom::euclid::default::Length">Length</a></dt><dt><a class="type" href="type.Point2D.html" title="type cosmic::widget::canvas::path::lyon_path::geom::euclid::default::Point2D">Point2D</a></dt><dt><a class="type" href="type.Point3D.html" title="type cosmic::widget::canvas::path::lyon_path::geom::euclid::default::Point3D">Point3D</a></dt><dt><a class="type" href="type.Rect.html" title="type cosmic::widget::canvas::path::lyon_path::geom::euclid::default::Rect">Rect</a></dt><dt><a class="type" href="type.RigidTransform3D.html" title="type cosmic::widget::canvas::path::lyon_path::geom::euclid::default::RigidTransform3D">Rigid<wbr>Transform3D</a></dt><dt><a class="type" href="type.Rotation2D.html" title="type cosmic::widget::canvas::path::lyon_path::geom::euclid::default::Rotation2D">Rotation2D</a></dt><dt><a class="type" href="type.Rotation3D.html" title="type cosmic::widget::canvas::path::lyon_path::geom::euclid::default::Rotation3D">Rotation3D</a></dt><dt><a class="type" href="type.Scale.html" title="type cosmic::widget::canvas::path::lyon_path::geom::euclid::default::Scale">Scale</a></dt><dt><a class="type" href="type.ScaleOffset2D.html" title="type cosmic::widget::canvas::path::lyon_path::geom::euclid::default::ScaleOffset2D">Scale<wbr>Offset2D</a></dt><dt><a class="type" href="type.SideOffsets2D.html" title="type cosmic::widget::canvas::path::lyon_path::geom::euclid::default::SideOffsets2D">Side<wbr>Offsets2D</a></dt><dt><a class="type" href="type.Size2D.html" title="type cosmic::widget::canvas::path::lyon_path::geom::euclid::default::Size2D">Size2D</a></dt><dt><a class="type" href="type.Size3D.html" title="type cosmic::widget::canvas::path::lyon_path::geom::euclid::default::Size3D">Size3D</a></dt><dt><a class="type" href="type.Transform2D.html" title="type cosmic::widget::canvas::path::lyon_path::geom::euclid::default::Transform2D">Transform2D</a></dt><dt><a class="type" href="type.Transform3D.html" title="type cosmic::widget::canvas::path::lyon_path::geom::euclid::default::Transform3D">Transform3D</a></dt><dt><a class="type" href="type.Translation2D.html" title="type cosmic::widget::canvas::path::lyon_path::geom::euclid::default::Translation2D">Translation2D</a></dt><dt><a class="type" href="type.Translation3D.html" title="type cosmic::widget::canvas::path::lyon_path::geom::euclid::default::Translation3D">Translation3D</a></dt><dt><a class="type" href="type.Vector2D.html" title="type cosmic::widget::canvas::path::lyon_path::geom::euclid::default::Vector2D">Vector2D</a></dt><dt><a class="type" href="type.Vector3D.html" title="type cosmic::widget::canvas::path::lyon_path::geom::euclid::default::Vector3D">Vector3D</a></dt></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"type":["Box2D","Box3D","HomogeneousVector","Length","Point2D","Point3D","Rect","RigidTransform3D","Rotation2D","Rotation3D","Scale","ScaleOffset2D","SideOffsets2D","Size2D","Size3D","Transform2D","Transform3D","Translation2D","Translation3D","Vector2D","Vector3D"]};

View file

@ -0,0 +1,4 @@
<!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="API documentation for the Rust `Box2D` type in crate `cosmic`."><title>Box2D in cosmic::widget::canvas::path::lyon_path::geom::euclid::default - 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 type"><!--[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="#">Box2D</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.max" title="max">max</a></li><li><a href="#structfield.min" title="min">min</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid::<wbr>default</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">geom</a>::<wbr><a href="../index.html">euclid</a>::<wbr><a href="index.html">default</a></div><h1>Type Alias <span class="type">Box2D</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 type Box2D&lt;T&gt; = <a class="struct" href="../struct.Box2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Box2D">Box2D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;;</code></pre><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct Box2D&lt;T&gt; {
pub min: <a class="struct" href="../struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
pub max: <a class="struct" href="../struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.min" class="structfield section-header"><a href="#structfield.min" class="anchor field">§</a><code>min: <a class="struct" href="../struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;</code></span><span id="structfield.max" class="structfield section-header"><a href="#structfield.max" class="anchor field">§</a><code>max: <a class="struct" href="../struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;</code></span><script src="../../../../../../../../type.impl/cosmic/widget/canvas/path/lyon_path/geom/euclid/struct.Box2D.js" data-self-path="cosmic::widget::canvas::path::lyon_path::geom::Box2D" async></script></section></div></main></body></html>

View file

@ -0,0 +1,4 @@
<!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="API documentation for the Rust `Box3D` type in crate `cosmic`."><title>Box3D in cosmic::widget::canvas::path::lyon_path::geom::euclid::default - 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 type"><!--[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="#">Box3D</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.max" title="max">max</a></li><li><a href="#structfield.min" title="min">min</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid::<wbr>default</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">geom</a>::<wbr><a href="../index.html">euclid</a>::<wbr><a href="index.html">default</a></div><h1>Type Alias <span class="type">Box3D</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 type Box3D&lt;T&gt; = <a class="struct" href="../struct.Box3D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Box3D">Box3D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;;</code></pre><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct Box3D&lt;T&gt; {
pub min: <a class="struct" href="../struct.Point3D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point3D">Point3D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
pub max: <a class="struct" href="../struct.Point3D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point3D">Point3D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.min" class="structfield section-header"><a href="#structfield.min" class="anchor field">§</a><code>min: <a class="struct" href="../struct.Point3D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point3D">Point3D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;</code></span><span id="structfield.max" class="structfield section-header"><a href="#structfield.max" class="anchor field">§</a><code>max: <a class="struct" href="../struct.Point3D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point3D">Point3D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;</code></span><script src="../../../../../../../../type.impl/cosmic/widget/canvas/path/lyon_path/geom/euclid/struct.Box3D.js" data-self-path="cosmic::widget::canvas::path::lyon_path::geom::euclid::default::Box3D" async></script></section></div></main></body></html>

View file

@ -0,0 +1,6 @@
<!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="API documentation for the Rust `HomogeneousVector` type in crate `cosmic`."><title>HomogeneousVector in cosmic::widget::canvas::path::lyon_path::geom::euclid::default - 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 type"><!--[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="#">Homogeneous<wbr>Vector</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.w" title="w">w</a></li><li><a href="#structfield.x" title="x">x</a></li><li><a href="#structfield.y" title="y">y</a></li><li><a href="#structfield.z" title="z">z</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid::<wbr>default</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">geom</a>::<wbr><a href="../index.html">euclid</a>::<wbr><a href="index.html">default</a></div><h1>Type Alias <span class="type">HomogeneousVector</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 type HomogeneousVector&lt;T&gt; = <a class="struct" href="../struct.HomogeneousVector.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::HomogeneousVector">HomogeneousVector</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;;</code></pre><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct HomogeneousVector&lt;T&gt; {
pub x: T,
pub y: T,
pub z: T,
pub w: T,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.x" class="structfield section-header"><a href="#structfield.x" class="anchor field">§</a><code>x: T</code></span><span id="structfield.y" class="structfield section-header"><a href="#structfield.y" class="anchor field">§</a><code>y: T</code></span><span id="structfield.z" class="structfield section-header"><a href="#structfield.z" class="anchor field">§</a><code>z: T</code></span><span id="structfield.w" class="structfield section-header"><a href="#structfield.w" class="anchor field">§</a><code>w: T</code></span><script src="../../../../../../../../type.impl/cosmic/widget/canvas/path/lyon_path/geom/euclid/struct.HomogeneousVector.js" data-self-path="cosmic::widget::canvas::path::lyon_path::geom::euclid::default::HomogeneousVector" async></script></section></div></main></body></html>

View file

@ -0,0 +1 @@
<!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="API documentation for the Rust `Length` type in crate `cosmic`."><title>Length in cosmic::widget::canvas::path::lyon_path::geom::euclid::default - 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 type"><!--[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="#">Length</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.0" title="0">0</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid::<wbr>default</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">geom</a>::<wbr><a href="../index.html">euclid</a>::<wbr><a href="index.html">default</a></div><h1>Type Alias <span class="type">Length</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 type Length&lt;T&gt; = <a class="struct" href="../struct.Length.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Length">Length</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;;</code></pre><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct Length&lt;T&gt;(pub T);</code></pre><h2 id="fields" class="fields section-header">Tuple Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.0" class="structfield section-header"><a href="#structfield.0" class="anchor field">§</a><code>0: T</code></span><script src="../../../../../../../../type.impl/cosmic/widget/canvas/path/lyon_path/geom/euclid/struct.Length.js" data-self-path="cosmic::widget::canvas::path::lyon_path::geom::euclid::default::Length" async></script></section></div></main></body></html>

View file

@ -0,0 +1,4 @@
<!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="API documentation for the Rust `Point2D` type in crate `cosmic`."><title>Point2D in cosmic::widget::canvas::path::lyon_path::geom::euclid::default - 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 type"><!--[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="#">Point2D</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.x" title="x">x</a></li><li><a href="#structfield.y" title="y">y</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid::<wbr>default</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">geom</a>::<wbr><a href="../index.html">euclid</a>::<wbr><a href="index.html">default</a></div><h1>Type Alias <span class="type">Point2D</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 type Point2D&lt;T&gt; = <a class="struct" href="../struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;;</code></pre><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct Point2D&lt;T&gt; {
pub x: T,
pub y: T,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.x" class="structfield section-header"><a href="#structfield.x" class="anchor field">§</a><code>x: T</code></span><span id="structfield.y" class="structfield section-header"><a href="#structfield.y" class="anchor field">§</a><code>y: T</code></span><script src="../../../../../../../../type.impl/cosmic/widget/canvas/path/lyon_path/geom/euclid/struct.Point2D.js" data-self-path="cosmic::widget::canvas::path::lyon_path::geom::Point" async></script></section></div></main></body></html>

View file

@ -0,0 +1,5 @@
<!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="API documentation for the Rust `Point3D` type in crate `cosmic`."><title>Point3D in cosmic::widget::canvas::path::lyon_path::geom::euclid::default - 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 type"><!--[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="#">Point3D</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.x" title="x">x</a></li><li><a href="#structfield.y" title="y">y</a></li><li><a href="#structfield.z" title="z">z</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid::<wbr>default</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">geom</a>::<wbr><a href="../index.html">euclid</a>::<wbr><a href="index.html">default</a></div><h1>Type Alias <span class="type">Point3D</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 type Point3D&lt;T&gt; = <a class="struct" href="../struct.Point3D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point3D">Point3D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;;</code></pre><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct Point3D&lt;T&gt; {
pub x: T,
pub y: T,
pub z: T,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.x" class="structfield section-header"><a href="#structfield.x" class="anchor field">§</a><code>x: T</code></span><span id="structfield.y" class="structfield section-header"><a href="#structfield.y" class="anchor field">§</a><code>y: T</code></span><span id="structfield.z" class="structfield section-header"><a href="#structfield.z" class="anchor field">§</a><code>z: T</code></span><script src="../../../../../../../../type.impl/cosmic/widget/canvas/path/lyon_path/geom/euclid/struct.Point3D.js" data-self-path="cosmic::widget::canvas::path::lyon_path::geom::euclid::default::Point3D" async></script></section></div></main></body></html>

View file

@ -0,0 +1,4 @@
<!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="API documentation for the Rust `Rect` type in crate `cosmic`."><title>Rect in cosmic::widget::canvas::path::lyon_path::geom::euclid::default - 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 type"><!--[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="#">Rect</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.origin" title="origin">origin</a></li><li><a href="#structfield.size" title="size">size</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid::<wbr>default</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">geom</a>::<wbr><a href="../index.html">euclid</a>::<wbr><a href="index.html">default</a></div><h1>Type Alias <span class="type">Rect</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 type Rect&lt;T&gt; = <a class="struct" href="../struct.Rect.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Rect">Rect</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;;</code></pre><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct Rect&lt;T&gt; {
pub origin: <a class="struct" href="../struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
pub size: <a class="struct" href="../struct.Size2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Size2D">Size2D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.origin" class="structfield section-header"><a href="#structfield.origin" class="anchor field">§</a><code>origin: <a class="struct" href="../struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;</code></span><span id="structfield.size" class="structfield section-header"><a href="#structfield.size" class="anchor field">§</a><code>size: <a class="struct" href="../struct.Size2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Size2D">Size2D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;</code></span><script src="../../../../../../../../type.impl/cosmic/widget/canvas/path/lyon_path/geom/euclid/struct.Rect.js" data-self-path="cosmic::widget::canvas::path::lyon_path::geom::euclid::default::Rect" async></script></section></div></main></body></html>

View file

@ -0,0 +1,4 @@
<!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="API documentation for the Rust `RigidTransform3D` type in crate `cosmic`."><title>RigidTransform3D in cosmic::widget::canvas::path::lyon_path::geom::euclid::default - 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 type"><!--[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="#">Rigid<wbr>Transform3D</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.rotation" title="rotation">rotation</a></li><li><a href="#structfield.translation" title="translation">translation</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid::<wbr>default</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">geom</a>::<wbr><a href="../index.html">euclid</a>::<wbr><a href="index.html">default</a></div><h1>Type Alias <span class="type">RigidTransform3D</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 type RigidTransform3D&lt;T&gt; = <a class="struct" href="../struct.RigidTransform3D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::RigidTransform3D">RigidTransform3D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;;</code></pre><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct RigidTransform3D&lt;T&gt; {
pub rotation: <a class="struct" href="../struct.Rotation3D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Rotation3D">Rotation3D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
pub translation: <a class="struct" href="../struct.Vector3D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector3D">Vector3D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.rotation" class="structfield section-header"><a href="#structfield.rotation" class="anchor field">§</a><code>rotation: <a class="struct" href="../struct.Rotation3D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Rotation3D">Rotation3D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;</code></span><span id="structfield.translation" class="structfield section-header"><a href="#structfield.translation" class="anchor field">§</a><code>translation: <a class="struct" href="../struct.Vector3D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector3D">Vector3D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;</code></span><script src="../../../../../../../../type.impl/cosmic/widget/canvas/path/lyon_path/geom/euclid/struct.RigidTransform3D.js" data-self-path="cosmic::widget::canvas::path::lyon_path::geom::euclid::default::RigidTransform3D" async></script></section></div></main></body></html>

View file

@ -0,0 +1,4 @@
<!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="API documentation for the Rust `Rotation2D` type in crate `cosmic`."><title>Rotation2D in cosmic::widget::canvas::path::lyon_path::geom::euclid::default - 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 type"><!--[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="#">Rotation2D</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.angle" title="angle">angle</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid::<wbr>default</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">geom</a>::<wbr><a href="../index.html">euclid</a>::<wbr><a href="index.html">default</a></div><h1>Type Alias <span class="type">Rotation2D</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 type Rotation2D&lt;T&gt; = <a class="struct" href="../struct.Rotation2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Rotation2D">Rotation2D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;;</code></pre><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct Rotation2D&lt;T&gt; {
pub angle: T,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.angle" class="structfield section-header"><a href="#structfield.angle" class="anchor field">§</a><code>angle: T</code></span><div class="docblock"><p>Angle in radians</p>
</div><script src="../../../../../../../../type.impl/cosmic/widget/canvas/path/lyon_path/geom/euclid/struct.Rotation2D.js" data-self-path="cosmic::widget::canvas::path::lyon_path::geom::euclid::default::Rotation2D" async></script></section></div></main></body></html>

View file

@ -0,0 +1,10 @@
<!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="API documentation for the Rust `Rotation3D` type in crate `cosmic`."><title>Rotation3D in cosmic::widget::canvas::path::lyon_path::geom::euclid::default - 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 type"><!--[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="#">Rotation3D</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.i" title="i">i</a></li><li><a href="#structfield.j" title="j">j</a></li><li><a href="#structfield.k" title="k">k</a></li><li><a href="#structfield.r" title="r">r</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid::<wbr>default</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">geom</a>::<wbr><a href="../index.html">euclid</a>::<wbr><a href="index.html">default</a></div><h1>Type Alias <span class="type">Rotation3D</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 type Rotation3D&lt;T&gt; = <a class="struct" href="../struct.Rotation3D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Rotation3D">Rotation3D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;;</code></pre><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct Rotation3D&lt;T&gt; {
pub i: T,
pub j: T,
pub k: T,
pub r: T,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.i" class="structfield section-header"><a href="#structfield.i" class="anchor field">§</a><code>i: T</code></span><div class="docblock"><p>Component multiplied by the imaginary number <code>i</code>.</p>
</div><span id="structfield.j" class="structfield section-header"><a href="#structfield.j" class="anchor field">§</a><code>j: T</code></span><div class="docblock"><p>Component multiplied by the imaginary number <code>j</code>.</p>
</div><span id="structfield.k" class="structfield section-header"><a href="#structfield.k" class="anchor field">§</a><code>k: T</code></span><div class="docblock"><p>Component multiplied by the imaginary number <code>k</code>.</p>
</div><span id="structfield.r" class="structfield section-header"><a href="#structfield.r" class="anchor field">§</a><code>r: T</code></span><div class="docblock"><p>The real part.</p>
</div><script src="../../../../../../../../type.impl/cosmic/widget/canvas/path/lyon_path/geom/euclid/struct.Rotation3D.js" data-self-path="cosmic::widget::canvas::path::lyon_path::geom::euclid::default::Rotation3D" async></script></section></div></main></body></html>

View file

@ -0,0 +1 @@
<!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="API documentation for the Rust `Scale` type in crate `cosmic`."><title>Scale in cosmic::widget::canvas::path::lyon_path::geom::euclid::default - 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 type"><!--[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="#">Scale</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.0" title="0">0</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid::<wbr>default</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">geom</a>::<wbr><a href="../index.html">euclid</a>::<wbr><a href="index.html">default</a></div><h1>Type Alias <span class="type">Scale</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 type Scale&lt;T&gt; = <a class="struct" href="../struct.Scale.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Scale">Scale</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;;</code></pre><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct Scale&lt;T&gt;(pub T);</code></pre><h2 id="fields" class="fields section-header">Tuple Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.0" class="structfield section-header"><a href="#structfield.0" class="anchor field">§</a><code>0: T</code></span><script src="../../../../../../../../type.impl/cosmic/widget/canvas/path/lyon_path/geom/euclid/struct.Scale.js" data-self-path="cosmic::widget::canvas::path::lyon_path::geom::Scale" async></script></section></div></main></body></html>

View file

@ -0,0 +1,6 @@
<!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="API documentation for the Rust `ScaleOffset2D` type in crate `cosmic`."><title>ScaleOffset2D in cosmic::widget::canvas::path::lyon_path::geom::euclid::default - 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 type"><!--[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="#">Scale<wbr>Offset2D</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.sx" title="sx">sx</a></li><li><a href="#structfield.sy" title="sy">sy</a></li><li><a href="#structfield.tx" title="tx">tx</a></li><li><a href="#structfield.ty" title="ty">ty</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid::<wbr>default</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">geom</a>::<wbr><a href="../index.html">euclid</a>::<wbr><a href="index.html">default</a></div><h1>Type Alias <span class="type">ScaleOffset2D</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 type ScaleOffset2D&lt;T&gt; = <a class="struct" href="../struct.ScaleOffset2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::ScaleOffset2D">ScaleOffset2D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;;</code></pre><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct ScaleOffset2D&lt;T&gt; {
pub sx: T,
pub sy: T,
pub tx: T,
pub ty: T,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.sx" class="structfield section-header"><a href="#structfield.sx" class="anchor field">§</a><code>sx: T</code></span><span id="structfield.sy" class="structfield section-header"><a href="#structfield.sy" class="anchor field">§</a><code>sy: T</code></span><span id="structfield.tx" class="structfield section-header"><a href="#structfield.tx" class="anchor field">§</a><code>tx: T</code></span><span id="structfield.ty" class="structfield section-header"><a href="#structfield.ty" class="anchor field">§</a><code>ty: T</code></span><script src="../../../../../../../../type.impl/cosmic/widget/canvas/path/lyon_path/geom/euclid/struct.ScaleOffset2D.js" data-self-path="cosmic::widget::canvas::path::lyon_path::geom::euclid::default::ScaleOffset2D" async></script></section></div></main></body></html>

View file

@ -0,0 +1,6 @@
<!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="API documentation for the Rust `SideOffsets2D` type in crate `cosmic`."><title>SideOffsets2D in cosmic::widget::canvas::path::lyon_path::geom::euclid::default - 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 type"><!--[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="#">Side<wbr>Offsets2D</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.bottom" title="bottom">bottom</a></li><li><a href="#structfield.left" title="left">left</a></li><li><a href="#structfield.right" title="right">right</a></li><li><a href="#structfield.top" title="top">top</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid::<wbr>default</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">geom</a>::<wbr><a href="../index.html">euclid</a>::<wbr><a href="index.html">default</a></div><h1>Type Alias <span class="type">SideOffsets2D</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 type SideOffsets2D&lt;T&gt; = <a class="struct" href="../struct.SideOffsets2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::SideOffsets2D">SideOffsets2D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;;</code></pre><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct SideOffsets2D&lt;T&gt; {
pub top: T,
pub right: T,
pub bottom: T,
pub left: T,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.top" class="structfield section-header"><a href="#structfield.top" class="anchor field">§</a><code>top: T</code></span><span id="structfield.right" class="structfield section-header"><a href="#structfield.right" class="anchor field">§</a><code>right: T</code></span><span id="structfield.bottom" class="structfield section-header"><a href="#structfield.bottom" class="anchor field">§</a><code>bottom: T</code></span><span id="structfield.left" class="structfield section-header"><a href="#structfield.left" class="anchor field">§</a><code>left: T</code></span><script src="../../../../../../../../type.impl/cosmic/widget/canvas/path/lyon_path/geom/euclid/struct.SideOffsets2D.js" data-self-path="cosmic::widget::canvas::path::lyon_path::geom::euclid::default::SideOffsets2D" async></script></section></div></main></body></html>

View file

@ -0,0 +1,6 @@
<!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="API documentation for the Rust `Size2D` type in crate `cosmic`."><title>Size2D in cosmic::widget::canvas::path::lyon_path::geom::euclid::default - 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 type"><!--[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="#">Size2D</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.height" title="height">height</a></li><li><a href="#structfield.width" title="width">width</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid::<wbr>default</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">geom</a>::<wbr><a href="../index.html">euclid</a>::<wbr><a href="index.html">default</a></div><h1>Type Alias <span class="type">Size2D</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 type Size2D&lt;T&gt; = <a class="struct" href="../struct.Size2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Size2D">Size2D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;;</code></pre><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct Size2D&lt;T&gt; {
pub width: T,
pub height: T,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.width" class="structfield section-header"><a href="#structfield.width" class="anchor field">§</a><code>width: T</code></span><div class="docblock"><p>The extent of the element in the <code>U</code> units along the <code>x</code> axis (usually horizontal).</p>
</div><span id="structfield.height" class="structfield section-header"><a href="#structfield.height" class="anchor field">§</a><code>height: T</code></span><div class="docblock"><p>The extent of the element in the <code>U</code> units along the <code>y</code> axis (usually vertical).</p>
</div><script src="../../../../../../../../type.impl/cosmic/widget/canvas/path/lyon_path/geom/euclid/struct.Size2D.js" data-self-path="cosmic::widget::canvas::path::lyon_path::geom::Size" async></script></section></div></main></body></html>

View file

@ -0,0 +1,8 @@
<!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="API documentation for the Rust `Size3D` type in crate `cosmic`."><title>Size3D in cosmic::widget::canvas::path::lyon_path::geom::euclid::default - 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 type"><!--[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="#">Size3D</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.depth" title="depth">depth</a></li><li><a href="#structfield.height" title="height">height</a></li><li><a href="#structfield.width" title="width">width</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid::<wbr>default</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">geom</a>::<wbr><a href="../index.html">euclid</a>::<wbr><a href="index.html">default</a></div><h1>Type Alias <span class="type">Size3D</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 type Size3D&lt;T&gt; = <a class="struct" href="../struct.Size3D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Size3D">Size3D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;;</code></pre><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct Size3D&lt;T&gt; {
pub width: T,
pub height: T,
pub depth: T,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.width" class="structfield section-header"><a href="#structfield.width" class="anchor field">§</a><code>width: T</code></span><div class="docblock"><p>The extent of the element in the <code>U</code> units along the <code>x</code> axis.</p>
</div><span id="structfield.height" class="structfield section-header"><a href="#structfield.height" class="anchor field">§</a><code>height: T</code></span><div class="docblock"><p>The extent of the element in the <code>U</code> units along the <code>y</code> axis.</p>
</div><span id="structfield.depth" class="structfield section-header"><a href="#structfield.depth" class="anchor field">§</a><code>depth: T</code></span><div class="docblock"><p>The extent of the element in the <code>U</code> units along the <code>z</code> axis.</p>
</div><script src="../../../../../../../../type.impl/cosmic/widget/canvas/path/lyon_path/geom/euclid/struct.Size3D.js" data-self-path="cosmic::widget::canvas::path::lyon_path::geom::euclid::default::Size3D" async></script></section></div></main></body></html>

View file

@ -0,0 +1,8 @@
<!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="API documentation for the Rust `Transform2D` type in crate `cosmic`."><title>Transform2D in cosmic::widget::canvas::path::lyon_path::geom::euclid::default - 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 type"><!--[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="#">Transform2D</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.m11" title="m11">m11</a></li><li><a href="#structfield.m12" title="m12">m12</a></li><li><a href="#structfield.m21" title="m21">m21</a></li><li><a href="#structfield.m22" title="m22">m22</a></li><li><a href="#structfield.m31" title="m31">m31</a></li><li><a href="#structfield.m32" title="m32">m32</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid::<wbr>default</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">geom</a>::<wbr><a href="../index.html">euclid</a>::<wbr><a href="index.html">default</a></div><h1>Type Alias <span class="type">Transform2D</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 type Transform2D&lt;T&gt; = <a class="struct" href="../struct.Transform2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Transform2D">Transform2D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;;</code></pre><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct Transform2D&lt;T&gt; {
pub m11: T,
pub m12: T,
pub m21: T,
pub m22: T,
pub m31: T,
pub m32: T,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.m11" class="structfield section-header"><a href="#structfield.m11" class="anchor field">§</a><code>m11: T</code></span><span id="structfield.m12" class="structfield section-header"><a href="#structfield.m12" class="anchor field">§</a><code>m12: T</code></span><span id="structfield.m21" class="structfield section-header"><a href="#structfield.m21" class="anchor field">§</a><code>m21: T</code></span><span id="structfield.m22" class="structfield section-header"><a href="#structfield.m22" class="anchor field">§</a><code>m22: T</code></span><span id="structfield.m31" class="structfield section-header"><a href="#structfield.m31" class="anchor field">§</a><code>m31: T</code></span><span id="structfield.m32" class="structfield section-header"><a href="#structfield.m32" class="anchor field">§</a><code>m32: T</code></span><script src="../../../../../../../../type.impl/cosmic/widget/canvas/path/lyon_path/geom/euclid/struct.Transform2D.js" data-self-path="cosmic::widget::canvas::path::lyon_path::geom::euclid::default::Transform2D" async></script></section></div></main></body></html>

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,4 @@
<!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="API documentation for the Rust `Translation2D` type in crate `cosmic`."><title>Translation2D in cosmic::widget::canvas::path::lyon_path::geom::euclid::default - 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 type"><!--[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="#">Translation2D</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.x" title="x">x</a></li><li><a href="#structfield.y" title="y">y</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid::<wbr>default</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">geom</a>::<wbr><a href="../index.html">euclid</a>::<wbr><a href="index.html">default</a></div><h1>Type Alias <span class="type">Translation2D</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 type Translation2D&lt;T&gt; = <a class="struct" href="../struct.Translation2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Translation2D">Translation2D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;;</code></pre><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct Translation2D&lt;T&gt; {
pub x: T,
pub y: T,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.x" class="structfield section-header"><a href="#structfield.x" class="anchor field">§</a><code>x: T</code></span><span id="structfield.y" class="structfield section-header"><a href="#structfield.y" class="anchor field">§</a><code>y: T</code></span><script src="../../../../../../../../type.impl/cosmic/widget/canvas/path/lyon_path/geom/euclid/struct.Translation2D.js" data-self-path="cosmic::widget::canvas::path::lyon_path::geom::euclid::default::Translation2D" async></script></section></div></main></body></html>

View file

@ -0,0 +1,5 @@
<!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="API documentation for the Rust `Translation3D` type in crate `cosmic`."><title>Translation3D in cosmic::widget::canvas::path::lyon_path::geom::euclid::default - 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 type"><!--[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="#">Translation3D</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.x" title="x">x</a></li><li><a href="#structfield.y" title="y">y</a></li><li><a href="#structfield.z" title="z">z</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid::<wbr>default</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">geom</a>::<wbr><a href="../index.html">euclid</a>::<wbr><a href="index.html">default</a></div><h1>Type Alias <span class="type">Translation3D</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 type Translation3D&lt;T&gt; = <a class="struct" href="../struct.Translation3D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Translation3D">Translation3D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;;</code></pre><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct Translation3D&lt;T&gt; {
pub x: T,
pub y: T,
pub z: T,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.x" class="structfield section-header"><a href="#structfield.x" class="anchor field">§</a><code>x: T</code></span><span id="structfield.y" class="structfield section-header"><a href="#structfield.y" class="anchor field">§</a><code>y: T</code></span><span id="structfield.z" class="structfield section-header"><a href="#structfield.z" class="anchor field">§</a><code>z: T</code></span><script src="../../../../../../../../type.impl/cosmic/widget/canvas/path/lyon_path/geom/euclid/struct.Translation3D.js" data-self-path="cosmic::widget::canvas::path::lyon_path::geom::euclid::default::Translation3D" async></script></section></div></main></body></html>

View file

@ -0,0 +1,6 @@
<!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="API documentation for the Rust `Vector2D` type in crate `cosmic`."><title>Vector2D in cosmic::widget::canvas::path::lyon_path::geom::euclid::default - 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 type"><!--[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="#">Vector2D</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.x" title="x">x</a></li><li><a href="#structfield.y" title="y">y</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid::<wbr>default</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">geom</a>::<wbr><a href="../index.html">euclid</a>::<wbr><a href="index.html">default</a></div><h1>Type Alias <span class="type">Vector2D</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 type Vector2D&lt;T&gt; = <a class="struct" href="../struct.Vector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector2D">Vector2D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;;</code></pre><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct Vector2D&lt;T&gt; {
pub x: T,
pub y: T,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.x" class="structfield section-header"><a href="#structfield.x" class="anchor field">§</a><code>x: T</code></span><div class="docblock"><p>The <code>x</code> (traditionally, horizontal) coordinate.</p>
</div><span id="structfield.y" class="structfield section-header"><a href="#structfield.y" class="anchor field">§</a><code>y: T</code></span><div class="docblock"><p>The <code>y</code> (traditionally, vertical) coordinate.</p>
</div><script src="../../../../../../../../type.impl/cosmic/widget/canvas/path/lyon_path/geom/euclid/struct.Vector2D.js" data-self-path="cosmic::widget::canvas::path::lyon_path::geom::Vector" async></script></section></div></main></body></html>

View file

@ -0,0 +1,8 @@
<!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="API documentation for the Rust `Vector3D` type in crate `cosmic`."><title>Vector3D in cosmic::widget::canvas::path::lyon_path::geom::euclid::default - 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 type"><!--[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="#">Vector3D</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.x" title="x">x</a></li><li><a href="#structfield.y" title="y">y</a></li><li><a href="#structfield.z" title="z">z</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid::<wbr>default</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">geom</a>::<wbr><a href="../index.html">euclid</a>::<wbr><a href="index.html">default</a></div><h1>Type Alias <span class="type">Vector3D</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 type Vector3D&lt;T&gt; = <a class="struct" href="../struct.Vector3D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Vector3D">Vector3D</a>&lt;T, <a class="struct" href="../struct.UnknownUnit.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::UnknownUnit">UnknownUnit</a>&gt;;</code></pre><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct Vector3D&lt;T&gt; {
pub x: T,
pub y: T,
pub z: T,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.x" class="structfield section-header"><a href="#structfield.x" class="anchor field">§</a><code>x: T</code></span><div class="docblock"><p>The <code>x</code> (traditionally, horizontal) coordinate.</p>
</div><span id="structfield.y" class="structfield section-header"><a href="#structfield.y" class="anchor field">§</a><code>y: T</code></span><div class="docblock"><p>The <code>y</code> (traditionally, vertical) coordinate.</p>
</div><span id="structfield.z" class="structfield section-header"><a href="#structfield.z" class="anchor field">§</a><code>z: T</code></span><div class="docblock"><p>The <code>z</code> (traditionally, depth) coordinate.</p>
</div><script src="../../../../../../../../type.impl/cosmic/widget/canvas/path/lyon_path/geom/euclid/struct.Vector3D.js" data-self-path="cosmic::widget::canvas::path::lyon_path::geom::euclid::default::Vector3D" async></script></section></div></main></body></html>

View file

@ -0,0 +1,10 @@
<!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="Shorthand for `Box3D::new(Point3D::new(x1, y1, z1), Point3D::new(x2, y2, z2))`."><title>box3d in cosmic::widget::canvas::path::lyon_path::geom::euclid - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid</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">geom</a>::<wbr><a href="index.html">euclid</a></div><h1>Function <span class="fn">box3d</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 fn box3d&lt;T, U&gt;(
min_x: T,
min_y: T,
min_z: T,
max_x: T,
max_y: T,
max_z: T,
) -&gt; <a class="struct" href="struct.Box3D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Box3D">Box3D</a>&lt;T, U&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Shorthand for <code>Box3D::new(Point3D::new(x1, y1, z1), Point3D::new(x2, y2, z2))</code>.</p>
</div></details></section></div></main></body></html>

View file

@ -0,0 +1,2 @@
<!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="Shorthand for `BoolVector2D { x, y }`."><title>bvec2 in cosmic::widget::canvas::path::lyon_path::geom::euclid - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid</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">geom</a>::<wbr><a href="index.html">euclid</a></div><h1>Function <span class="fn">bvec2</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 const fn bvec2(x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -&gt; <a class="struct" href="struct.BoolVector2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::BoolVector2D">BoolVector2D</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Shorthand for <code>BoolVector2D { x, y }</code>.</p>
</div></details></section></div></main></body></html>

View file

@ -0,0 +1,2 @@
<!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="Shorthand for `BoolVector3D { x, y, z }`."><title>bvec3 in cosmic::widget::canvas::path::lyon_path::geom::euclid - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid</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">geom</a>::<wbr><a href="index.html">euclid</a></div><h1>Function <span class="fn">bvec3</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 const fn bvec3(x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, z: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -&gt; <a class="struct" href="struct.BoolVector3D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::BoolVector3D">BoolVector3D</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Shorthand for <code>BoolVector3D { x, y, z }</code>.</p>
</div></details></section></div></main></body></html>

View file

@ -0,0 +1,2 @@
<!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="Shorthand for `Point2D::new(x, y)`."><title>point2 in cosmic::widget::canvas::path::lyon_path::geom::euclid - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>widget::<wbr>canvas::<wbr>path::<wbr>lyon_<wbr>path::<wbr>geom::<wbr>euclid</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">geom</a>::<wbr><a href="index.html">euclid</a></div><h1>Function <span class="fn">point2</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 const fn point2&lt;T, U&gt;(x: T, y: T) -&gt; <a class="struct" href="struct.Point2D.html" title="struct cosmic::widget::canvas::path::lyon_path::geom::euclid::Point2D">Point2D</a>&lt;T, U&gt;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Shorthand for <code>Point2D::new(x, y)</code>.</p>
</div></details></section></div></main></body></html>

Some files were not shown because too many files have changed in this diff Show more