blob: cac63274a64954f6b99b09815f1e026c5a354bd9 [file] [log] [blame]
<!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="All information parsed."><meta name="keywords" content="rust, rustlang, rust-lang, Parsed"><title>Parsed in time::parsing - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../normalize.css"><link rel="stylesheet" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../ayu.css" disabled><link rel="stylesheet" href="../../dark.css" disabled><link rel="stylesheet" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" href="https://avatars0.githubusercontent.com/u/55999857"></head><body class="rustdoc struct"><!--[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">&#9776;</button><a class="sidebar-logo" href="../../time/index.html"><div class="logo-container"><img src="https://avatars0.githubusercontent.com/u/55999857" alt="logo"></div></a><h2></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../time/index.html"><div class="logo-container">
<img src="https://avatars0.githubusercontent.com/u/55999857" alt="logo"></div></a><h2 class="location"><a href="#">Parsed</a></h2><div class="sidebar-elems"><section><h3><a href="#implementations">Methods</a></h3><ul class="block"><li><a href="#method.day">day</a></li><li><a href="#method.hour_12">hour_12</a></li><li><a href="#method.hour_12_is_pm">hour_12_is_pm</a></li><li><a href="#method.hour_24">hour_24</a></li><li><a href="#method.iso_week_number">iso_week_number</a></li><li><a href="#method.iso_year">iso_year</a></li><li><a href="#method.iso_year_last_two">iso_year_last_two</a></li><li><a href="#method.minute">minute</a></li><li><a href="#method.monday_week_number">monday_week_number</a></li><li><a href="#method.month">month</a></li><li><a href="#method.new">new</a></li><li><a href="#method.offset_hour">offset_hour</a></li><li><a href="#method.offset_minute_signed">offset_minute_signed</a></li><li><a href="#method.offset_second_signed">offset_second_signed</a></li><li><a href="#method.ordinal">ordinal</a></li><li><a href="#method.parse_component">parse_component</a></li><li><a href="#method.parse_item">parse_item</a></li><li><a href="#method.parse_items">parse_items</a></li><li><a href="#method.parse_literal">parse_literal</a></li><li><a href="#method.second">second</a></li><li><a href="#method.set_day">set_day</a></li><li><a href="#method.set_hour_12">set_hour_12</a></li><li><a href="#method.set_hour_12_is_pm">set_hour_12_is_pm</a></li><li><a href="#method.set_hour_24">set_hour_24</a></li><li><a href="#method.set_iso_week_number">set_iso_week_number</a></li><li><a href="#method.set_iso_year">set_iso_year</a></li><li><a href="#method.set_iso_year_last_two">set_iso_year_last_two</a></li><li><a href="#method.set_minute">set_minute</a></li><li><a href="#method.set_monday_week_number">set_monday_week_number</a></li><li><a href="#method.set_month">set_month</a></li><li><a href="#method.set_offset_hour">set_offset_hour</a></li><li><a href="#method.set_offset_minute_signed">set_offset_minute_signed</a></li><li><a href="#method.set_offset_second_signed">set_offset_second_signed</a></li><li><a href="#method.set_ordinal">set_ordinal</a></li><li><a href="#method.set_second">set_second</a></li><li><a href="#method.set_subsecond">set_subsecond</a></li><li><a href="#method.set_sunday_week_number">set_sunday_week_number</a></li><li><a href="#method.set_unix_timestamp_nanos">set_unix_timestamp_nanos</a></li><li><a href="#method.set_weekday">set_weekday</a></li><li><a href="#method.set_year">set_year</a></li><li><a href="#method.set_year_last_two">set_year_last_two</a></li><li><a href="#method.subsecond">subsecond</a></li><li><a href="#method.sunday_week_number">sunday_week_number</a></li><li><a href="#method.unix_timestamp_nanos">unix_timestamp_nanos</a></li><li><a href="#method.weekday">weekday</a></li><li><a href="#method.with_day">with_day</a></li><li><a href="#method.with_hour_12">with_hour_12</a></li><li><a href="#method.with_hour_12_is_pm">with_hour_12_is_pm</a></li><li><a href="#method.with_hour_24">with_hour_24</a></li><li><a href="#method.with_iso_week_number">with_iso_week_number</a></li><li><a href="#method.with_iso_year">with_iso_year</a></li><li><a href="#method.with_iso_year_last_two">with_iso_year_last_two</a></li><li><a href="#method.with_minute">with_minute</a></li><li><a href="#method.with_monday_week_number">with_monday_week_number</a></li><li><a href="#method.with_month">with_month</a></li><li><a href="#method.with_offset_hour">with_offset_hour</a></li><li><a href="#method.with_offset_minute_signed">with_offset_minute_signed</a></li><li><a href="#method.with_offset_second_signed">with_offset_second_signed</a></li><li><a href="#method.with_ordinal">with_ordinal</a></li><li><a href="#method.with_second">with_second</a></li><li><a href="#method.with_subsecond">with_subsecond</a></li><li><a href="#method.with_sunday_week_number">with_sunday_week_number</a></li><li><a href="#method.with_unix_timestamp_nanos">with_unix_timestamp_nanos</a></li><li><a href="#method.with_weekday">with_weekday</a></li><li><a href="#method.with_year">with_year</a></li><li><a href="#method.with_year_last_two">with_year_last_two</a></li><li><a href="#method.year">year</a></li><li><a href="#method.year_last_two">year_last_two</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block"><li><a href="#impl-Clone-for-Parsed">Clone</a></li><li><a href="#impl-Copy-for-Parsed">Copy</a></li><li><a href="#impl-Debug-for-Parsed">Debug</a></li><li><a href="#impl-TryFrom%3CParsed%3E-for-Date">TryFrom&lt;Parsed&gt;</a></li><li><a href="#impl-TryFrom%3CParsed%3E-for-OffsetDateTime">TryFrom&lt;Parsed&gt;</a></li><li><a href="#impl-TryFrom%3CParsed%3E-for-PrimitiveDateTime">TryFrom&lt;Parsed&gt;</a></li><li><a href="#impl-TryFrom%3CParsed%3E-for-Time">TryFrom&lt;Parsed&gt;</a></li><li><a href="#impl-TryFrom%3CParsed%3E-for-UtcOffset">TryFrom&lt;Parsed&gt;</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block"><li><a href="#impl-RefUnwindSafe-for-Parsed">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Parsed">Send</a></li><li><a href="#impl-Sync-for-Parsed">Sync</a></li><li><a href="#impl-Unpin-for-Parsed">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Parsed">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block"><li><a href="#impl-Any-for-Parsed">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-Parsed">Borrow&lt;T&gt;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-Parsed">BorrowMut&lt;T&gt;</a></li><li><a href="#impl-From%3CT%3E-for-Parsed">From&lt;T&gt;</a></li><li><a href="#impl-Into%3CU%3E-for-Parsed">Into&lt;U&gt;</a></li><li><a href="#impl-ToOwned-for-Parsed">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-Parsed">TryFrom&lt;U&gt;</a></li><li><a href="#impl-TryInto%3CU%3E-for-Parsed">TryInto&lt;U&gt;</a></li></ul></section><h2><a href="index.html">In time::parsing</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn">Struct <a href="../index.html">time</a>::<wbr><a href="index.html">parsing</a>::<wbr><a class="struct" href="#">Parsed</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/time/parsing/parsed.rs.html#113-159">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="item-decl"><pre class="rust struct"><code>pub struct Parsed { /* private fields */ }</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>All information parsed.</p>
<p>This information is directly used to construct the final values.</p>
<p>Most users will not need think about this struct in any way. It is public to allow for manual
control over values, in the instance that the default parser is insufficient.</p>
</div></details><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Parsed" class="impl has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#188-375">source</a><a href="#impl-Parsed" class="anchor"></a><h3 class="code-header">impl <a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.new" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#190-215">source</a><h4 class="code-header">pub const fn <a href="#method.new" class="fnname">new</a>() -&gt; Self</h4></section></summary><div class="docblock"><p>Create a new instance of <code>Parsed</code> with no information known.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.parse_item" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#222-228">source</a><h4 class="code-header">pub fn <a href="#method.parse_item" class="fnname">parse_item</a>&lt;'a&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;input: &amp;'a [u8],<br>&nbsp;&nbsp;&nbsp;&nbsp;item: &amp;impl AnyFormatItem<br>) -&gt; Result&lt;&amp;'a [u8], <a class="enum" href="../error/enum.ParseFromDescription.html" title="enum time::error::ParseFromDescription">ParseFromDescription</a>&gt;</h4></section></summary><div class="docblock"><p>Parse a single <a href="../format_description/enum.FormatItem.html" title="FormatItem"><code>FormatItem</code></a> or <a href="../format_description/enum.OwnedFormatItem.html" title="OwnedFormatItem"><code>OwnedFormatItem</code></a>, mutating the struct. The remaining
input is returned as the <code>Ok</code> value.</p>
<p>If a <a href="../format_description/enum.FormatItem.html#variant.Optional" title="FormatItem::Optional"><code>FormatItem::Optional</code></a> or <a href="../format_description/enum.OwnedFormatItem.html#variant.Optional" title="OwnedFormatItem::Optional"><code>OwnedFormatItem::Optional</code></a> is passed, parsing will not
fail; the input will be returned as-is if the expected format is not present.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.parse_items" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#235-248">source</a><h4 class="code-header">pub fn <a href="#method.parse_items" class="fnname">parse_items</a>&lt;'a&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;input: &amp;'a [u8],<br>&nbsp;&nbsp;&nbsp;&nbsp;items: &amp;[impl AnyFormatItem]<br>) -&gt; Result&lt;&amp;'a [u8], <a class="enum" href="../error/enum.ParseFromDescription.html" title="enum time::error::ParseFromDescription">ParseFromDescription</a>&gt;</h4></section></summary><div class="docblock"><p>Parse a sequence of <a href="../format_description/enum.FormatItem.html" title="FormatItem"><code>FormatItem</code></a>s or <a href="../format_description/enum.OwnedFormatItem.html" title="OwnedFormatItem"><code>OwnedFormatItem</code></a>s, mutating the struct. The
remaining input is returned as the <code>Ok</code> value.</p>
<p>This method will fail if any of the contained <a href="../format_description/enum.FormatItem.html" title="FormatItem"><code>FormatItem</code></a>s or <a href="../format_description/enum.OwnedFormatItem.html" title="OwnedFormatItem"><code>OwnedFormatItem</code></a>s fail
to parse. <code>self</code> will not be mutated in this instance.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.parse_literal" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#251-258">source</a><h4 class="code-header">pub fn <a href="#method.parse_literal" class="fnname">parse_literal</a>&lt;'a&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;input: &amp;'a [u8],<br>&nbsp;&nbsp;&nbsp;&nbsp;literal: &amp;[u8]<br>) -&gt; Result&lt;&amp;'a [u8], <a class="enum" href="../error/enum.ParseFromDescription.html" title="enum time::error::ParseFromDescription">ParseFromDescription</a>&gt;</h4></section></summary><div class="docblock"><p>Parse a literal byte sequence. The remaining input is returned as the <code>Ok</code> value.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.parse_component" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#262-360">source</a><h4 class="code-header">pub fn <a href="#method.parse_component" class="fnname">parse_component</a>&lt;'a&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;input: &amp;'a [u8],<br>&nbsp;&nbsp;&nbsp;&nbsp;component: <a class="enum" href="../format_description/enum.Component.html" title="enum time::format_description::Component">Component</a><br>) -&gt; Result&lt;&amp;'a [u8], <a class="enum" href="../error/enum.ParseFromDescription.html" title="enum time::error::ParseFromDescription">ParseFromDescription</a>&gt;</h4></section></summary><div class="docblock"><p>Parse a single component, mutating the struct. The remaining input is returned as the <code>Ok</code>
value.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Parsed-1" class="impl has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#402-474">source</a><a href="#impl-Parsed-1" class="anchor"></a><h3 class="code-header">impl <a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a></h3></section></summary><div class="docblock"><p>Getter methods</p>
</div><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.year" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#403-423">source</a><h4 class="code-header">pub const fn <a href="#method.year" class="fnname">year</a>(&amp;self) -&gt; Option&lt;i32&gt;</h4></section></summary><div class="docblock"><p>Obtain the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.year_last_two" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#403-423">source</a><h4 class="code-header">pub const fn <a href="#method.year_last_two" class="fnname">year_last_two</a>(&amp;self) -&gt; Option&lt;u8&gt;</h4></section></summary><div class="docblock"><p>Obtain the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.iso_year" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#403-423">source</a><h4 class="code-header">pub const fn <a href="#method.iso_year" class="fnname">iso_year</a>(&amp;self) -&gt; Option&lt;i32&gt;</h4></section></summary><div class="docblock"><p>Obtain the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.iso_year_last_two" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#403-423">source</a><h4 class="code-header">pub const fn <a href="#method.iso_year_last_two" class="fnname">iso_year_last_two</a>(&amp;self) -&gt; Option&lt;u8&gt;</h4></section></summary><div class="docblock"><p>Obtain the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.month" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#403-423">source</a><h4 class="code-header">pub const fn <a href="#method.month" class="fnname">month</a>(&amp;self) -&gt; Option&lt;<a class="enum" href="../enum.Month.html" title="enum time::Month">Month</a>&gt;</h4></section></summary><div class="docblock"><p>Obtain the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sunday_week_number" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#403-423">source</a><h4 class="code-header">pub const fn <a href="#method.sunday_week_number" class="fnname">sunday_week_number</a>(&amp;self) -&gt; Option&lt;u8&gt;</h4></section></summary><div class="docblock"><p>Obtain the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.monday_week_number" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#403-423">source</a><h4 class="code-header">pub const fn <a href="#method.monday_week_number" class="fnname">monday_week_number</a>(&amp;self) -&gt; Option&lt;u8&gt;</h4></section></summary><div class="docblock"><p>Obtain the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.iso_week_number" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#403-423">source</a><h4 class="code-header">pub const fn <a href="#method.iso_week_number" class="fnname">iso_week_number</a>(&amp;self) -&gt; Option&lt;NonZeroU8&gt;</h4></section></summary><div class="docblock"><p>Obtain the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.weekday" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#403-423">source</a><h4 class="code-header">pub const fn <a href="#method.weekday" class="fnname">weekday</a>(&amp;self) -&gt; Option&lt;<a class="enum" href="../enum.Weekday.html" title="enum time::Weekday">Weekday</a>&gt;</h4></section></summary><div class="docblock"><p>Obtain the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ordinal" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#403-423">source</a><h4 class="code-header">pub const fn <a href="#method.ordinal" class="fnname">ordinal</a>(&amp;self) -&gt; Option&lt;NonZeroU16&gt;</h4></section></summary><div class="docblock"><p>Obtain the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.day" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#403-423">source</a><h4 class="code-header">pub const fn <a href="#method.day" class="fnname">day</a>(&amp;self) -&gt; Option&lt;NonZeroU8&gt;</h4></section></summary><div class="docblock"><p>Obtain the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.hour_24" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#403-423">source</a><h4 class="code-header">pub const fn <a href="#method.hour_24" class="fnname">hour_24</a>(&amp;self) -&gt; Option&lt;u8&gt;</h4></section></summary><div class="docblock"><p>Obtain the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.hour_12" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#403-423">source</a><h4 class="code-header">pub const fn <a href="#method.hour_12" class="fnname">hour_12</a>(&amp;self) -&gt; Option&lt;NonZeroU8&gt;</h4></section></summary><div class="docblock"><p>Obtain the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.hour_12_is_pm" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#403-423">source</a><h4 class="code-header">pub const fn <a href="#method.hour_12_is_pm" class="fnname">hour_12_is_pm</a>(&amp;self) -&gt; Option&lt;bool&gt;</h4></section></summary><div class="docblock"><p>Obtain the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.minute" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#403-423">source</a><h4 class="code-header">pub const fn <a href="#method.minute" class="fnname">minute</a>(&amp;self) -&gt; Option&lt;u8&gt;</h4></section></summary><div class="docblock"><p>Obtain the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.second" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#403-423">source</a><h4 class="code-header">pub const fn <a href="#method.second" class="fnname">second</a>(&amp;self) -&gt; Option&lt;u8&gt;</h4></section></summary><div class="docblock"><p>Obtain the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.subsecond" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#403-423">source</a><h4 class="code-header">pub const fn <a href="#method.subsecond" class="fnname">subsecond</a>(&amp;self) -&gt; Option&lt;u32&gt;</h4></section></summary><div class="docblock"><p>Obtain the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.offset_hour" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#403-423">source</a><h4 class="code-header">pub const fn <a href="#method.offset_hour" class="fnname">offset_hour</a>(&amp;self) -&gt; Option&lt;i8&gt;</h4></section></summary><div class="docblock"><p>Obtain the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.unix_timestamp_nanos" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#403-423">source</a><h4 class="code-header">pub const fn <a href="#method.unix_timestamp_nanos" class="fnname">unix_timestamp_nanos</a>(&amp;self) -&gt; Option&lt;i128&gt;</h4></section></summary><div class="docblock"><p>Obtain the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.offset_minute_signed" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#433-448">source</a><h4 class="code-header">pub const fn <a href="#method.offset_minute_signed" class="fnname">offset_minute_signed</a>(&amp;self) -&gt; Option&lt;i8&gt;</h4></section></summary><div class="docblock"><p>Obtain the offset minute as an <code>i8</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.offset_second_signed" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#458-473">source</a><h4 class="code-header">pub const fn <a href="#method.offset_second_signed" class="fnname">offset_second_signed</a>(&amp;self) -&gt; Option&lt;i8&gt;</h4></section></summary><div class="docblock"><p>Obtain the offset second as an <code>i8</code>.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Parsed-2" class="impl has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#504-568">source</a><a href="#impl-Parsed-2" class="anchor"></a><h3 class="code-header">impl <a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a></h3></section></summary><div class="docblock"><p>Setter methods</p>
<p>All setters return <code>Option&lt;()&gt;</code>, which is <code>Some</code> if the value was set, and <code>None</code> if not. The
setters <em>may</em> fail if the value is invalid, though behavior is not guaranteed.</p>
</div><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.set_year" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#505-525">source</a><h4 class="code-header">pub fn <a href="#method.set_year" class="fnname">set_year</a>(&amp;mut self, value: i32) -&gt; Option&lt;()&gt;</h4></section></summary><div class="docblock"><p>Set the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.set_year_last_two" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#505-525">source</a><h4 class="code-header">pub fn <a href="#method.set_year_last_two" class="fnname">set_year_last_two</a>(&amp;mut self, value: u8) -&gt; Option&lt;()&gt;</h4></section></summary><div class="docblock"><p>Set the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.set_iso_year" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#505-525">source</a><h4 class="code-header">pub fn <a href="#method.set_iso_year" class="fnname">set_iso_year</a>(&amp;mut self, value: i32) -&gt; Option&lt;()&gt;</h4></section></summary><div class="docblock"><p>Set the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.set_iso_year_last_two" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#505-525">source</a><h4 class="code-header">pub fn <a href="#method.set_iso_year_last_two" class="fnname">set_iso_year_last_two</a>(&amp;mut self, value: u8) -&gt; Option&lt;()&gt;</h4></section></summary><div class="docblock"><p>Set the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.set_month" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#505-525">source</a><h4 class="code-header">pub fn <a href="#method.set_month" class="fnname">set_month</a>(&amp;mut self, value: <a class="enum" href="../enum.Month.html" title="enum time::Month">Month</a>) -&gt; Option&lt;()&gt;</h4></section></summary><div class="docblock"><p>Set the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.set_sunday_week_number" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#505-525">source</a><h4 class="code-header">pub fn <a href="#method.set_sunday_week_number" class="fnname">set_sunday_week_number</a>(&amp;mut self, value: u8) -&gt; Option&lt;()&gt;</h4></section></summary><div class="docblock"><p>Set the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.set_monday_week_number" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#505-525">source</a><h4 class="code-header">pub fn <a href="#method.set_monday_week_number" class="fnname">set_monday_week_number</a>(&amp;mut self, value: u8) -&gt; Option&lt;()&gt;</h4></section></summary><div class="docblock"><p>Set the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.set_iso_week_number" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#505-525">source</a><h4 class="code-header">pub fn <a href="#method.set_iso_week_number" class="fnname">set_iso_week_number</a>(&amp;mut self, value: NonZeroU8) -&gt; Option&lt;()&gt;</h4></section></summary><div class="docblock"><p>Set the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.set_weekday" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#505-525">source</a><h4 class="code-header">pub fn <a href="#method.set_weekday" class="fnname">set_weekday</a>(&amp;mut self, value: <a class="enum" href="../enum.Weekday.html" title="enum time::Weekday">Weekday</a>) -&gt; Option&lt;()&gt;</h4></section></summary><div class="docblock"><p>Set the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.set_ordinal" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#505-525">source</a><h4 class="code-header">pub fn <a href="#method.set_ordinal" class="fnname">set_ordinal</a>(&amp;mut self, value: NonZeroU16) -&gt; Option&lt;()&gt;</h4></section></summary><div class="docblock"><p>Set the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.set_day" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#505-525">source</a><h4 class="code-header">pub fn <a href="#method.set_day" class="fnname">set_day</a>(&amp;mut self, value: NonZeroU8) -&gt; Option&lt;()&gt;</h4></section></summary><div class="docblock"><p>Set the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.set_hour_24" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#505-525">source</a><h4 class="code-header">pub fn <a href="#method.set_hour_24" class="fnname">set_hour_24</a>(&amp;mut self, value: u8) -&gt; Option&lt;()&gt;</h4></section></summary><div class="docblock"><p>Set the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.set_hour_12" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#505-525">source</a><h4 class="code-header">pub fn <a href="#method.set_hour_12" class="fnname">set_hour_12</a>(&amp;mut self, value: NonZeroU8) -&gt; Option&lt;()&gt;</h4></section></summary><div class="docblock"><p>Set the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.set_hour_12_is_pm" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#505-525">source</a><h4 class="code-header">pub fn <a href="#method.set_hour_12_is_pm" class="fnname">set_hour_12_is_pm</a>(&amp;mut self, value: bool) -&gt; Option&lt;()&gt;</h4></section></summary><div class="docblock"><p>Set the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.set_minute" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#505-525">source</a><h4 class="code-header">pub fn <a href="#method.set_minute" class="fnname">set_minute</a>(&amp;mut self, value: u8) -&gt; Option&lt;()&gt;</h4></section></summary><div class="docblock"><p>Set the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.set_second" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#505-525">source</a><h4 class="code-header">pub fn <a href="#method.set_second" class="fnname">set_second</a>(&amp;mut self, value: u8) -&gt; Option&lt;()&gt;</h4></section></summary><div class="docblock"><p>Set the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.set_subsecond" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#505-525">source</a><h4 class="code-header">pub fn <a href="#method.set_subsecond" class="fnname">set_subsecond</a>(&amp;mut self, value: u32) -&gt; Option&lt;()&gt;</h4></section></summary><div class="docblock"><p>Set the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.set_offset_hour" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#505-525">source</a><h4 class="code-header">pub fn <a href="#method.set_offset_hour" class="fnname">set_offset_hour</a>(&amp;mut self, value: i8) -&gt; Option&lt;()&gt;</h4></section></summary><div class="docblock"><p>Set the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.set_unix_timestamp_nanos" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#505-525">source</a><h4 class="code-header">pub fn <a href="#method.set_unix_timestamp_nanos" class="fnname">set_unix_timestamp_nanos</a>(&amp;mut self, value: i128) -&gt; Option&lt;()&gt;</h4></section></summary><div class="docblock"><p>Set the named component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.set_offset_minute_signed" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#542-546">source</a><h4 class="code-header">pub fn <a href="#method.set_offset_minute_signed" class="fnname">set_offset_minute_signed</a>(&amp;mut self, value: i8) -&gt; Option&lt;()&gt;</h4></section></summary><div class="docblock"><p>Set the <code>offset_minute</code> component.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.set_offset_second_signed" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#563-567">source</a><h4 class="code-header">pub fn <a href="#method.set_offset_second_signed" class="fnname">set_offset_second_signed</a>(&amp;mut self, value: i8) -&gt; Option&lt;()&gt;</h4></section></summary><div class="docblock"><p>Set the <code>offset_second</code> component.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Parsed-3" class="impl has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#598-662">source</a><a href="#impl-Parsed-3" class="anchor"></a><h3 class="code-header">impl <a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a></h3></section></summary><div class="docblock"><p>Builder methods</p>
<p>All builder methods return <code>Option&lt;Self&gt;</code>, which is <code>Some</code> if the value was set, and <code>None</code> if
not. The builder methods <em>may</em> fail if the value is invalid, though behavior is not guaranteed.</p>
</div><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_year" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#599-619">source</a><h4 class="code-header">pub const fn <a href="#method.with_year" class="fnname">with_year</a>(self, value: i32) -&gt; Option&lt;Self&gt;</h4></section></summary><div class="docblock"><p>Set the named component and return <code>self</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_year_last_two" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#599-619">source</a><h4 class="code-header">pub const fn <a href="#method.with_year_last_two" class="fnname">with_year_last_two</a>(self, value: u8) -&gt; Option&lt;Self&gt;</h4></section></summary><div class="docblock"><p>Set the named component and return <code>self</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_iso_year" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#599-619">source</a><h4 class="code-header">pub const fn <a href="#method.with_iso_year" class="fnname">with_iso_year</a>(self, value: i32) -&gt; Option&lt;Self&gt;</h4></section></summary><div class="docblock"><p>Set the named component and return <code>self</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_iso_year_last_two" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#599-619">source</a><h4 class="code-header">pub const fn <a href="#method.with_iso_year_last_two" class="fnname">with_iso_year_last_two</a>(self, value: u8) -&gt; Option&lt;Self&gt;</h4></section></summary><div class="docblock"><p>Set the named component and return <code>self</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_month" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#599-619">source</a><h4 class="code-header">pub const fn <a href="#method.with_month" class="fnname">with_month</a>(self, value: <a class="enum" href="../enum.Month.html" title="enum time::Month">Month</a>) -&gt; Option&lt;Self&gt;</h4></section></summary><div class="docblock"><p>Set the named component and return <code>self</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_sunday_week_number" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#599-619">source</a><h4 class="code-header">pub const fn <a href="#method.with_sunday_week_number" class="fnname">with_sunday_week_number</a>(self, value: u8) -&gt; Option&lt;Self&gt;</h4></section></summary><div class="docblock"><p>Set the named component and return <code>self</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_monday_week_number" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#599-619">source</a><h4 class="code-header">pub const fn <a href="#method.with_monday_week_number" class="fnname">with_monday_week_number</a>(self, value: u8) -&gt; Option&lt;Self&gt;</h4></section></summary><div class="docblock"><p>Set the named component and return <code>self</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_iso_week_number" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#599-619">source</a><h4 class="code-header">pub const fn <a href="#method.with_iso_week_number" class="fnname">with_iso_week_number</a>(self, value: NonZeroU8) -&gt; Option&lt;Self&gt;</h4></section></summary><div class="docblock"><p>Set the named component and return <code>self</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_weekday" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#599-619">source</a><h4 class="code-header">pub const fn <a href="#method.with_weekday" class="fnname">with_weekday</a>(self, value: <a class="enum" href="../enum.Weekday.html" title="enum time::Weekday">Weekday</a>) -&gt; Option&lt;Self&gt;</h4></section></summary><div class="docblock"><p>Set the named component and return <code>self</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_ordinal" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#599-619">source</a><h4 class="code-header">pub const fn <a href="#method.with_ordinal" class="fnname">with_ordinal</a>(self, value: NonZeroU16) -&gt; Option&lt;Self&gt;</h4></section></summary><div class="docblock"><p>Set the named component and return <code>self</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_day" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#599-619">source</a><h4 class="code-header">pub const fn <a href="#method.with_day" class="fnname">with_day</a>(self, value: NonZeroU8) -&gt; Option&lt;Self&gt;</h4></section></summary><div class="docblock"><p>Set the named component and return <code>self</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_hour_24" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#599-619">source</a><h4 class="code-header">pub const fn <a href="#method.with_hour_24" class="fnname">with_hour_24</a>(self, value: u8) -&gt; Option&lt;Self&gt;</h4></section></summary><div class="docblock"><p>Set the named component and return <code>self</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_hour_12" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#599-619">source</a><h4 class="code-header">pub const fn <a href="#method.with_hour_12" class="fnname">with_hour_12</a>(self, value: NonZeroU8) -&gt; Option&lt;Self&gt;</h4></section></summary><div class="docblock"><p>Set the named component and return <code>self</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_hour_12_is_pm" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#599-619">source</a><h4 class="code-header">pub const fn <a href="#method.with_hour_12_is_pm" class="fnname">with_hour_12_is_pm</a>(self, value: bool) -&gt; Option&lt;Self&gt;</h4></section></summary><div class="docblock"><p>Set the named component and return <code>self</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_minute" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#599-619">source</a><h4 class="code-header">pub const fn <a href="#method.with_minute" class="fnname">with_minute</a>(self, value: u8) -&gt; Option&lt;Self&gt;</h4></section></summary><div class="docblock"><p>Set the named component and return <code>self</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_second" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#599-619">source</a><h4 class="code-header">pub const fn <a href="#method.with_second" class="fnname">with_second</a>(self, value: u8) -&gt; Option&lt;Self&gt;</h4></section></summary><div class="docblock"><p>Set the named component and return <code>self</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_subsecond" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#599-619">source</a><h4 class="code-header">pub const fn <a href="#method.with_subsecond" class="fnname">with_subsecond</a>(self, value: u32) -&gt; Option&lt;Self&gt;</h4></section></summary><div class="docblock"><p>Set the named component and return <code>self</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_offset_hour" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#599-619">source</a><h4 class="code-header">pub const fn <a href="#method.with_offset_hour" class="fnname">with_offset_hour</a>(self, value: i8) -&gt; Option&lt;Self&gt;</h4></section></summary><div class="docblock"><p>Set the named component and return <code>self</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_unix_timestamp_nanos" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#599-619">source</a><h4 class="code-header">pub const fn <a href="#method.with_unix_timestamp_nanos" class="fnname">with_unix_timestamp_nanos</a>(self, value: i128) -&gt; Option&lt;Self&gt;</h4></section></summary><div class="docblock"><p>Set the named component and return <code>self</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_offset_minute_signed" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#636-640">source</a><h4 class="code-header">pub const fn <a href="#method.with_offset_minute_signed" class="fnname">with_offset_minute_signed</a>(self, value: i8) -&gt; Option&lt;Self&gt;</h4></section></summary><div class="docblock"><p>Set the <code>offset_minute</code> component and return <code>self</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_offset_second_signed" class="method has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#657-661">source</a><h4 class="code-header">pub const fn <a href="#method.with_offset_second_signed" class="fnname">with_offset_second_signed</a>(self, value: i8) -&gt; Option&lt;Self&gt;</h4></section></summary><div class="docblock"><p>Set the <code>offset_second</code> component and return <code>self</code>.</p>
</div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone-for-Parsed" class="impl has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#112">source</a><a href="#impl-Clone-for-Parsed" class="anchor"></a><h3 class="code-header">impl Clone for <a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#112">source</a><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a></h4></section></summary><div class='docblock'>Returns a copy of the value. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">clone_from</a>(&amp;mut self, source: &amp;Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug-for-Parsed" class="impl has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#112">source</a><a href="#impl-Debug-for-Parsed" class="anchor"></a><h3 class="code-header">impl Debug for <a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#112">source</a><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a class="fnname">fmt</a>(&amp;self, f: &amp;mut Formatter&lt;'_&gt;) -&gt; Result</h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-TryFrom%3CParsed%3E-for-Date" class="impl has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#664-722">source</a><a href="#impl-TryFrom%3CParsed%3E-for-Date" class="anchor"></a><h3 class="code-header">impl TryFrom&lt;<a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a>&gt; for <a class="struct" href="../struct.Date.html" title="struct time::Date">Date</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = <a class="enum" href="../error/enum.TryFromParsed.html" title="enum time::error::TryFromParsed">TryFromParsed</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#667-721">source</a><a href="#method.try_from" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_from</a>(parsed: <a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a>) -&gt; Result&lt;Self, Self::Error&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-TryFrom%3CParsed%3E-for-OffsetDateTime" class="impl has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#782-788">source</a><a href="#impl-TryFrom%3CParsed%3E-for-OffsetDateTime" class="anchor"></a><h3 class="code-header">impl TryFrom&lt;<a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a>&gt; for <a class="struct" href="../struct.OffsetDateTime.html" title="struct time::OffsetDateTime">OffsetDateTime</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-4" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-4" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = &lt;DateTime&lt;Fixed&gt; as TryFrom&lt;<a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a>&gt;&gt;::Error</h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#785-787">source</a><a href="#method.try_from-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_from</a>(parsed: <a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a>) -&gt; Result&lt;Self, Self::Error&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-TryFrom%3CParsed%3E-for-PrimitiveDateTime" class="impl has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#774-780">source</a><a href="#impl-TryFrom%3CParsed%3E-for-PrimitiveDateTime" class="anchor"></a><h3 class="code-header">impl TryFrom&lt;<a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a>&gt; for <a class="struct" href="../struct.PrimitiveDateTime.html" title="struct time::PrimitiveDateTime">PrimitiveDateTime</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-3" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-3" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = &lt;DateTime&lt;None&gt; as TryFrom&lt;<a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a>&gt;&gt;::Error</h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#777-779">source</a><a href="#method.try_from-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_from</a>(parsed: <a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a>) -&gt; Result&lt;Self, Self::Error&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-TryFrom%3CParsed%3E-for-Time" class="impl has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#724-750">source</a><a href="#impl-TryFrom%3CParsed%3E-for-Time" class="anchor"></a><h3 class="code-header">impl TryFrom&lt;<a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a>&gt; for <a class="struct" href="../struct.Time.html" title="struct time::Time">Time</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-1" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = <a class="enum" href="../error/enum.TryFromParsed.html" title="enum time::error::TryFromParsed">TryFromParsed</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#727-749">source</a><a href="#method.try_from-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_from</a>(parsed: <a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a>) -&gt; Result&lt;Self, Self::Error&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-TryFrom%3CParsed%3E-for-UtcOffset" class="impl has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#752-772">source</a><a href="#impl-TryFrom%3CParsed%3E-for-UtcOffset" class="anchor"></a><h3 class="code-header">impl TryFrom&lt;<a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a>&gt; for <a class="struct" href="../struct.UtcOffset.html" title="struct time::UtcOffset">UtcOffset</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-2" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-2" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = <a class="enum" href="../error/enum.TryFromParsed.html" title="enum time::error::TryFromParsed">TryFromParsed</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#755-771">source</a><a href="#method.try_from-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_from</a>(parsed: <a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a>) -&gt; Result&lt;Self, Self::Error&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><section id="impl-Copy-for-Parsed" class="impl has-srclink"><a class="srclink rightside" href="../../src/time/parsing/parsed.rs.html#112">source</a><a href="#impl-Copy-for-Parsed" class="anchor"></a><h3 class="code-header">impl Copy for <a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a></h3></section></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe-for-Parsed" class="impl has-srclink"><a href="#impl-RefUnwindSafe-for-Parsed" class="anchor"></a><h3 class="code-header">impl RefUnwindSafe for <a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a></h3></section><section id="impl-Send-for-Parsed" class="impl has-srclink"><a href="#impl-Send-for-Parsed" class="anchor"></a><h3 class="code-header">impl Send for <a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a></h3></section><section id="impl-Sync-for-Parsed" class="impl has-srclink"><a href="#impl-Sync-for-Parsed" class="anchor"></a><h3 class="code-header">impl Sync for <a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a></h3></section><section id="impl-Unpin-for-Parsed" class="impl has-srclink"><a href="#impl-Unpin-for-Parsed" class="anchor"></a><h3 class="code-header">impl Unpin for <a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a></h3></section><section id="impl-UnwindSafe-for-Parsed" class="impl has-srclink"><a href="#impl-UnwindSafe-for-Parsed" class="anchor"></a><h3 class="code-header">impl UnwindSafe for <a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any-for-Parsed" class="impl has-srclink"><a href="#impl-Any-for-Parsed" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; Any for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a class="fnname">type_id</a>(&amp;self) -&gt; TypeId</h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-Parsed" class="impl has-srclink"><a href="#impl-Borrow%3CT%3E-for-Parsed" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; Borrow&lt;T&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span><a href="#method.borrow" class="anchor"></a><h4 class="code-header">fn <a class="fnname">borrow</a>(&amp;self) -&gt; &amp;T</h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-Parsed" class="impl has-srclink"><a href="#impl-BorrowMut%3CT%3E-for-Parsed" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; BorrowMut&lt;T&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span><a href="#method.borrow_mut" class="anchor"></a><h4 class="code-header">fn <a class="fnname">borrow_mut</a>(&amp;mut self) -&gt; &amp;mut T</h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-Parsed" class="impl has-srclink"><a href="#impl-From%3CT%3E-for-Parsed" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; From&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(t: T) -&gt; T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-Parsed" class="impl has-srclink"><a href="#impl-Into%3CU%3E-for-Parsed" class="anchor"></a><h3 class="code-header">impl&lt;T, U&gt; Into&lt;U&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: From&lt;T&gt;,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.into" class="anchor"></a><h4 class="code-header">fn <a class="fnname">into</a>(self) -&gt; U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
<p>That is, this conversion is whatever the implementation of
<code>[From]&lt;T&gt; for U</code> chooses to do.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-ToOwned-for-Parsed" class="impl has-srclink"><a href="#impl-ToOwned-for-Parsed" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; ToOwned for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: Clone,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Owned" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl has-srclink"><a href="#method.to_owned" class="anchor"></a><h4 class="code-header">fn <a class="fnname">to_owned</a>(&amp;self) -&gt; T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl has-srclink"><a href="#method.clone_into" class="anchor"></a><h4 class="code-header">fn <a class="fnname">clone_into</a>(&amp;self, target: &amp;mut T)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-Parsed" class="impl has-srclink"><a href="#impl-TryFrom%3CU%3E-for-Parsed" class="anchor"></a><h3 class="code-header">impl&lt;T, U&gt; TryFrom&lt;U&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: Into&lt;T&gt;,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-6" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-6" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = Infallible</h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from-5" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.try_from-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_from</a>(value: U) -&gt; Result&lt;T, &lt;T as TryFrom&lt;U&gt;&gt;::Error&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-Parsed" class="impl has-srclink"><a href="#impl-TryInto%3CU%3E-for-Parsed" class="anchor"></a><h3 class="code-header">impl&lt;T, U&gt; TryInto&lt;U&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: TryFrom&lt;T&gt;,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-5" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-5" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = &lt;U as TryFrom&lt;T&gt;&gt;::Error</h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.try_into" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_into</a>(self) -&gt; Result&lt;U, &lt;U as TryFrom&lt;T&gt;&gt;::Error&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="time" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.66.0-nightly (5c8bff74b 2022-10-21)" ></div></body></html>