| <!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="A value in a structured key-value pair."><meta name="keywords" content="rust, rustlang, rust-lang, Value"><title>Value in measure_time::kv - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../normalize.css"><link rel="stylesheet" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../ayu.css" disabled><link rel="stylesheet" href="../../dark.css" disabled><link rel="stylesheet" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="sidebar-logo" href="../../measure_time/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../measure_time/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Value</a></h2><div class="sidebar-elems"><section><h3><a href="#implementations">Methods</a></h3><ul class="block"><li><a href="#method.capture_debug">capture_debug</a></li><li><a href="#method.capture_display">capture_display</a></li><li><a href="#method.capture_error">capture_error</a></li><li><a href="#method.downcast_ref">downcast_ref</a></li><li><a href="#method.from_any">from_any</a></li><li><a href="#method.from_debug">from_debug</a></li><li><a href="#method.from_display">from_display</a></li><li><a href="#method.from_dyn_debug">from_dyn_debug</a></li><li><a href="#method.from_dyn_display">from_dyn_display</a></li><li><a href="#method.from_dyn_error">from_dyn_error</a></li><li><a href="#method.is">is</a></li><li><a href="#method.to_bool">to_bool</a></li><li><a href="#method.to_borrowed_error">to_borrowed_error</a></li><li><a href="#method.to_borrowed_str">to_borrowed_str</a></li><li><a href="#method.to_char">to_char</a></li><li><a href="#method.to_f64">to_f64</a></li><li><a href="#method.to_i128">to_i128</a></li><li><a href="#method.to_i64">to_i64</a></li><li><a href="#method.to_str">to_str</a></li><li><a href="#method.to_u128">to_u128</a></li><li><a href="#method.to_u64">to_u64</a></li><li><a href="#method.visit">visit</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block"><li><a href="#impl-Debug-for-Value%3C%27v%3E">Debug</a></li><li><a href="#impl-Display-for-Value%3C%27v%3E">Display</a></li><li><a href="#impl-From%3C%26%27v%20NonZeroI128%3E-for-Value%3C%27v%3E">From<&'v NonZeroI128></a></li><li><a href="#impl-From%3C%26%27v%20NonZeroU128%3E-for-Value%3C%27v%3E">From<&'v NonZeroU128></a></li><li><a href="#impl-From%3C%26%27v%20String%3E-for-Value%3C%27v%3E">From<&'v String></a></li><li><a href="#impl-From%3C%26%27v%20i128%3E-for-Value%3C%27v%3E">From<&'v i128></a></li><li><a href="#impl-From%3C%26%27v%20str%3E-for-Value%3C%27v%3E">From<&'v str></a></li><li><a href="#impl-From%3C%26%27v%20u128%3E-for-Value%3C%27v%3E">From<&'v u128></a></li><li><a href="#impl-From%3CNonZeroI16%3E-for-Value%3C%27v%3E">From<NonZeroI16></a></li><li><a href="#impl-From%3CNonZeroI32%3E-for-Value%3C%27v%3E">From<NonZeroI32></a></li><li><a href="#impl-From%3CNonZeroI64%3E-for-Value%3C%27v%3E">From<NonZeroI64></a></li><li><a href="#impl-From%3CNonZeroI8%3E-for-Value%3C%27v%3E">From<NonZeroI8></a></li><li><a href="#impl-From%3CNonZeroIsize%3E-for-Value%3C%27v%3E">From<NonZeroIsize></a></li><li><a href="#impl-From%3CNonZeroU16%3E-for-Value%3C%27v%3E">From<NonZeroU16></a></li><li><a href="#impl-From%3CNonZeroU32%3E-for-Value%3C%27v%3E">From<NonZeroU32></a></li><li><a href="#impl-From%3CNonZeroU64%3E-for-Value%3C%27v%3E">From<NonZeroU64></a></li><li><a href="#impl-From%3CNonZeroU8%3E-for-Value%3C%27v%3E">From<NonZeroU8></a></li><li><a href="#impl-From%3CNonZeroUsize%3E-for-Value%3C%27v%3E">From<NonZeroUsize></a></li><li><a href="#impl-From%3Cbool%3E-for-Value%3C%27v%3E">From<bool></a></li><li><a href="#impl-From%3Cchar%3E-for-Value%3C%27v%3E">From<char></a></li><li><a href="#impl-From%3Cf32%3E-for-Value%3C%27v%3E">From<f32></a></li><li><a href="#impl-From%3Cf64%3E-for-Value%3C%27v%3E">From<f64></a></li><li><a href="#impl-From%3Ci16%3E-for-Value%3C%27v%3E">From<i16></a></li><li><a href="#impl-From%3Ci32%3E-for-Value%3C%27v%3E">From<i32></a></li><li><a href="#impl-From%3Ci64%3E-for-Value%3C%27v%3E">From<i64></a></li><li><a href="#impl-From%3Ci8%3E-for-Value%3C%27v%3E">From<i8></a></li><li><a href="#impl-From%3Cisize%3E-for-Value%3C%27v%3E">From<isize></a></li><li><a href="#impl-From%3Cu16%3E-for-Value%3C%27v%3E">From<u16></a></li><li><a href="#impl-From%3Cu32%3E-for-Value%3C%27v%3E">From<u32></a></li><li><a href="#impl-From%3Cu64%3E-for-Value%3C%27v%3E">From<u64></a></li><li><a href="#impl-From%3Cu8%3E-for-Value%3C%27v%3E">From<u8></a></li><li><a href="#impl-From%3Cusize%3E-for-Value%3C%27v%3E">From<usize></a></li><li><a href="#impl-ToValue-for-Value%3C%27v%3E">ToValue</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block"><li><a href="#impl-RefUnwindSafe-for-Value%3C%27v%3E">!RefUnwindSafe</a></li><li><a href="#impl-Send-for-Value%3C%27v%3E">!Send</a></li><li><a href="#impl-Sync-for-Value%3C%27v%3E">!Sync</a></li><li><a href="#impl-Unpin-for-Value%3C%27v%3E">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Value%3C%27v%3E">!UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block"><li><a href="#impl-Any-for-Value%3C%27v%3E">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-Value%3C%27v%3E">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-Value%3C%27v%3E">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E-for-Value%3C%27v%3E">From<T></a></li><li><a href="#impl-Into%3CU%3E-for-Value%3C%27v%3E">Into<U></a></li><li><a href="#impl-ToString-for-Value%3C%27v%3E">ToString</a></li><li><a href="#impl-TryFrom%3CU%3E-for-Value%3C%27v%3E">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-Value%3C%27v%3E">TryInto<U></a></li></ul></section><h2><a href="index.html">In measure_time::kv</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn">Struct <a href="../index.html">measure_time</a>::<wbr><a href="index.html">kv</a>::<wbr><a class="struct" href="#">Value</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/log/kv/value.rs.html#154">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="item-decl"><pre class="rust struct"><code>pub struct Value<'v> { /* private fields */ }</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A value in a structured key-value pair.</p> |
| <h2 id="capturing-values"><a href="#capturing-values">Capturing values</a></h2> |
| <p>There are a few ways to capture a value:</p> |
| <ul> |
| <li>Using the <code>Value::capture_*</code> methods.</li> |
| <li>Using the <code>Value::from_*</code> methods.</li> |
| <li>Using the <code>ToValue</code> trait.</li> |
| <li>Using the standard <code>From</code> trait.</li> |
| </ul> |
| <h3 id="using-the-valuecapture_-methods"><a href="#using-the-valuecapture_-methods">Using the <code>Value::capture_*</code> methods</a></h3> |
| <p><code>Value</code> offers a few constructor methods that capture values of different kinds. |
| These methods require a <code>T: 'static</code> to support downcasting.</p> |
| |
| <div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>log::kv::Value; |
| |
| <span class="kw">let </span>value = Value::capture_debug(<span class="kw-2">&</span><span class="number">42i32</span>); |
| |
| <span class="macro">assert_eq!</span>(<span class="prelude-val">Some</span>(<span class="number">42</span>), value.to_i64());</code></pre></div> |
| <h3 id="using-the-valuefrom_-methods"><a href="#using-the-valuefrom_-methods">Using the <code>Value::from_*</code> methods</a></h3> |
| <p><code>Value</code> offers a few constructor methods that capture values of different kinds. |
| These methods don’t require <code>T: 'static</code>, but can’t support downcasting.</p> |
| |
| <div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>log::kv::Value; |
| |
| <span class="kw">let </span>value = Value::from_debug(<span class="kw-2">&</span><span class="number">42i32</span>); |
| |
| <span class="macro">assert_eq!</span>(<span class="prelude-val">None</span>, value.to_i64());</code></pre></div> |
| <h3 id="using-the-tovalue-trait"><a href="#using-the-tovalue-trait">Using the <code>ToValue</code> trait</a></h3> |
| <p>The <code>ToValue</code> trait can be used to capture values generically. |
| It’s the bound used by <code>Source</code>.</p> |
| |
| <div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>value = <span class="number">42i32</span>.to_value(); |
| |
| <span class="macro">assert_eq!</span>(<span class="prelude-val">Some</span>(<span class="number">42</span>), value.to_i64());</code></pre></div> |
| |
| <div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>log::kv::ToValue; |
| |
| <span class="kw">let </span>value = (<span class="kw-2">&</span><span class="number">42i32 </span><span class="kw">as </span><span class="kw-2">&</span><span class="kw">dyn </span>Debug).to_value(); |
| |
| <span class="macro">assert_eq!</span>(<span class="prelude-val">None</span>, value.to_i64());</code></pre></div> |
| <h3 id="using-the-standard-from-trait"><a href="#using-the-standard-from-trait">Using the standard <code>From</code> trait</a></h3> |
| <p>Standard types that implement <code>ToValue</code> also implement <code>From</code>.</p> |
| |
| <div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>log::kv::Value; |
| |
| <span class="kw">let </span>value = Value::from(<span class="number">42i32</span>); |
| |
| <span class="macro">assert_eq!</span>(<span class="prelude-val">Some</span>(<span class="number">42</span>), value.to_i64());</code></pre></div> |
| </div></details><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#158">source</a><a href="#impl-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_any" class="method has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#160-162">source</a><h4 class="code-header">pub fn <a href="#method.from_any" class="fnname">from_any</a><T>(value: &'v T) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v><span class="where fmt-newline">where<br> T: <a class="trait" href="trait.ToValue.html" title="trait measure_time::kv::ToValue">ToValue</a>,</span></h4></section></summary><div class="docblock"><p>Get a value from a type implementing <code>ToValue</code>.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.capture_debug" class="method has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#168-170">source</a><h4 class="code-header">pub fn <a href="#method.capture_debug" class="fnname">capture_debug</a><T>(value: &'v T) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v><span class="where fmt-newline">where<br> T: 'static + Debug,</span></h4></section></summary><div class="docblock"><p>Get a value from a type implementing <code>std::fmt::Debug</code>.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.capture_display" class="method has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#178-180">source</a><h4 class="code-header">pub fn <a href="#method.capture_display" class="fnname">capture_display</a><T>(value: &'v T) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v><span class="where fmt-newline">where<br> T: 'static + Display,</span></h4></section></summary><div class="docblock"><p>Get a value from a type implementing <code>std::fmt::Display</code>.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.capture_error" class="method has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#189-191">source</a><h4 class="code-header">pub fn <a href="#method.capture_error" class="fnname">capture_error</a><T>(err: &'v T) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v><span class="where fmt-newline">where<br> T: 'static + Error,</span></h4></section></summary><div class="docblock"><p>Get a value from an error.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_debug" class="method has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#221-223">source</a><h4 class="code-header">pub fn <a href="#method.from_debug" class="fnname">from_debug</a><T>(value: &'v T) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v><span class="where fmt-newline">where<br> T: Debug,</span></h4></section></summary><div class="docblock"><p>Get a value from a type implementing <code>std::fmt::Debug</code>.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_display" class="method has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#231-233">source</a><h4 class="code-header">pub fn <a href="#method.from_display" class="fnname">from_display</a><T>(value: &'v T) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v><span class="where fmt-newline">where<br> T: Display,</span></h4></section></summary><div class="docblock"><p>Get a value from a type implementing <code>std::fmt::Display</code>.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_dyn_debug" class="method has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#263">source</a><h4 class="code-header">pub fn <a href="#method.from_dyn_debug" class="fnname">from_dyn_debug</a>(value: &'v (dyn Debug + 'v)) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class="docblock"><p>Get a value from a dynamic <code>std::fmt::Debug</code>.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_dyn_display" class="method has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#270">source</a><h4 class="code-header">pub fn <a href="#method.from_dyn_display" class="fnname">from_dyn_display</a>(value: &'v (dyn Display + 'v)) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class="docblock"><p>Get a value from a dynamic <code>std::fmt::Display</code>.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_dyn_error" class="method has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#278">source</a><h4 class="code-header">pub fn <a href="#method.from_dyn_error" class="fnname">from_dyn_error</a>(err: &'v (dyn Error + 'static)) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class="docblock"><p>Get a value from a dynamic error.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is" class="method has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#295">source</a><h4 class="code-header">pub fn <a href="#method.is" class="fnname">is</a><T>(&self) -> bool<span class="where fmt-newline">where<br> T: 'static,</span></h4></section></summary><div class="docblock"><p>Check whether this value can be downcast to <code>T</code>.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.downcast_ref" class="method has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#300">source</a><h4 class="code-header">pub fn <a href="#method.downcast_ref" class="fnname">downcast_ref</a><T>(&self) -> Option<&T><span class="where fmt-newline">where<br> T: 'static,</span></h4></section></summary><div class="docblock"><p>Try downcast this value to <code>T</code>.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.visit" class="method has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#305">source</a><h4 class="code-header">pub fn <a href="#method.visit" class="fnname">visit</a>(&self, visitor: impl <a class="trait" href="value/trait.Visit.html" title="trait measure_time::kv::value::Visit">Visit</a><'v>) -> Result<(), <a class="struct" href="struct.Error.html" title="struct measure_time::kv::Error">Error</a>></h4></section></summary><div class="docblock"><p>Inspect this value using a simple visitor.</p> |
| </div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Value%3C%27v%3E-1" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#572-587">source</a><a href="#impl-Value%3C%27v%3E-1" class="anchor"></a><h3 class="code-header">impl<'v> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_u64" class="method has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#572-587">source</a><h4 class="code-header">pub fn <a href="#method.to_u64" class="fnname">to_u64</a>(&self) -> Option<u64></h4></section></summary><div class="docblock"><p>Try convert this value into a <code>u64</code>.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_i64" class="method has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#572-587">source</a><h4 class="code-header">pub fn <a href="#method.to_i64" class="fnname">to_i64</a>(&self) -> Option<i64></h4></section></summary><div class="docblock"><p>Try convert this value into a <code>i64</code>.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_u128" class="method has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#572-587">source</a><h4 class="code-header">pub fn <a href="#method.to_u128" class="fnname">to_u128</a>(&self) -> Option<u128></h4></section></summary><div class="docblock"><p>Try convert this value into a <code>u128</code>.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_i128" class="method has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#572-587">source</a><h4 class="code-header">pub fn <a href="#method.to_i128" class="fnname">to_i128</a>(&self) -> Option<i128></h4></section></summary><div class="docblock"><p>Try convert this value into a <code>i128</code>.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_f64" class="method has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#572-587">source</a><h4 class="code-header">pub fn <a href="#method.to_f64" class="fnname">to_f64</a>(&self) -> Option<f64></h4></section></summary><div class="docblock"><p>Try convert this value into a <code>f64</code>.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_char" class="method has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#572-587">source</a><h4 class="code-header">pub fn <a href="#method.to_char" class="fnname">to_char</a>(&self) -> Option<char></h4></section></summary><div class="docblock"><p>Try convert this value into a <code>char</code>.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_bool" class="method has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#572-587">source</a><h4 class="code-header">pub fn <a href="#method.to_bool" class="fnname">to_bool</a>(&self) -> Option<bool></h4></section></summary><div class="docblock"><p>Try convert this value into a <code>bool</code>.</p> |
| </div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Value%3C%27v%3E-2" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#589">source</a><a href="#impl-Value%3C%27v%3E-2" class="anchor"></a><h3 class="code-header">impl<'v> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_borrowed_error" class="method has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#592">source</a><h4 class="code-header">pub fn <a href="#method.to_borrowed_error" class="fnname">to_borrowed_error</a>(&self) -> Option<&(dyn Error + 'static)></h4></section></summary><div class="docblock"><p>Try convert this value into an error.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_borrowed_str" class="method has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#597">source</a><h4 class="code-header">pub fn <a href="#method.to_borrowed_str" class="fnname">to_borrowed_str</a>(&self) -> Option<&str></h4></section></summary><div class="docblock"><p>Try convert this value into a borrowed string.</p> |
| </div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Value%3C%27v%3E-3" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#629">source</a><a href="#impl-Value%3C%27v%3E-3" class="anchor"></a><h3 class="code-header">impl<'v> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_str" class="method has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#631">source</a><h4 class="code-header">pub fn <a href="#method.to_str" class="fnname">to_str</a>(&self) -> Option<Cow<'_, str>></h4></section></summary><div class="docblock"><p>Try convert this value into a string.</p> |
| </div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#377">source</a><a href="#impl-Debug-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> Debug for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#378">source</a><a href="#method.fmt-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">fmt</a>(&self, f: &mut Formatter<'_>) -> Result<(), Error></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Display-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#383">source</a><a href="#impl-Display-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> Display for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#384">source</a><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a class="fnname">fmt</a>(&self, f: &mut Formatter<'_>) -> Result<(), Error></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3C%26%27v%20NonZeroI128%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#490">source</a><a href="#impl-From%3C%26%27v%20NonZeroI128%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<&'v NonZeroI128> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#491">source</a><a href="#method.from-8" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(v: &'v NonZeroI128) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3C%26%27v%20NonZeroU128%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#483">source</a><a href="#impl-From%3C%26%27v%20NonZeroU128%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<&'v NonZeroU128> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#484">source</a><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(v: &'v NonZeroU128) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3C%26%27v%20String%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#636">source</a><a href="#impl-From%3C%26%27v%20String%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<&'v String> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-25" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#637">source</a><a href="#method.from-25" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(v: &'v String) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3C%26%27v%20i128%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#477">source</a><a href="#impl-From%3C%26%27v%20i128%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<&'v i128> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-17" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#478">source</a><a href="#method.from-17" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(value: &'v i128) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3C%26%27v%20str%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#465">source</a><a href="#impl-From%3C%26%27v%20str%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<&'v str> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-29" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#466">source</a><a href="#method.from-29" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(value: &'v str) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3C%26%27v%20u128%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#471">source</a><a href="#impl-From%3C%26%27v%20u128%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<&'v u128> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#472">source</a><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(value: &'v u128) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CNonZeroI16%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#567-570">source</a><a href="#impl-From%3CNonZeroI16%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<NonZeroI16> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-22" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#567-570">source</a><a href="#method.from-22" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(value: NonZeroI16) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CNonZeroI32%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#567-570">source</a><a href="#impl-From%3CNonZeroI32%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<NonZeroI32> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-13" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#567-570">source</a><a href="#method.from-13" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(value: NonZeroI32) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CNonZeroI64%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#567-570">source</a><a href="#impl-From%3CNonZeroI64%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<NonZeroI64> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#567-570">source</a><a href="#method.from-10" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(value: NonZeroI64) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CNonZeroI8%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#567-570">source</a><a href="#impl-From%3CNonZeroI8%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<NonZeroI8> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-28" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#567-570">source</a><a href="#method.from-28" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(value: NonZeroI8) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CNonZeroIsize%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#567-570">source</a><a href="#impl-From%3CNonZeroIsize%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<NonZeroIsize> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#567-570">source</a><a href="#method.from-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(value: NonZeroIsize) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CNonZeroU16%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#567-570">source</a><a href="#impl-From%3CNonZeroU16%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<NonZeroU16> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#567-570">source</a><a href="#method.from-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(value: NonZeroU16) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CNonZeroU32%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#567-570">source</a><a href="#impl-From%3CNonZeroU32%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<NonZeroU32> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-20" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#567-570">source</a><a href="#method.from-20" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(value: NonZeroU32) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CNonZeroU64%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#567-570">source</a><a href="#impl-From%3CNonZeroU64%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<NonZeroU64> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-24" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#567-570">source</a><a href="#method.from-24" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(value: NonZeroU64) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CNonZeroU8%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#567-570">source</a><a href="#impl-From%3CNonZeroU8%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<NonZeroU8> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-19" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#567-570">source</a><a href="#method.from-19" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(value: NonZeroU8) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CNonZeroUsize%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#567-570">source</a><a href="#impl-From%3CNonZeroUsize%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<NonZeroUsize> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-26" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#567-570">source</a><a href="#method.from-26" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(value: NonZeroUsize) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3Cbool%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#564">source</a><a href="#impl-From%3Cbool%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<bool> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-16" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#564">source</a><a href="#method.from-16" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(value: bool) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3Cchar%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#564">source</a><a href="#impl-From%3Cchar%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<char> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-27" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#564">source</a><a href="#method.from-27" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(value: char) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3Cf32%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#564">source</a><a href="#impl-From%3Cf32%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<f32> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-14" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#564">source</a><a href="#method.from-14" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(value: f32) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3Cf64%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#564">source</a><a href="#impl-From%3Cf64%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<f64> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-12" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#564">source</a><a href="#method.from-12" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(value: f64) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3Ci16%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#564">source</a><a href="#impl-From%3Ci16%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<i16> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-15" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#564">source</a><a href="#method.from-15" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(value: i16) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3Ci32%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#564">source</a><a href="#impl-From%3Ci32%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<i32> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#564">source</a><a href="#method.from-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(value: i32) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3Ci64%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#564">source</a><a href="#impl-From%3Ci64%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<i64> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-21" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#564">source</a><a href="#method.from-21" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(value: i64) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3Ci8%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#564">source</a><a href="#impl-From%3Ci8%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<i8> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#564">source</a><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(value: i8) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3Cisize%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#564">source</a><a href="#impl-From%3Cisize%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<isize> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#564">source</a><a href="#method.from-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(value: isize) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3Cu16%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#564">source</a><a href="#impl-From%3Cu16%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<u16> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#564">source</a><a href="#method.from-9" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(value: u16) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3Cu32%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#564">source</a><a href="#impl-From%3Cu32%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<u32> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-11" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#564">source</a><a href="#method.from-11" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(value: u32) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3Cu64%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#564">source</a><a href="#impl-From%3Cu64%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<u64> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-23" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#564">source</a><a href="#method.from-23" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(value: u64) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3Cu8%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#564">source</a><a href="#impl-From%3Cu8%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<u8> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#564">source</a><a href="#method.from-7" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(value: u8) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3Cusize%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#564">source</a><a href="#impl-From%3Cusize%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> From<usize> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-18" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#564">source</a><a href="#method.from-18" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(value: usize) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ToValue-for-Value%3C%27v%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#34">source</a><a href="#impl-ToValue-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> <a class="trait" href="trait.ToValue.html" title="trait measure_time::kv::ToValue">ToValue</a> for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_value" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/value.rs.html#35">source</a><a href="#method.to_value" class="anchor"></a><h4 class="code-header">fn <a href="trait.ToValue.html#tymethod.to_value" class="fnname">to_value</a>(&self) -> <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'_></h4></section></summary><div class='docblock'>Perform the conversion.</div></details></div></details></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe-for-Value%3C%27v%3E" class="impl has-srclink"><a href="#impl-RefUnwindSafe-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> !RefUnwindSafe for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section><section id="impl-Send-for-Value%3C%27v%3E" class="impl has-srclink"><a href="#impl-Send-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> !Send for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section><section id="impl-Sync-for-Value%3C%27v%3E" class="impl has-srclink"><a href="#impl-Sync-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> !Sync for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section><section id="impl-Unpin-for-Value%3C%27v%3E" class="impl has-srclink"><a href="#impl-Unpin-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> Unpin for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section><section id="impl-UnwindSafe-for-Value%3C%27v%3E" class="impl has-srclink"><a href="#impl-UnwindSafe-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<'v> !UnwindSafe for <a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a><'v></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any-for-Value%3C%27v%3E" class="impl has-srclink"><a href="#impl-Any-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<T> Any for T<span class="where fmt-newline">where<br> T: 'static + ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a class="fnname">type_id</a>(&self) -> TypeId</h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a href="#impl-Borrow%3CT%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<T> Borrow<T> for T<span class="where fmt-newline">where<br> T: ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span><a href="#method.borrow" class="anchor"></a><h4 class="code-header">fn <a class="fnname">borrow</a>(&self) -> &T</h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a href="#impl-BorrowMut%3CT%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<T> BorrowMut<T> for T<span class="where fmt-newline">where<br> T: ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span><a href="#method.borrow_mut" class="anchor"></a><h4 class="code-header">fn <a class="fnname">borrow_mut</a>(&mut self) -> &mut T</h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a href="#impl-From%3CT%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<T> From<T> for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-30" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.from-30" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p> |
| </div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a href="#impl-Into%3CU%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<T, U> Into<U> for T<span class="where fmt-newline">where<br> U: From<T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.into" class="anchor"></a><h4 class="code-header">fn <a class="fnname">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p> |
| <p>That is, this conversion is whatever the implementation of |
| <code>[From]<T> for U</code> chooses to do.</p> |
| </div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-ToString-for-Value%3C%27v%3E" class="impl has-srclink"><a href="#impl-ToString-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<T> ToString for T<span class="where fmt-newline">where<br> T: Display + ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_string" class="method trait-impl has-srclink"><a href="#method.to_string" class="anchor"></a><h4 class="code-header">default fn <a class="fnname">to_string</a>(&self) -> String</h4></section></summary><div class='docblock'>Converts the given value to a <code>String</code>. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a href="#impl-TryFrom%3CU%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<T, U> TryFrom<U> for T<span class="where fmt-newline">where<br> U: Into<T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-1" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = Infallible</h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.try_from" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_from</a>(value: U) -> Result<T, <T as TryFrom<U>>::Error></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-Value%3C%27v%3E" class="impl has-srclink"><a href="#impl-TryInto%3CU%3E-for-Value%3C%27v%3E" class="anchor"></a><h3 class="code-header">impl<T, U> TryInto<U> for T<span class="where fmt-newline">where<br> U: TryFrom<T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = <U as TryFrom<T>>::Error</h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.try_into" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_into</a>(self) -> Result<U, <U as TryFrom<T>>::Error></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="measure_time" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.66.0-nightly (5c8bff74b 2022-10-21)" ></div></body></html> |