Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Feb 12, 2025
1 parent d496357 commit 4a8786c
Show file tree
Hide file tree
Showing 173 changed files with 906 additions and 568 deletions.
2 changes: 1 addition & 1 deletion iced/advanced/trait.Widget.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ <h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
_renderer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;Renderer</a>,
_translation: <a class="struct" href="../struct.Vector.html" title="struct iced::Vector">Vector</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="overlay/struct.Element.html" title="struct iced::advanced::overlay::Element">Element</a>&lt;'a, Message, Theme, Renderer&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns the overlay of the <a href="trait.Widget.html" title="trait iced::advanced::Widget"><code>Widget</code></a>, if there is any.</p>
</div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Borrow%3Cdyn+Widget%3CMessage,+Theme,+Renderer%3E%3E-for-%26Element%3C'a,+Message,+Theme,+Renderer%3E" class="impl"><a class="src rightside" href="../../src/iced_core/element.rs.html#232-234">Source</a><a href="#impl-Borrow%3Cdyn+Widget%3CMessage,+Theme,+Renderer%3E%3E-for-%26Element%3C'a,+Message,+Theme,+Renderer%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, Message, Theme, Renderer&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;dyn <a class="trait" href="trait.Widget.html" title="trait iced::advanced::Widget">Widget</a>&lt;Message, Theme, Renderer&gt; + 'a&gt; for &amp;<a class="struct" href="../../iced_core/element/struct.Element.html" title="struct iced_core::element::Element">Element</a>&lt;'a, Message, Theme, Renderer&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow-1" class="method trait-impl"><a class="src rightside" href="../../src/iced_core/element.rs.html#236">Source</a><a href="#method.borrow-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&amp;self) -&gt; &amp;(dyn <a class="trait" href="trait.Widget.html" title="trait iced::advanced::Widget">Widget</a>&lt;Message, Theme, Renderer&gt; + 'a)</h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Borrow%3Cdyn+Widget%3CMessage,+Theme,+Renderer%3E%3E-for-Element%3C'a,+Message,+Theme,+Renderer%3E" class="impl"><a class="src rightside" href="../../src/iced_core/element.rs.html#223-225">Source</a><a href="#impl-Borrow%3Cdyn+Widget%3CMessage,+Theme,+Renderer%3E%3E-for-Element%3C'a,+Message,+Theme,+Renderer%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, Message, Theme, Renderer&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;dyn <a class="trait" href="trait.Widget.html" title="trait iced::advanced::Widget">Widget</a>&lt;Message, Theme, Renderer&gt; + 'a&gt; for <a class="struct" href="../../iced_core/element/struct.Element.html" title="struct iced_core::element::Element">Element</a>&lt;'a, Message, Theme, Renderer&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="../../src/iced_core/element.rs.html#227">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&amp;self) -&gt; &amp;(dyn <a class="trait" href="trait.Widget.html" title="trait iced::advanced::Widget">Widget</a>&lt;Message, Theme, Renderer&gt; + 'a)</h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-Widget%3CMessage,+Theme,+Renderer%3E-for-Button%3C'a,+Message,+Theme,+Renderer%3E" class="impl"><a class="src rightside" href="../../src/iced_widget/button.rs.html#207-212">Source</a><a href="#impl-Widget%3CMessage,+Theme,+Renderer%3E-for-Button%3C'a,+Message,+Theme,+Renderer%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, Message, Theme, Renderer&gt; <a class="trait" href="trait.Widget.html" title="trait iced::advanced::Widget">Widget</a>&lt;Message, Theme, Renderer&gt; for <a class="struct" href="../widget/struct.Button.html" title="struct iced::widget::Button">Button</a>&lt;'a, Message, Theme, Renderer&gt;<div class="where">where
</div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Borrow%3Cdyn+Widget%3CMessage,+Theme,+Renderer%3E%3E-for-%26Element%3C'a,+Message,+Theme,+Renderer%3E" class="impl"><a class="src rightside" href="../../src/iced_core/element.rs.html#233-235">Source</a><a href="#impl-Borrow%3Cdyn+Widget%3CMessage,+Theme,+Renderer%3E%3E-for-%26Element%3C'a,+Message,+Theme,+Renderer%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, Message, Theme, Renderer&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;dyn <a class="trait" href="trait.Widget.html" title="trait iced::advanced::Widget">Widget</a>&lt;Message, Theme, Renderer&gt; + 'a&gt; for &amp;<a class="struct" href="../../iced_core/element/struct.Element.html" title="struct iced_core::element::Element">Element</a>&lt;'a, Message, Theme, Renderer&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow-1" class="method trait-impl"><a class="src rightside" href="../../src/iced_core/element.rs.html#237">Source</a><a href="#method.borrow-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&amp;self) -&gt; &amp;(dyn <a class="trait" href="trait.Widget.html" title="trait iced::advanced::Widget">Widget</a>&lt;Message, Theme, Renderer&gt; + 'a)</h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Borrow%3Cdyn+Widget%3CMessage,+Theme,+Renderer%3E%3E-for-Element%3C'a,+Message,+Theme,+Renderer%3E" class="impl"><a class="src rightside" href="../../src/iced_core/element.rs.html#224-226">Source</a><a href="#impl-Borrow%3Cdyn+Widget%3CMessage,+Theme,+Renderer%3E%3E-for-Element%3C'a,+Message,+Theme,+Renderer%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, Message, Theme, Renderer&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;dyn <a class="trait" href="trait.Widget.html" title="trait iced::advanced::Widget">Widget</a>&lt;Message, Theme, Renderer&gt; + 'a&gt; for <a class="struct" href="../../iced_core/element/struct.Element.html" title="struct iced_core::element::Element">Element</a>&lt;'a, Message, Theme, Renderer&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="../../src/iced_core/element.rs.html#228">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&amp;self) -&gt; &amp;(dyn <a class="trait" href="trait.Widget.html" title="trait iced::advanced::Widget">Widget</a>&lt;Message, Theme, Renderer&gt; + 'a)</h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-Widget%3CMessage,+Theme,+Renderer%3E-for-Button%3C'a,+Message,+Theme,+Renderer%3E" class="impl"><a class="src rightside" href="../../src/iced_widget/button.rs.html#207-212">Source</a><a href="#impl-Widget%3CMessage,+Theme,+Renderer%3E-for-Button%3C'a,+Message,+Theme,+Renderer%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, Message, Theme, Renderer&gt; <a class="trait" href="trait.Widget.html" title="trait iced::advanced::Widget">Widget</a>&lt;Message, Theme, Renderer&gt; for <a class="struct" href="../widget/struct.Button.html" title="struct iced::widget::Button">Button</a>&lt;'a, Message, Theme, Renderer&gt;<div class="where">where
Message: 'a + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
Renderer: 'a + <a class="trait" href="trait.Renderer.html" title="trait iced::advanced::Renderer">Renderer</a>,
Theme: <a class="trait" href="../widget/button/trait.Catalog.html" title="trait iced::widget::button::Catalog">Catalog</a>,</div></h3></section><section id="impl-Widget%3CMessage,+Theme,+Renderer%3E-for-Stack%3C'a,+Message,+Theme,+Renderer%3E" class="impl"><a class="src rightside" href="../../src/iced_widget/stack.rs.html#128-131">Source</a><a href="#impl-Widget%3CMessage,+Theme,+Renderer%3E-for-Stack%3C'a,+Message,+Theme,+Renderer%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, Message, Theme, Renderer&gt; <a class="trait" href="trait.Widget.html" title="trait iced::advanced::Widget">Widget</a>&lt;Message, Theme, Renderer&gt; for <a class="struct" href="../widget/struct.Stack.html" title="struct iced::widget::Stack">Stack</a>&lt;'a, Message, Theme, Renderer&gt;<div class="where">where
Expand Down
2 changes: 1 addition & 1 deletion iced/advanced/widget/fn.operate.html
Original file line number Diff line number Diff line change
@@ -1,4 +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="Creates a new `Task` that runs the given `widget::Operation` and produces its output."><title>operate in iced::advanced::widget - 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-cf3c48c1.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="iced" data-themes="" data-resource-suffix="" data-rustdoc-version="1.86.0-nightly (6171d944a 2025-02-10)" data-channel="nightly" data-search-js="search-581efc7a.js" data-settings-js="settings-6dad6058.js" ><script src="../../../static.files/storage-3a5871a4.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-4d63596a.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-893ab5e7.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><a class="logo-container" href="../../../iced/index.html"><img src="https://raw.githubusercontent.com/iced-rs/iced/bdf0430880f5c29443f5f0a0ae4895866dfef4c6/docs/logo.svg" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../../../iced/index.html"><img src="https://raw.githubusercontent.com/iced-rs/iced/bdf0430880f5c29443f5f0a0ae4895866dfef4c6/docs/logo.svg" alt="logo"></a><h2><a href="../../../iced/index.html">iced</a><span class="version">0.14.0-dev</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In iced::<wbr>advanced::<wbr>widget</a></h2></div></div></nav><div class="sidebar-resizer"></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">iced</a>::<wbr><a href="../index.html">advanced</a>::<wbr><a href="index.html">widget</a></div><h1>Function <span class="fn">operate</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="../../../src/iced_runtime/task.rs.html#327-329">Source</a> </span></div><pre class="rust item-decl"><code>pub fn operate&lt;T&gt;(operation: impl <a class="trait" href="trait.Operation.html" title="trait iced::advanced::widget::Operation">Operation</a>&lt;T&gt; + 'static) -&gt; <a class="struct" href="../../struct.Task.html" title="struct iced::Task">Task</a>&lt;T&gt;<div class="where">where
<!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 `Task` that runs the given `widget::Operation` and produces its output."><title>operate in iced::advanced::widget - 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-cf3c48c1.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="iced" data-themes="" data-resource-suffix="" data-rustdoc-version="1.86.0-nightly (6171d944a 2025-02-10)" data-channel="nightly" data-search-js="search-581efc7a.js" data-settings-js="settings-6dad6058.js" ><script src="../../../static.files/storage-3a5871a4.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-4d63596a.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-893ab5e7.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><a class="logo-container" href="../../../iced/index.html"><img src="https://raw.githubusercontent.com/iced-rs/iced/bdf0430880f5c29443f5f0a0ae4895866dfef4c6/docs/logo.svg" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../../../iced/index.html"><img src="https://raw.githubusercontent.com/iced-rs/iced/bdf0430880f5c29443f5f0a0ae4895866dfef4c6/docs/logo.svg" alt="logo"></a><h2><a href="../../../iced/index.html">iced</a><span class="version">0.14.0-dev</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In iced::<wbr>advanced::<wbr>widget</a></h2></div></div></nav><div class="sidebar-resizer"></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">iced</a>::<wbr><a href="../index.html">advanced</a>::<wbr><a href="index.html">widget</a></div><h1>Function <span class="fn">operate</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="../../../src/iced_runtime/task.rs.html#345-347">Source</a> </span></div><pre class="rust item-decl"><code>pub fn operate&lt;T&gt;(operation: impl <a class="trait" href="trait.Operation.html" title="trait iced::advanced::widget::Operation">Operation</a>&lt;T&gt; + 'static) -&gt; <a class="struct" href="../../struct.Task.html" title="struct iced::Task">Task</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,</div></code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>advanced</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <a href="../../struct.Task.html" title="struct iced::Task"><code>Task</code></a> that runs the given <a href="trait.Operation.html" title="trait iced::advanced::widget::Operation"><code>widget::Operation</code></a> and produces
its output.</p>
</div></details></section></div></main></body></html>
Loading

0 comments on commit 4a8786c

Please sign in to comment.