mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-12 08:12:55 +00:00
125 lines
102 KiB
HTML
125 lines
102 KiB
HTML
<!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="Timestamp represents the value of units(seconds/milliseconds/microseconds/nanoseconds) elapsed since UNIX epoch. The valid value range of Timestamp depends on it’s unit (all in UTC timezone):"><title>Timestamp in common_time::timestamp - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-e56847b5.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="common_time" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (fa3155a64 2025-09-30)" data-channel="nightly" data-search-js="search-e256b49e.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></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]--><rustdoc-topbar><h2><a href="#">Timestamp</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../common_time/index.html">common_<wbr>time</a><span class="version">1.0.0-beta.4</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Timestamp</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#note" title="Note:">Note:</a></li></ul><h3><a href="#fields">Fields</a></h3><ul class="block structfield"><li><a href="#structfield.unit" title="unit">unit</a></li><li><a href="#structfield.value" title="value">value</a></li></ul><h3><a href="#implementations">Associated Constants</a></h3><ul class="block associatedconstant"><li><a href="#associatedconstant.MAX_MICROSECOND" title="MAX_MICROSECOND">MAX_MICROSECOND</a></li><li><a href="#associatedconstant.MAX_MILLISECOND" title="MAX_MILLISECOND">MAX_MILLISECOND</a></li><li><a href="#associatedconstant.MAX_NANOSECOND" title="MAX_NANOSECOND">MAX_NANOSECOND</a></li><li><a href="#associatedconstant.MAX_SECOND" title="MAX_SECOND">MAX_SECOND</a></li><li><a href="#associatedconstant.MIN_MICROSECOND" title="MIN_MICROSECOND">MIN_MICROSECOND</a></li><li><a href="#associatedconstant.MIN_MILLISECOND" title="MIN_MILLISECOND">MIN_MILLISECOND</a></li><li><a href="#associatedconstant.MIN_NANOSECOND" title="MIN_NANOSECOND">MIN_NANOSECOND</a></li><li><a href="#associatedconstant.MIN_SECOND" title="MIN_SECOND">MIN_SECOND</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.add_day_time" title="add_day_time">add_day_time</a></li><li><a href="#method.add_duration" title="add_duration">add_duration</a></li><li><a href="#method.add_month_day_nano" title="add_month_day_nano">add_month_day_nano</a></li><li><a href="#method.add_year_month" title="add_year_month">add_year_month</a></li><li><a href="#method.as_formatted_string" title="as_formatted_string">as_formatted_string</a></li><li><a href="#method.convert_to" title="convert_to">convert_to</a></li><li><a href="#method.convert_to_ceil" title="convert_to_ceil">convert_to_ceil</a></li><li><a href="#method.current_millis" title="current_millis">current_millis</a></li><li><a href="#method.current_time" title="current_time">current_time</a></li><li><a href="#method.from_chrono_date" title="from_chrono_date">from_chrono_date</a></li><li><a href="#method.from_chrono_datetime" title="from_chrono_datetime">from_chrono_datetime</a></li><li><a href="#method.from_splits" title="from_splits">from_splits</a></li><li><a href="#method.from_str" title="from_str">from_str</a></li><li><a href="#method.from_str_utc" title="from_str_utc">from_str_utc</a></li><li><a href="#method.is_overflow" title="is_overflow">is_overflow</a></li><li><a href="#method.negative" title="negative">negative</a></li><li><a href="#method.new" title="new">new</a></li><li><a href="#method.new_microsecond" title="new_microsecond">new_microsecond</a></li><li><a href="#method.new_millisecond" title="new_millisecond">new_millisecond</a></li><li><a href="#method.new_nanosecond" title="new_nanosecond">new_nanosecond</a></li><li><a href="#method.new_second" title="new_second">new_second</a></li><li><a href="#method.split" title="split">split</a></li><li><a href="#method.sub" title="sub">sub</a></li><li><a href="#method.sub_day_time" title="sub_day_time">sub_day_time</a></li><li><a href="#method.sub_duration" title="sub_duration">sub_duration</a></li><li><a href="#method.sub_month_day_nano" title="sub_month_day_nano">sub_month_day_nano</a></li><li><a href="#method.sub_year_month" title="sub_year_month">sub_year_month</a></li><li><a href="#method.to_chrono_date" title="to_chrono_date">to_chrono_date</a></li><li><a href="#method.to_chrono_datetime" title="to_chrono_datetime">to_chrono_datetime</a></li><li><a href="#method.to_chrono_datetime_with_timezone" title="to_chrono_datetime_with_timezone">to_chrono_datetime_with_timezone</a></li><li><a href="#method.to_chrono_time" title="to_chrono_time">to_chrono_time</a></li><li><a href="#method.to_iso8601_string" title="to_iso8601_string">to_iso8601_string</a></li><li><a href="#method.to_local_string" title="to_local_string">to_local_string</a></li><li><a href="#method.to_timezone_aware_string" title="to_timezone_aware_string">to_timezone_aware_string</a></li><li><a href="#method.unit" title="unit">unit</a></li><li><a href="#method.value" title="value">value</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-BucketAligned-for-Timestamp" title="BucketAligned">BucketAligned</a></li><li><a href="#impl-Clone-for-Timestamp" title="Clone">Clone</a></li><li><a href="#impl-Copy-for-Timestamp" title="Copy">Copy</a></li><li><a href="#impl-Debug-for-Timestamp" title="Debug">Debug</a></li><li><a href="#impl-Default-for-Timestamp" title="Default">Default</a></li><li><a href="#impl-Deserialize%3C'de%3E-for-Timestamp" title="Deserialize<'de>">Deserialize<'de></a></li><li><a href="#impl-Eq-for-Timestamp" title="Eq">Eq</a></li><li><a href="#impl-From%3CTimestamp%3E-for-Value" title="From<Timestamp>">From<Timestamp></a></li><li><a href="#impl-From%3CTimestamp%3E-for-i64" title="From<Timestamp>">From<Timestamp></a></li><li><a href="#impl-From%3Ci64%3E-for-Timestamp" title="From<i64>">From<i64></a></li><li><a href="#impl-Hash-for-Timestamp" title="Hash">Hash</a></li><li><a href="#impl-Ord-for-Timestamp" title="Ord">Ord</a></li><li><a href="#impl-PartialEq-for-Timestamp" title="PartialEq">PartialEq</a></li><li><a href="#impl-PartialOrd-for-Timestamp" title="PartialOrd">PartialOrd</a></li><li><a href="#impl-Serialize-for-Timestamp" title="Serialize">Serialize</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-Timestamp" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-Timestamp" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Timestamp" title="Send">Send</a></li><li><a href="#impl-Sync-for-Timestamp" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-Timestamp" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Timestamp" title="UnwindSafe">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Allocation-for-T" title="Allocation">Allocation</a></li><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow<T>">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut<T>">BorrowMut<T></a></li><li><a href="#impl-CloneToUninit-for-T" title="CloneToUninit">CloneToUninit</a></li><li><a href="#impl-Comparable%3CK%3E-for-Q" title="Comparable<K>">Comparable<K></a></li><li><a href="#impl-DeserializeOwned-for-T" title="DeserializeOwned">DeserializeOwned</a></li><li><a href="#impl-Equivalent%3CK%3E-for-Q" title="Equivalent<K>">Equivalent<K></a></li><li><a href="#impl-Equivalent%3CK%3E-for-Q-1" title="Equivalent<K>">Equivalent<K></a></li><li><a href="#impl-From%3CT%3E-for-T" title="From<T>">From<T></a></li><li><a href="#impl-FromRef%3CT%3E-for-T" title="FromRef<T>">FromRef<T></a></li><li><a href="#impl-Instrument-for-T" title="Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into<U>">Into<U></a></li><li><a href="#impl-IntoRequest%3CT%3E-for-T" title="IntoRequest<T>">IntoRequest<T></a></li><li><a href="#impl-LayerExt%3CL%3E-for-L" title="LayerExt<L>">LayerExt<L></a></li><li><a href="#impl-NodeTrait-for-N" title="NodeTrait">NodeTrait</a></li><li><a href="#impl-ToOwned-for-T" title="ToOwned">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom<U>">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto<U>">TryInto<U></a></li><li><a href="#impl-WithSubscriber-for-T" title="WithSubscriber">WithSubscriber</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In common_<wbr>time::<wbr>timestamp</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">common_time</a>::<wbr><a href="index.html">timestamp</a></div><h1>Struct <span class="struct">Timestamp</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/common_time/timestamp.rs.html#46-49">Source</a> </span></div><pre class="rust item-decl"><code>pub struct Timestamp {
|
||
value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>,
|
||
unit: <a class="enum" href="enum.TimeUnit.html" title="enum common_time::timestamp::TimeUnit">TimeUnit</a>,
|
||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Timestamp represents the value of units(seconds/milliseconds/microseconds/nanoseconds) elapsed
|
||
since UNIX epoch. The valid value range of <a href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a> depends on it’s unit (all in UTC timezone):</p>
|
||
<ul>
|
||
<li>for <a href="enum.TimeUnit.html#variant.Second" title="variant common_time::timestamp::TimeUnit::Second">TimeUnit::Second</a>: [-262144-01-01 00:00:00, +262143-12-31 23:59:59]</li>
|
||
<li>for <a href="enum.TimeUnit.html#variant.Millisecond" title="variant common_time::timestamp::TimeUnit::Millisecond">TimeUnit::Millisecond</a>: [-262144-01-01 00:00:00.000, +262143-12-31 23:59:59.999]</li>
|
||
<li>for <a href="enum.TimeUnit.html#variant.Microsecond" title="variant common_time::timestamp::TimeUnit::Microsecond">TimeUnit::Microsecond</a>: [-262144-01-01 00:00:00.000000, +262143-12-31 23:59:59.999999]</li>
|
||
<li>for <a href="enum.TimeUnit.html#variant.Nanosecond" title="variant common_time::timestamp::TimeUnit::Nanosecond">TimeUnit::Nanosecond</a>: [1677-09-21 00:12:43.145224192, 2262-04-11 23:47:16.854775807]</li>
|
||
</ul>
|
||
<h2 id="note"><a class="doc-anchor" href="#note">§</a>Note:</h2>
|
||
<p>For values out of range, you can still store these timestamps, but while performing arithmetic
|
||
or formatting operations, it will return an error or just overflow.</p>
|
||
</div></details><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.value" class="structfield section-header"><a href="#structfield.value" class="anchor field">§</a><code>value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></code></span><span id="structfield.unit" class="structfield section-header"><a href="#structfield.unit" class="anchor field">§</a><code>unit: <a class="enum" href="enum.TimeUnit.html" title="enum common_time::timestamp::TimeUnit">TimeUnit</a></code></span><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Timestamp" class="impl"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#51-487">Source</a><a href="#impl-Timestamp" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.current_millis" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#53-58">Source</a><h4 class="code-header">pub fn <a href="#method.current_millis" class="fn">current_millis</a>() -> Self</h4></section></summary><div class="docblock"><p>Creates current timestamp in millisecond.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.current_time" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#61-70">Source</a><h4 class="code-header">pub fn <a href="#method.current_time" class="fn">current_time</a>(unit: <a class="enum" href="enum.TimeUnit.html" title="enum common_time::timestamp::TimeUnit">TimeUnit</a>) -> <a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a></h4></section></summary><div class="docblock"><p>Creates current timestamp in specific time <code>unit</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sub_duration" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#77-106">Source</a><h4 class="code-header">pub fn <a href="#method.sub_duration" class="fn">sub_duration</a>(&self, duration: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>) -> <a class="type" href="../error/type.Result.html" title="type common_time::error::Result">Result</a><Self></h4></section></summary><div class="docblock"><p>Subtracts a duration from timestamp.</p>
|
||
<h5 id="note-1"><a class="doc-anchor" href="#note-1">§</a>Note</h5>
|
||
<p>The result time unit remains unchanged even if <code>duration</code> has a different unit with <code>self</code>.
|
||
For example, a timestamp with value 1 and time unit second, subtracted by 1 millisecond
|
||
and the result is still 1 second.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_duration" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#113-142">Source</a><h4 class="code-header">pub fn <a href="#method.add_duration" class="fn">add_duration</a>(&self, duration: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>) -> <a class="type" href="../error/type.Result.html" title="type common_time::error::Result">Result</a><Self></h4></section></summary><div class="docblock"><p>Adds a duration to timestamp.</p>
|
||
<h5 id="note-2"><a class="doc-anchor" href="#note-2">§</a>Note</h5>
|
||
<p>The result time unit remains unchanged even if <code>duration</code> has a different unit with <code>self</code>.
|
||
For example, a timestamp with value 1 and time unit second, subtracted by 1 millisecond
|
||
and the result is still 1 second.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_year_month" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#146-154">Source</a><h4 class="code-header">pub fn <a href="#method.add_year_month" class="fn">add_year_month</a>(&self, interval: <a class="struct" href="../interval/struct.IntervalYearMonth.html" title="struct common_time::interval::IntervalYearMonth">IntervalYearMonth</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a>></h4></section></summary><div class="docblock"><p>Adds given <a href="../interval/struct.IntervalYearMonth.html" title="struct common_time::interval::IntervalYearMonth">IntervalYearMonth</a> to the current timestamp.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_day_time" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#157-166">Source</a><h4 class="code-header">pub fn <a href="#method.add_day_time" class="fn">add_day_time</a>(&self, interval: <a class="struct" href="../interval/struct.IntervalDayTime.html" title="struct common_time::interval::IntervalDayTime">IntervalDayTime</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a>></h4></section></summary><div class="docblock"><p>Adds given <a href="../interval/struct.IntervalDayTime.html" title="struct common_time::interval::IntervalDayTime">IntervalDayTime</a> to the current timestamp.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_month_day_nano" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#169-179">Source</a><h4 class="code-header">pub fn <a href="#method.add_month_day_nano" class="fn">add_month_day_nano</a>(
|
||
&self,
|
||
interval: <a class="struct" href="../interval/struct.IntervalMonthDayNano.html" title="struct common_time::interval::IntervalMonthDayNano">IntervalMonthDayNano</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a>></h4></section></summary><div class="docblock"><p>Adds given <a href="../interval/struct.IntervalMonthDayNano.html" title="struct common_time::interval::IntervalMonthDayNano">IntervalMonthDayNano</a> to the current timestamp.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sub_year_month" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#182-190">Source</a><h4 class="code-header">pub fn <a href="#method.sub_year_month" class="fn">sub_year_month</a>(&self, interval: <a class="struct" href="../interval/struct.IntervalYearMonth.html" title="struct common_time::interval::IntervalYearMonth">IntervalYearMonth</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a>></h4></section></summary><div class="docblock"><p>Subtracts given <a href="../interval/struct.IntervalYearMonth.html" title="struct common_time::interval::IntervalYearMonth">IntervalYearMonth</a> to the current timestamp.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sub_day_time" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#193-202">Source</a><h4 class="code-header">pub fn <a href="#method.sub_day_time" class="fn">sub_day_time</a>(&self, interval: <a class="struct" href="../interval/struct.IntervalDayTime.html" title="struct common_time::interval::IntervalDayTime">IntervalDayTime</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a>></h4></section></summary><div class="docblock"><p>Subtracts given <a href="../interval/struct.IntervalDayTime.html" title="struct common_time::interval::IntervalDayTime">IntervalDayTime</a> to the current timestamp.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sub_month_day_nano" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#205-215">Source</a><h4 class="code-header">pub fn <a href="#method.sub_month_day_nano" class="fn">sub_month_day_nano</a>(
|
||
&self,
|
||
interval: <a class="struct" href="../interval/struct.IntervalMonthDayNano.html" title="struct common_time::interval::IntervalMonthDayNano">IntervalMonthDayNano</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a>></h4></section></summary><div class="docblock"><p>Subtracts given <a href="../interval/struct.IntervalMonthDayNano.html" title="struct common_time::interval::IntervalMonthDayNano">IntervalMonthDayNano</a> to the current timestamp.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sub" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#218-222">Source</a><h4 class="code-header">pub fn <a href="#method.sub" class="fn">sub</a>(&self, rhs: &Self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="type" href="https://docs.rs/chrono/latest/chrono/type.Duration.html" title="type chrono::Duration">Duration</a>></h4></section></summary><div class="docblock"><p>Subtracts current timestamp with another timestamp, yielding a duration.</p>
|
||
</div></details><section id="method.new" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#224-226">Source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>(value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>, unit: <a class="enum" href="enum.TimeUnit.html" title="enum common_time::timestamp::TimeUnit">TimeUnit</a>) -> Self</h4></section><section id="method.new_second" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#228-233">Source</a><h4 class="code-header">pub const fn <a href="#method.new_second" class="fn">new_second</a>(value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -> Self</h4></section><section id="method.new_millisecond" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#235-240">Source</a><h4 class="code-header">pub const fn <a href="#method.new_millisecond" class="fn">new_millisecond</a>(value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -> Self</h4></section><section id="method.new_microsecond" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#242-247">Source</a><h4 class="code-header">pub const fn <a href="#method.new_microsecond" class="fn">new_microsecond</a>(value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -> Self</h4></section><section id="method.new_nanosecond" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#249-254">Source</a><h4 class="code-header">pub const fn <a href="#method.new_nanosecond" class="fn">new_nanosecond</a>(value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -> Self</h4></section><section id="method.unit" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#256-258">Source</a><h4 class="code-header">pub fn <a href="#method.unit" class="fn">unit</a>(&self) -> <a class="enum" href="enum.TimeUnit.html" title="enum common_time::timestamp::TimeUnit">TimeUnit</a></h4></section><section id="method.value" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#260-262">Source</a><h4 class="code-header">pub fn <a href="#method.value" class="fn">value</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></h4></section><details class="toggle method-toggle" open><summary><section id="method.convert_to" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#267-276">Source</a><h4 class="code-header">pub fn <a href="#method.convert_to" class="fn">convert_to</a>(&self, unit: <a class="enum" href="enum.TimeUnit.html" title="enum common_time::timestamp::TimeUnit">TimeUnit</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a>></h4></section></summary><div class="docblock"><p>Convert a timestamp to given time unit.
|
||
Conversion from a timestamp with smaller unit to a larger unit may cause rounding error.
|
||
Return <code>None</code> if conversion causes overflow.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.convert_to_ceil" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#282-291">Source</a><h4 class="code-header">pub fn <a href="#method.convert_to_ceil" class="fn">convert_to_ceil</a>(&self, unit: <a class="enum" href="enum.TimeUnit.html" title="enum common_time::timestamp::TimeUnit">TimeUnit</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a>></h4></section></summary><div class="docblock"><p>Convert a timestamp to given time unit.
|
||
Conversion from a timestamp with smaller unit to a larger unit will round the value
|
||
to ceil (positive infinity).
|
||
Return <code>None</code> if conversion causes overflow.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.split" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#295-304">Source</a><h4 class="code-header">pub fn <a href="#method.split" class="fn">split</a>(&self) -> (<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>)</h4></section></summary><div class="docblock"><p>Split a <a href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a> into seconds part and nanoseconds part.
|
||
Notice the seconds part of split result is always rounded down to floor.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_splits" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#308-344">Source</a><h4 class="code-header">fn <a href="#method.from_splits" class="fn">from_splits</a>(sec: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>, nsec: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Creates a new Timestamp instance from seconds and nanoseconds parts.
|
||
Returns None if overflow.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.to_iso8601_string" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#348-352">Source</a><h4 class="code-header">pub fn <a href="#method.to_iso8601_string" class="fn">to_iso8601_string</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></summary><div class="docblock"><p>Format timestamp to ISO8601 string. If the timestamp exceeds what chrono timestamp can
|
||
represent, this function simply print the timestamp unit and value in plain string.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.to_local_string" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#355-359">Source</a><h4 class="code-header">pub fn <a href="#method.to_local_string" class="fn">to_local_string</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></summary><div class="docblock"><p>Format timestamp use <strong>system timezone</strong>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.to_timezone_aware_string" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#363-367">Source</a><h4 class="code-header">pub fn <a href="#method.to_timezone_aware_string" class="fn">to_timezone_aware_string</a>(&self, tz: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="enum" href="../timezone/enum.Timezone.html" title="enum common_time::timezone::Timezone">Timezone</a>>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></summary><div class="docblock"><p>Format timestamp for given timezone.
|
||
If <code>tz==None</code>, the server default timezone will used.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_formatted_string" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#371-394">Source</a><h4 class="code-header">pub fn <a href="#method.as_formatted_string" class="fn">as_formatted_string</a>(
|
||
self,
|
||
pattern: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
timezone: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="enum" href="../timezone/enum.Timezone.html" title="enum common_time::timezone::Timezone">Timezone</a>>,
|
||
) -> <a class="type" href="../error/type.Result.html" title="type common_time::error::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></summary><div class="docblock"><p>Format timestamp for given format and timezone.
|
||
If <code>tz==None</code>, the server default timezone will used.</p>
|
||
</div></details><section id="method.to_chrono_datetime" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#396-399">Source</a><h4 class="code-header">pub fn <a href="#method.to_chrono_datetime" class="fn">to_chrono_datetime</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://docs.rs/chrono/latest/chrono/naive/datetime/struct.NaiveDateTime.html" title="struct chrono::naive::datetime::NaiveDateTime">NaiveDateTime</a>></h4></section><section id="method.to_chrono_datetime_with_timezone" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#401-408">Source</a><h4 class="code-header">pub fn <a href="#method.to_chrono_datetime_with_timezone" class="fn">to_chrono_datetime_with_timezone</a>(
|
||
&self,
|
||
tz: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="enum" href="../timezone/enum.Timezone.html" title="enum common_time::timezone::Timezone">Timezone</a>>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://docs.rs/chrono/latest/chrono/naive/datetime/struct.NaiveDateTime.html" title="struct chrono::naive::datetime::NaiveDateTime">NaiveDateTime</a>></h4></section><details class="toggle method-toggle" open><summary><section id="method.to_chrono_date" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#411-413">Source</a><h4 class="code-header">pub fn <a href="#method.to_chrono_date" class="fn">to_chrono_date</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://docs.rs/chrono/latest/chrono/naive/date/struct.NaiveDate.html" title="struct chrono::naive::date::NaiveDate">NaiveDate</a>></h4></section></summary><div class="docblock"><p>Convert timestamp to chrono date.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.to_chrono_time" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#416-418">Source</a><h4 class="code-header">pub fn <a href="#method.to_chrono_time" class="fn">to_chrono_time</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://docs.rs/chrono/latest/chrono/naive/time/struct.NaiveTime.html" title="struct chrono::naive::time::NaiveTime">NaiveTime</a>></h4></section></summary><div class="docblock"><p>Convert timestamp to chrono time.</p>
|
||
</div></details><section id="method.from_chrono_datetime" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#420-424">Source</a><h4 class="code-header">pub fn <a href="#method.from_chrono_datetime" class="fn">from_chrono_datetime</a>(ndt: <a class="struct" href="https://docs.rs/chrono/latest/chrono/naive/datetime/struct.NaiveDateTime.html" title="struct chrono::naive::datetime::NaiveDateTime">NaiveDateTime</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section><section id="method.from_chrono_date" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#426-428">Source</a><h4 class="code-header">pub fn <a href="#method.from_chrono_date" class="fn">from_chrono_date</a>(date: <a class="struct" href="https://docs.rs/chrono/latest/chrono/naive/date/struct.NaiveDate.html" title="struct chrono::naive::date::NaiveDate">NaiveDate</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section><details class="toggle method-toggle" open><summary><section id="method.from_str_utc" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#432-434">Source</a><h4 class="code-header">pub fn <a href="#method.from_str_utc" class="fn">from_str_utc</a>(s: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="type" href="../error/type.Result.html" title="type common_time::error::Result">Result</a><Self></h4></section></summary><div class="docblock"><p>Accepts a string in RFC3339 / ISO8601 standard format and some variants and converts it to a nanosecond precision timestamp.
|
||
It no timezone specified in string, it cast to nanosecond epoch timestamp in UTC.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_str" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#448-481">Source</a><h4 class="code-header">pub fn <a href="#method.from_str" class="fn">from_str</a>(s: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, timezone: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="enum" href="../timezone/enum.Timezone.html" title="enum common_time::timezone::Timezone">Timezone</a>>) -> <a class="type" href="../error/type.Result.html" title="type common_time::error::Result">Result</a><Self></h4></section></summary><div class="docblock"><p>Accepts a string in RFC3339 / ISO8601 standard format and some variants and converts it to a nanosecond precision timestamp.
|
||
This code is copied from <a href="https://github.com/apache/arrow-datafusion/blob/arrow2/datafusion-physical-expr/src/arrow_temporal_util.rs#L71">arrow-datafusion</a>
|
||
with some bugfixes.
|
||
Supported format:</p>
|
||
<ul>
|
||
<li><code>2022-09-20T14:16:43.012345Z</code> (Zulu timezone)</li>
|
||
<li><code>2022-09-20T14:16:43.012345+08:00</code> (Explicit offset)</li>
|
||
<li><code>2022-09-20T14:16:43.012345</code> (The given timezone, with T)</li>
|
||
<li><code>2022-09-20T14:16:43</code> (Zulu timezone, no fractional seconds, with T)</li>
|
||
<li><code>2022-09-20 14:16:43.012345Z</code> (Zulu timezone, without T)</li>
|
||
<li><code>2022-09-20 14:16:43</code> (The given timezone, without T)</li>
|
||
<li><code>2022-09-20 14:16:43.012345</code> (The given timezone, without T)</li>
|
||
</ul>
|
||
</div></details><section id="method.negative" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#483-486">Source</a><h4 class="code-header">pub fn <a href="#method.negative" class="fn">negative</a>(self) -> Self</h4></section></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Timestamp-1" class="impl"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#489-512">Source</a><a href="#impl-Timestamp-1" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.MIN_SECOND" class="associatedconstant"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#490">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.MIN_SECOND" class="constant">MIN_SECOND</a>: Self</h4></section><section id="associatedconstant.MAX_SECOND" class="associatedconstant"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#491">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.MAX_SECOND" class="constant">MAX_SECOND</a>: Self</h4></section><section id="associatedconstant.MIN_MILLISECOND" class="associatedconstant"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#493">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.MIN_MILLISECOND" class="constant">MIN_MILLISECOND</a>: Self</h4></section><section id="associatedconstant.MAX_MILLISECOND" class="associatedconstant"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#494">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.MAX_MILLISECOND" class="constant">MAX_MILLISECOND</a>: Self</h4></section><section id="associatedconstant.MIN_MICROSECOND" class="associatedconstant"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#496">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.MIN_MICROSECOND" class="constant">MIN_MICROSECOND</a>: Self</h4></section><section id="associatedconstant.MAX_MICROSECOND" class="associatedconstant"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#497">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.MAX_MICROSECOND" class="constant">MAX_MICROSECOND</a>: Self</h4></section><section id="associatedconstant.MIN_NANOSECOND" class="associatedconstant"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#499">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.MIN_NANOSECOND" class="constant">MIN_NANOSECOND</a>: Self</h4></section><section id="associatedconstant.MAX_NANOSECOND" class="associatedconstant"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#500">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.MAX_NANOSECOND" class="constant">MAX_NANOSECOND</a>: Self</h4></section><details class="toggle method-toggle" open><summary><section id="method.is_overflow" class="method"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#503-511">Source</a><h4 class="code-header">pub fn <a href="#method.is_overflow" class="fn">is_overflow</a>(value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>, unit: <a class="enum" href="enum.TimeUnit.html" title="enum common_time::timestamp::TimeUnit">TimeUnit</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Checks if a value would overflow for the given time unit.</p>
|
||
</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-BucketAligned-for-Timestamp" class="impl"><a class="src rightside" href="../../src/common_time/timestamp_millis.rs.html#110-126">Source</a><a href="#impl-BucketAligned-for-Timestamp" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../timestamp_millis/trait.BucketAligned.html" title="trait common_time::timestamp_millis::BucketAligned">BucketAligned</a> for <a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.align_by_bucket" class="method trait-impl"><a class="src rightside" href="../../src/common_time/timestamp_millis.rs.html#111-117">Source</a><a href="#method.align_by_bucket" class="anchor">§</a><h4 class="code-header">fn <a href="../timestamp_millis/trait.BucketAligned.html#tymethod.align_by_bucket" class="fn">align_by_bucket</a>(self, bucket_duration: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class='docblock'>Aligns the value by <code>bucket_duration</code> or <code>None</code> if underflow occurred. <a href="../timestamp_millis/trait.BucketAligned.html#tymethod.align_by_bucket">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.align_to_ceil_by_bucket" class="method trait-impl"><a class="src rightside" href="../../src/common_time/timestamp_millis.rs.html#119-125">Source</a><a href="#method.align_to_ceil_by_bucket" class="anchor">§</a><h4 class="code-header">fn <a href="../timestamp_millis/trait.BucketAligned.html#tymethod.align_to_ceil_by_bucket" class="fn">align_to_ceil_by_bucket</a>(self, bucket_duration: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class='docblock'>Aligns the value by <code>bucket_duration</code> to ceil or <code>None</code> if overflow occurred. <a href="../timestamp_millis/trait.BucketAligned.html#tymethod.align_to_ceil_by_bucket">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-Timestamp" class="impl"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#45">Source</a><a href="#impl-Clone-for-Timestamp" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#45">Source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&self) -> <a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a></h4></section></summary><div class='docblock'>Returns a duplicate of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#245-247">Source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&mut self, source: &Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-Timestamp" class="impl"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#555-559">Source</a><a href="#impl-Debug-for-Timestamp" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#556-558">Source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Default-for-Timestamp" class="impl"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#45">Source</a><a href="#impl-Default-for-Timestamp" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.default" class="method trait-impl"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#45">Source</a><a href="#method.default" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default" class="fn">default</a>() -> <a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a></h4></section></summary><div class='docblock'>Returns the “default value” for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Deserialize%3C'de%3E-for-Timestamp" class="impl"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#45">Source</a><a href="#impl-Deserialize%3C'de%3E-for-Timestamp" class="anchor">§</a><h3 class="code-header">impl<'de> <a class="trait" href="https://docs.rs/serde_core/1.0.228/serde_core/de/trait.Deserialize.html" title="trait serde_core::de::Deserialize">Deserialize</a><'de> for <a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.deserialize" class="method trait-impl"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#45">Source</a><a href="#method.deserialize" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/serde_core/1.0.228/serde_core/de/trait.Deserialize.html#tymethod.deserialize" class="fn">deserialize</a><__D>(__deserializer: __D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, __D::<a class="associatedtype" href="https://docs.rs/serde_core/1.0.228/serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
__D: <a class="trait" href="https://docs.rs/serde_core/1.0.228/serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>,</div></h4></section></summary><div class='docblock'>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde_core/1.0.228/serde_core/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3CTimestamp%3E-for-Value" class="impl"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#549-553">Source</a><a href="#impl-From%3CTimestamp%3E-for-Value" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a>> for <a class="enum" href="https://docs.rs/serde_json/1.0.140/serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-2" class="method trait-impl"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#550-552">Source</a><a href="#method.from-2" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(d: <a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a>) -> Self</h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3CTimestamp%3E-for-i64" class="impl"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#543-547">Source</a><a href="#impl-From%3CTimestamp%3E-for-i64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a>> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#544-546">Source</a><a href="#method.from-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: <a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a>) -> Self</h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3Ci64%3E-for-Timestamp" class="impl"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#534-541">Source</a><a href="#impl-From%3Ci64%3E-for-Timestamp" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>> for <a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#535-540">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(v: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -> Self</h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Hash-for-Timestamp" class="impl"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#669-675">Source</a><a href="#impl-Hash-for-Timestamp" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.hash" class="method trait-impl"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#670-674">Source</a><a href="#method.hash" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash" class="fn">hash</a><H: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>>(&self, state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut H</a>)</h4></section></summary><div class='docblock'>Feeds this value into the given <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.hash_slice" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.3.0">1.3.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/hash/mod.rs.html#235-237">Source</a></span><a href="#method.hash_slice" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice" class="fn">hash_slice</a><H>(data: &[Self], state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut H</a>)<div class="where">where
|
||
H: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>,
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Feeds a slice of this type into the given <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Ord-for-Timestamp" class="impl"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#644-659">Source</a><a href="#impl-Ord-for-Timestamp" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> for <a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a></h3><div class="docblock"><p>A proper implementation of total order requires antisymmetry, reflexivity, transitivity and totality.
|
||
In this comparison implementation, we map a timestamp uniquely to a <code>(i64, i64)</code> tuple which is respectively
|
||
total order.</p>
|
||
</div></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.cmp" class="method trait-impl"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#645-658">Source</a><a href="#method.cmp" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp" class="fn">cmp</a>(&self, other: &Self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a></h4></section></summary><div class='docblock'>This method returns an <a href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering"><code>Ordering</code></a> between <code>self</code> and <code>other</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.max" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.21.0">1.21.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1021-1023">Source</a></span><a href="#method.max" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max" class="fn">max</a>(self, other: Self) -> Self<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Compares and returns the maximum of two values. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.min" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.21.0">1.21.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1060-1062">Source</a></span><a href="#method.min" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min" class="fn">min</a>(self, other: Self) -> Self<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Compares and returns the minimum of two values. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clamp" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.50.0">1.50.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1086-1088">Source</a></span><a href="#method.clamp" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.clamp" class="fn">clamp</a>(self, min: Self, max: Self) -> Self<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Restrict a value to a certain interval. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.clamp">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq-for-Timestamp" class="impl"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#661-665">Source</a><a href="#impl-PartialEq-for-Timestamp" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> for <a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#662-664">Source</a><a href="#method.eq" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &Self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#264">Source</a></span><a href="#method.ne" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialOrd-for-Timestamp" class="impl"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#635-639">Source</a><a href="#impl-PartialOrd-for-Timestamp" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a> for <a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.partial_cmp" class="method trait-impl"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#636-638">Source</a><a href="#method.partial_cmp" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp" class="fn">partial_cmp</a>(&self, other: &Self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>></h4></section></summary><div class='docblock'>This method returns an ordering between <code>self</code> and <code>other</code> values if one exists. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.lt" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1398">Source</a></span><a href="#method.lt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.lt" class="fn">lt</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests less than (for <code>self</code> and <code>other</code>) and is used by the <code><</code> operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.lt">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.le" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1416">Source</a></span><a href="#method.le" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.le" class="fn">le</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests less than or equal to (for <code>self</code> and <code>other</code>) and is used by the
|
||
<code><=</code> operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.le">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.gt" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1434">Source</a></span><a href="#method.gt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.gt" class="fn">gt</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>></code>
|
||
operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.gt">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.ge" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1452">Source</a></span><a href="#method.ge" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.ge" class="fn">ge</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests greater than or equal to (for <code>self</code> and <code>other</code>) and is used by
|
||
the <code>>=</code> operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.ge">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Serialize-for-Timestamp" class="impl"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#45">Source</a><a href="#impl-Serialize-for-Timestamp" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://docs.rs/serde_core/1.0.228/serde_core/ser/trait.Serialize.html" title="trait serde_core::ser::Serialize">Serialize</a> for <a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.serialize" class="method trait-impl"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#45">Source</a><a href="#method.serialize" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/serde_core/1.0.228/serde_core/ser/trait.Serialize.html#tymethod.serialize" class="fn">serialize</a><__S>(&self, __serializer: __S) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><__S::<a class="associatedtype" href="https://docs.rs/serde_core/1.0.228/serde_core/ser/trait.Serializer.html#associatedtype.Ok" title="type serde_core::ser::Serializer::Ok">Ok</a>, __S::<a class="associatedtype" href="https://docs.rs/serde_core/1.0.228/serde_core/ser/trait.Serializer.html#associatedtype.Error" title="type serde_core::ser::Serializer::Error">Error</a>><div class="where">where
|
||
__S: <a class="trait" href="https://docs.rs/serde_core/1.0.228/serde_core/ser/trait.Serializer.html" title="trait serde_core::ser::Serializer">Serializer</a>,</div></h4></section></summary><div class='docblock'>Serialize this value into the given Serde serializer. <a href="https://docs.rs/serde_core/1.0.228/serde_core/ser/trait.Serialize.html#tymethod.serialize">Read more</a></div></details></div></details><section id="impl-Copy-for-Timestamp" class="impl"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#45">Source</a><a href="#impl-Copy-for-Timestamp" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a></h3></section><section id="impl-Eq-for-Timestamp" class="impl"><a class="src rightside" href="../../src/common_time/timestamp.rs.html#667">Source</a><a href="#impl-Eq-for-Timestamp" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a></h3></section></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-Timestamp" class="impl"><a href="#impl-Freeze-for-Timestamp" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a></h3></section><section id="impl-RefUnwindSafe-for-Timestamp" class="impl"><a href="#impl-RefUnwindSafe-for-Timestamp" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a></h3></section><section id="impl-Send-for-Timestamp" class="impl"><a href="#impl-Send-for-Timestamp" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a></h3></section><section id="impl-Sync-for-Timestamp" class="impl"><a href="#impl-Sync-for-Timestamp" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a></h3></section><section id="impl-Unpin-for-Timestamp" class="impl"><a href="#impl-Unpin-for-Timestamp" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a></h3></section><section id="impl-UnwindSafe-for-Timestamp" class="impl"><a href="#impl-UnwindSafe-for-Timestamp" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.Timestamp.html" title="struct common_time::timestamp::Timestamp">Timestamp</a></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
|
||
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#212">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#222">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-CloneToUninit-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#515">Source</a><a href="#impl-CloneToUninit-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html" title="trait core::clone::CloneToUninit">CloneToUninit</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone_to_uninit" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#517">Source</a><a href="#method.clone_to_uninit" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit" class="fn">clone_to_uninit</a>(&self, dest: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>)</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>clone_to_uninit</code>)</span></div></span><div class='docblock'>Performs copy-assignment from <code>self</code> to <code>dest</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Comparable%3CK%3E-for-Q" class="impl"><a href="#impl-Comparable%3CK%3E-for-Q" class="anchor">§</a><h3 class="code-header">impl<Q, K> Comparable<K> for Q<div class="where">where
|
||
Q: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
K: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><Q> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.compare" class="method trait-impl"><a href="#method.compare" class="anchor">§</a><h4 class="code-header">fn <a class="fn">compare</a>(&self, key: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&K</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a></h4></section></summary><div class='docblock'>Compare self to <code>key</code> and return their ordering.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Equivalent%3CK%3E-for-Q" class="impl"><a href="#impl-Equivalent%3CK%3E-for-Q" class="anchor">§</a><h3 class="code-header">impl<Q, K> Equivalent<K> for Q<div class="where">where
|
||
Q: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
K: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><Q> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.equivalent" class="method trait-impl"><a href="#method.equivalent" class="anchor">§</a><h4 class="code-header">fn <a class="fn">equivalent</a>(&self, key: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&K</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Checks if this value is equivalent to the given key. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Equivalent%3CK%3E-for-Q-1" class="impl"><a href="#impl-Equivalent%3CK%3E-for-Q-1" class="anchor">§</a><h3 class="code-header">impl<Q, K> Equivalent<K> for Q<div class="where">where
|
||
Q: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
K: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><Q> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.equivalent-1" class="method trait-impl"><a href="#method.equivalent-1" class="anchor">§</a><h4 class="code-header">fn <a class="fn">equivalent</a>(&self, key: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&K</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Compare self to <code>key</code> and return <code>true</code> if they are equal.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#785">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-3" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#788">Source</a><a href="#method.from-3" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromRef%3CT%3E-for-T" class="impl"><a href="#impl-FromRef%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> FromRef<T> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_ref" class="method trait-impl"><a href="#method.from_ref" class="anchor">§</a><h4 class="code-header">fn <a class="fn">from_ref</a>(input: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&T</a>) -> T</h4></section></summary><div class='docblock'>Converts to this type from a reference to the input type.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Instrument-for-T" class="impl"><a href="#impl-Instrument-for-T" class="anchor">§</a><h3 class="code-header">impl<T> Instrument for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.instrument" class="method trait-impl"><a href="#method.instrument" class="anchor">§</a><h4 class="code-header">fn <a class="fn">instrument</a>(self, span: Span) -> Instrumented<Self></h4></section></summary><div class='docblock'>Instruments this type with the provided [<code>Span</code>], returning an
|
||
<code>Instrumented</code> wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.in_current_span" class="method trait-impl"><a href="#method.in_current_span" class="anchor">§</a><h4 class="code-header">fn <a class="fn">in_current_span</a>(self) -> Instrumented<Self></h4></section></summary><div class='docblock'>Instruments this type with the <a href="super::Span::current()">current</a> <a href="crate::Span"><code>Span</code></a>, returning an
|
||
<code>Instrumented</code> wrapper. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#767-769">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#777">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fn">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><a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-IntoRequest%3CT%3E-for-T" class="impl"><a href="#impl-IntoRequest%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> IntoRequest<T> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_request" class="method trait-impl"><a href="#method.into_request" class="anchor">§</a><h4 class="code-header">fn <a class="fn">into_request</a>(self) -> Request<T></h4></section></summary><div class='docblock'>Wrap the input message <code>T</code> in a <code>tonic::Request</code></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-LayerExt%3CL%3E-for-L" class="impl"><a href="#impl-LayerExt%3CL%3E-for-L" class="anchor">§</a><h3 class="code-header">impl<L> LayerExt<L> for L</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.named_layer" class="method trait-impl"><a href="#method.named_layer" class="anchor">§</a><h4 class="code-header">fn <a class="fn">named_layer</a><S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S><div class="where">where
|
||
L: Layer<S>,</div></h4></section></summary><div class='docblock'>Applies the layer to a service and wraps it in [<code>Layered</code>].</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToOwned-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#84-86">Source</a><a href="#impl-ToOwned-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#88">Source</a><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89">Source</a><a href="#method.to_owned" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fn">to_owned</a>(&self) -> T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#93">Source</a><a href="#method.clone_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fn">clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut T</a>)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#827-829">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#831">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#834">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#811-813">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#815">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#818">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithSubscriber-for-T" class="impl"><a href="#impl-WithSubscriber-for-T" class="anchor">§</a><h3 class="code-header">impl<T> WithSubscriber for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.with_subscriber" class="method trait-impl"><a href="#method.with_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_subscriber</a><S>(self, subscriber: S) -> WithDispatch<Self><div class="where">where
|
||
S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><Dispatch>,</div></h4></section></summary><div class='docblock'>Attaches the provided <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
|
||
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.with_current_subscriber" class="method trait-impl"><a href="#method.with_current_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_current_subscriber</a>(self) -> WithDispatch<Self></h4></section></summary><div class='docblock'>Attaches the current <a href="crate::dispatcher#setting-the-default-subscriber">default</a> <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
|
||
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details></div></details><section id="impl-Allocation-for-T" class="impl"><a href="#impl-Allocation-for-T" class="anchor">§</a><h3 class="code-header">impl<T> Allocation for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3></section><section id="impl-DeserializeOwned-for-T" class="impl"><a class="src rightside" href="https://docs.rs/serde_core/1.0.228/src/serde_core/de/mod.rs.html#633">Source</a><a href="#impl-DeserializeOwned-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://docs.rs/serde_core/1.0.228/serde_core/de/trait.DeserializeOwned.html" title="trait serde_core::de::DeserializeOwned">DeserializeOwned</a> for T<div class="where">where
|
||
T: for<'de> <a class="trait" href="https://docs.rs/serde_core/1.0.228/serde_core/de/trait.Deserialize.html" title="trait serde_core::de::Deserialize">Deserialize</a><'de>,</div></h3></section><section id="impl-NodeTrait-for-N" class="impl"><a class="src rightside" href="https://docs.rs/petgraph/0.4/src/petgraph/graphmap.rs.html#86">Source</a><a href="#impl-NodeTrait-for-N" class="anchor">§</a><h3 class="code-header">impl<N> <a class="trait" href="https://docs.rs/petgraph/0.4/petgraph/graphmap/trait.NodeTrait.html" title="trait petgraph::graphmap::NodeTrait">NodeTrait</a> for N<div class="where">where
|
||
N: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>,</div></h3></section></div></section></div></main></body></html> |