deploy: 95756b1a57
This commit is contained in:
commit
0fa87f2b35
16382 changed files with 734838 additions and 0 deletions
17
cosmic/iced/application/timed/fn.timed.html
Normal file
17
cosmic/iced/application/timed/fn.timed.html
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<!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 an `Application` with an `update` function that also takes the `Instant` of each `Message`."><title>timed in cosmic::iced::application::timed - 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>iced::<wbr>application::<wbr>timed</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">iced</a>::<wbr><a href="../index.html">application</a>::<wbr><a href="index.html">timed</a></div><h1>Function <span class="fn">timed</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 timed<State, Message, Theme, Renderer>(
|
||||
boot: impl <a class="trait" href="../trait.BootFn.html" title="trait cosmic::iced::application::BootFn">BootFn</a><State, Message>,
|
||||
update: impl <a class="trait" href="trait.UpdateFn.html" title="trait cosmic::iced::application::timed::UpdateFn">UpdateFn</a><State, Message>,
|
||||
subscription: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&State</a>) -> <a class="struct" href="../../struct.Subscription.html" title="struct cosmic::iced::Subscription">Subscription</a><Message>,
|
||||
view: impl for<'a> <a class="trait" href="../trait.ViewFn.html" title="trait cosmic::iced::application::ViewFn">ViewFn</a><'a, State, Message, Theme, Renderer>,
|
||||
) -> <a class="struct" href="../../struct.Application.html" title="struct cosmic::iced::Application">Application</a><impl <a class="trait" href="../../trait.Program.html" title="trait cosmic::iced::Program">Program</a><State = State, Message = (Message, <a class="struct" href="../../time/struct.Instant.html" title="struct cosmic::iced::time::Instant">Instant</a>), Theme = Theme>><div class="where">where
|
||||
State: 'static,
|
||||
Message: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,
|
||||
Theme: <a class="trait" href="../../daemon/program/graphics/core/theme/trait.Base.html" title="trait cosmic::iced::daemon::program::graphics::core::theme::Base">Base</a> + 'static,
|
||||
Renderer: <a class="trait" href="../../daemon/program/trait.Renderer.html" title="trait cosmic::iced::daemon::program::Renderer">Renderer</a> + 'static,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates an <a href="../../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a> with an <code>update</code> function that also
|
||||
takes the <a href="../../time/struct.Instant.html" title="struct cosmic::iced::time::Instant"><code>Instant</code></a> of each <code>Message</code>.</p>
|
||||
<p>This constructor is useful to create animated applications that
|
||||
are <em>pure</em> (e.g. without relying on side-effect calls like <a href="../../time/struct.Instant.html#method.now" title="associated function cosmic::iced::time::Instant::now"><code>Instant::now</code></a>).</p>
|
||||
<p>Purity is needed when you want your application to end up in the
|
||||
same exact state given the same history of messages. This property
|
||||
enables proper time traveling debugging with <a href="https://github.com/iced-rs/comet"><code>comet</code></a>.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
3
cosmic/iced/application/timed/index.html
Normal file
3
cosmic/iced/application/timed/index.html
Normal 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="An `Application` that receives an `Instant` in update logic."><title>cosmic::iced::application::timed - 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 timed</a></h2><h3><a href="#traits">Module Items</a></h3><ul class="block"><li><a href="#traits" title="Traits">Traits</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>iced::<wbr>application</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">iced</a>::<wbr><a href="../index.html">application</a></div><h1>Module <span>timed</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>An <a href="../../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a> that receives an <a href="../../time/struct.Instant.html" title="struct cosmic::iced::time::Instant"><code>Instant</code></a> in update logic.</p>
|
||||
</div></details><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.UpdateFn.html" title="trait cosmic::iced::application::timed::UpdateFn">Update<wbr>Fn</a></dt><dd>The update logic of some timed <a href="../../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a>.</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.timed.html" title="fn cosmic::iced::application::timed::timed">timed</a></dt><dd>Creates an <a href="../../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a> with an <code>update</code> function that also
|
||||
takes the <a href="../../time/struct.Instant.html" title="struct cosmic::iced::time::Instant"><code>Instant</code></a> of each <code>Message</code>.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/iced/application/timed/sidebar-items.js
Normal file
1
cosmic/iced/application/timed/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"fn":["timed"],"trait":["UpdateFn"]};
|
||||
25
cosmic/iced/application/timed/trait.UpdateFn.html
Normal file
25
cosmic/iced/application/timed/trait.UpdateFn.html
Normal 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="The update logic of some timed `Application`."><title>UpdateFn in cosmic::iced::application::timed - 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="#">Update<wbr>Fn</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.update" title="update">update</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-UpdateFn%3CState,+Message%3E-for-()" title="()">()</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>iced::<wbr>application::<wbr>timed</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">iced</a>::<wbr><a href="../index.html">application</a>::<wbr><a href="index.html">timed</a></div><h1>Trait <span class="trait">UpdateFn</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 UpdateFn<State, Message> {
|
||||
// Required method
|
||||
fn <a href="#tymethod.update" class="fn">update</a>(
|
||||
&self,
|
||||
state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut State</a>,
|
||||
message: Message,
|
||||
now: <a class="struct" href="../../time/struct.Instant.html" title="struct cosmic::iced::time::Instant">Instant</a>,
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../../struct.Task.html" title="struct cosmic::Task">Task</a><Message>>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The update logic of some timed <a href="../../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a>.</p>
|
||||
<p>This is like <a href="../trait.UpdateFn.html" title="trait cosmic::iced::application::UpdateFn"><code>application::UpdateFn</code></a>,
|
||||
but it also takes an <a href="../../time/struct.Instant.html" title="struct cosmic::iced::time::Instant"><code>Instant</code></a>.</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.update" class="method"><h4 class="code-header">fn <a href="#tymethod.update" class="fn">update</a>(
|
||||
&self,
|
||||
state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut State</a>,
|
||||
message: Message,
|
||||
now: <a class="struct" href="../../time/struct.Instant.html" title="struct cosmic::iced::time::Instant">Instant</a>,
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../../struct.Task.html" title="struct cosmic::Task">Task</a><Message>></h4></section></summary><div class="docblock"><p>Processes the message and updates the state of the <a href="../../struct.Application.html" title="struct cosmic::iced::Application"><code>Application</code></a>.</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-UpdateFn%3CState,+Message%3E-for-()" class="impl"><a href="#impl-UpdateFn%3CState,+Message%3E-for-()" class="anchor">§</a><h3 class="code-header">impl<State, Message> <a class="trait" href="trait.UpdateFn.html" title="trait cosmic::iced::application::timed::UpdateFn">UpdateFn</a><State, Message> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h3></section></summary><div class="impl-items"><section id="method.update" class="method trait-impl"><a href="#method.update" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.update" class="fn">update</a>(
|
||||
&self,
|
||||
_state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut State</a>,
|
||||
_message: Message,
|
||||
_now: <a class="struct" href="../../time/struct.Instant.html" title="struct cosmic::iced::time::Instant">Instant</a>,
|
||||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../../struct.Task.html" title="struct cosmic::Task">Task</a><Message>></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-UpdateFn%3CState,+Message%3E-for-T" class="impl"><a href="#impl-UpdateFn%3CState,+Message%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, State, Message, C> <a class="trait" href="trait.UpdateFn.html" title="trait cosmic::iced::application::timed::UpdateFn">UpdateFn</a><State, Message> for T<div class="where">where
|
||||
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut State</a>, Message, <a class="struct" href="../../time/struct.Instant.html" title="struct cosmic::iced::time::Instant">Instant</a>) -> C,
|
||||
C: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../../struct.Task.html" title="struct cosmic::Task">Task</a><Message>>,</div></h3></section></div><script src="../../../../trait.impl/iced/application/timed/trait.UpdateFn.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue