| <!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">☰</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<Parsed></a></li><li><a href="#impl-TryFrom%3CParsed%3E-for-OffsetDateTime">TryFrom<Parsed></a></li><li><a href="#impl-TryFrom%3CParsed%3E-for-PrimitiveDateTime">TryFrom<Parsed></a></li><li><a href="#impl-TryFrom%3CParsed%3E-for-Time">TryFrom<Parsed></a></li><li><a href="#impl-TryFrom%3CParsed%3E-for-UtcOffset">TryFrom<Parsed></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<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-Parsed">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E-for-Parsed">From<T></a></li><li><a href="#impl-Into%3CU%3E-for-Parsed">Into<U></a></li><li><a href="#impl-ToOwned-for-Parsed">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-Parsed">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-Parsed">TryInto<U></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">−</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>() -> 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><'a>(<br> &mut self,<br> input: &'a [u8],<br> item: &impl AnyFormatItem<br>) -> Result<&'a [u8], <a class="enum" href="../error/enum.ParseFromDescription.html" title="enum time::error::ParseFromDescription">ParseFromDescription</a>></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><'a>(<br> &mut self,<br> input: &'a [u8],<br> items: &[impl AnyFormatItem]<br>) -> Result<&'a [u8], <a class="enum" href="../error/enum.ParseFromDescription.html" title="enum time::error::ParseFromDescription">ParseFromDescription</a>></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><'a>(<br> input: &'a [u8],<br> literal: &[u8]<br>) -> Result<&'a [u8], <a class="enum" href="../error/enum.ParseFromDescription.html" title="enum time::error::ParseFromDescription">ParseFromDescription</a>></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><'a>(<br> &mut self,<br> input: &'a [u8],<br> component: <a class="enum" href="../format_description/enum.Component.html" title="enum time::format_description::Component">Component</a><br>) -> Result<&'a [u8], <a class="enum" href="../error/enum.ParseFromDescription.html" title="enum time::error::ParseFromDescription">ParseFromDescription</a>></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>(&self) -> Option<i32></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>(&self) -> Option<u8></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>(&self) -> Option<i32></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>(&self) -> Option<u8></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>(&self) -> Option<<a class="enum" href="../enum.Month.html" title="enum time::Month">Month</a>></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>(&self) -> Option<u8></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>(&self) -> Option<u8></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>(&self) -> Option<NonZeroU8></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>(&self) -> Option<<a class="enum" href="../enum.Weekday.html" title="enum time::Weekday">Weekday</a>></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>(&self) -> Option<NonZeroU16></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>(&self) -> Option<NonZeroU8></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>(&self) -> Option<u8></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>(&self) -> Option<NonZeroU8></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>(&self) -> Option<bool></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>(&self) -> Option<u8></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>(&self) -> Option<u8></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>(&self) -> Option<u32></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>(&self) -> Option<i8></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>(&self) -> Option<i128></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>(&self) -> Option<i8></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>(&self) -> Option<i8></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<()></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>(&mut self, value: i32) -> Option<()></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>(&mut self, value: u8) -> Option<()></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>(&mut self, value: i32) -> Option<()></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>(&mut self, value: u8) -> Option<()></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>(&mut self, value: <a class="enum" href="../enum.Month.html" title="enum time::Month">Month</a>) -> Option<()></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>(&mut self, value: u8) -> Option<()></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>(&mut self, value: u8) -> Option<()></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>(&mut self, value: NonZeroU8) -> Option<()></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>(&mut self, value: <a class="enum" href="../enum.Weekday.html" title="enum time::Weekday">Weekday</a>) -> Option<()></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>(&mut self, value: NonZeroU16) -> Option<()></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>(&mut self, value: NonZeroU8) -> Option<()></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>(&mut self, value: u8) -> Option<()></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>(&mut self, value: NonZeroU8) -> Option<()></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>(&mut self, value: bool) -> Option<()></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>(&mut self, value: u8) -> Option<()></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>(&mut self, value: u8) -> Option<()></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>(&mut self, value: u32) -> Option<()></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>(&mut self, value: i8) -> Option<()></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>(&mut self, value: i128) -> Option<()></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>(&mut self, value: i8) -> Option<()></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>(&mut self, value: i8) -> Option<()></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<Self></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) -> Option<Self></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) -> Option<Self></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) -> Option<Self></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) -> Option<Self></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>) -> Option<Self></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) -> Option<Self></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) -> Option<Self></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) -> Option<Self></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>) -> Option<Self></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) -> Option<Self></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) -> Option<Self></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) -> Option<Self></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) -> Option<Self></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) -> Option<Self></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) -> Option<Self></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) -> Option<Self></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) -> Option<Self></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) -> Option<Self></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) -> Option<Self></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) -> Option<Self></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) -> Option<Self></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>(&self) -> <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>(&mut self, source: &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>(&self, f: &mut Formatter<'_>) -> 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<<a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a>> 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>) -> Result<Self, Self::Error></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<<a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a>> 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> = <DateTime<Fixed> as TryFrom<<a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a>>>::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>) -> Result<Self, Self::Error></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<<a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a>> 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> = <DateTime<None> as TryFrom<<a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a>>>::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>) -> Result<Self, Self::Error></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<<a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a>> 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>) -> Result<Self, Self::Error></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<<a class="struct" href="struct.Parsed.html" title="struct time::parsing::Parsed">Parsed</a>> 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>) -> Result<Self, Self::Error></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<T> Any for T<span class="where fmt-newline">where<br> 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>(&self) -> 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<T> Borrow<T> for T<span class="where fmt-newline">where<br> 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>(&self) -> &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<T> BorrowMut<T> for T<span class="where fmt-newline">where<br> 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>(&mut self) -> &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<T> From<T> 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) -> 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<T, U> Into<U> for T<span class="where fmt-newline">where<br> U: From<T>,</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) -> 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]<T> 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<T> ToOwned for T<span class="where fmt-newline">where<br> 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>(&self) -> 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>(&self, target: &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<T, U> TryFrom<U> for T<span class="where fmt-newline">where<br> U: Into<T>,</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) -> Result<T, <T as TryFrom<U>>::Error></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<T, U> TryInto<U> for T<span class="where fmt-newline">where<br> U: TryFrom<T>,</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> = <U as TryFrom<T>>::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) -> Result<U, <U as TryFrom<T>>::Error></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> |