esp-idf-hal/log/enum.Level.html

63 lines
42 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="An enum representing the available verbosity levels of the logger."><title>Level in log - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-46132b98.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="log" data-themes="" data-resource-suffix="" data-rustdoc-version="1.86.0-nightly (8361aef0d 2025-01-14)" data-channel="nightly" data-search-js="search-75f5ac3e.js" data-settings-js="settings-0f613d39.js" ><script src="../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-893ab5e7.css"></noscript><link rel="icon" href="https://www.rust-lang.org/favicon.ico"></head><body class="rustdoc enum"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../log/index.html"><img src="https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../log/index.html"><img src="https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" alt="logo"></a><h2><a href="../log/index.html">log</a><span class="version">0.4.25</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Level</a></h2><h3><a href="#variants">Variants</a></h3><ul class="block variant"><li><a href="#variant.Debug" title="Debug">Debug</a></li><li><a href="#variant.Error" title="Error">Error</a></li><li><a href="#variant.Info" title="Info">Info</a></li><li><a href="#variant.Trace" title="Trace">Trace</a></li><li><a href="#variant.Warn" title="Warn">Warn</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.as_str" title="as_str">as_str</a></li><li><a href="#method.iter" title="iter">iter</a></li><li><a href="#method.max" title="max">max</a></li><li><a href="#method.to_level_filter" title="to_level_filter">to_level_filter</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Clone-for-Level" title="Clone">Clone</a></li><li><a href="#impl-Copy-for-Level" title="Copy">Copy</a></li><li><a href="#impl-Debug-for-Level" title="Debug">Debug</a></li><li><a href="#impl-Display-for-Level" title="Display">Display</a></li><li><a href="#impl-Eq-for-Level" title="Eq">Eq</a></li><li><a href="#impl-FromStr-for-Level" title="FromStr">FromStr</a></li><li><a href="#impl-Hash-for-Level" title="Hash">Hash</a></li><li><a href="#impl-Ord-for-Level" title="Ord">Ord</a></li><li><a href="#impl-PartialEq-for-Level" title="PartialEq">PartialEq</a></li><li><a href="#impl-PartialEq%3CLevel%3E-for-LevelFilter" title="PartialEq&#60;Level&#62;">PartialEq&#60;Level&#62;</a></li><li><a href="#impl-PartialEq%3CLevelFilter%3E-for-Level" title="PartialEq&#60;LevelFilter&#62;">PartialEq&#60;LevelFilter&#62;</a></li><li><a href="#impl-PartialOrd-for-Level" title="PartialOrd">PartialOrd</a></li><li><a href="#impl-PartialOrd%3CLevel%3E-for-LevelFilter" title="PartialOrd&#60;Level&#62;">PartialOrd&#60;Level&#62;</a></li><li><a href="#impl-PartialOrd%3CLevelFilter%3E-for-Level" title="PartialOrd&#60;LevelFilter&#62;">PartialOrd&#60;LevelFilter&#62;</a></li><li><a href="#impl-StructuralPartialEq-for-Level" title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-Level" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-Level" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Level" title="Send">Send</a></li><li><a href="#impl-Sync-for-Level" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-Level" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Level" title="UnwindSafe">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a href="#impl-CloneToUninit-for-T" title="CloneToUninit">CloneToUninit</a></li><li><a href="#impl-From%3CT%3E-for-T" title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate log</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="index.html">log</a></span><h1>Enum <span class="enum">Level</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/log/lib.rs.html#484-508">Source</a> </span></div><pre class="rust item-decl"><code><div class="code-attribute">#[repr(usize)]</div>pub enum Level {
Error = 1,
Warn = 2,
Info = 3,
Debug = 4,
Trace = 5,
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>An enum representing the available verbosity levels of the logger.</p>
<p>Typical usage includes: checking if a certain <code>Level</code> is enabled with
<a href="macro.log_enabled.html"><code>log_enabled!</code></a>, specifying the <code>Level</code> of
<a href="macro.log.html"><code>log!</code></a>, and comparing a <code>Level</code> directly to a
<a href="enum.LevelFilter.html"><code>LevelFilter</code></a>.</p>
</div></details><h2 id="variants" class="variants section-header">Variants<a href="#variants" class="anchor">§</a></h2><div class="variants"><section id="variant.Error" class="variant"><a href="#variant.Error" class="anchor">§</a><h3 class="code-header">Error = 1</h3></section><div class="docblock"><p>The “error” level.</p>
<p>Designates very serious errors.</p>
</div><section id="variant.Warn" class="variant"><a href="#variant.Warn" class="anchor">§</a><h3 class="code-header">Warn = 2</h3></section><div class="docblock"><p>The “warn” level.</p>
<p>Designates hazardous situations.</p>
</div><section id="variant.Info" class="variant"><a href="#variant.Info" class="anchor">§</a><h3 class="code-header">Info = 3</h3></section><div class="docblock"><p>The “info” level.</p>
<p>Designates useful information.</p>
</div><section id="variant.Debug" class="variant"><a href="#variant.Debug" class="anchor">§</a><h3 class="code-header">Debug = 4</h3></section><div class="docblock"><p>The “debug” level.</p>
<p>Designates lower priority information.</p>
</div><section id="variant.Trace" class="variant"><a href="#variant.Trace" class="anchor">§</a><h3 class="code-header">Trace = 5</h3></section><div class="docblock"><p>The “trace” level.</p>
<p>Designates very low priority, often extremely verbose, information.</p>
</div></div><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-Level" class="impl"><a class="src rightside" href="../src/log/lib.rs.html#544-592">Source</a><a href="#impl-Level" class="anchor">§</a><h3 class="code-header">impl <a class="enum" href="enum.Level.html" title="enum log::Level">Level</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.max" class="method"><a class="src rightside" href="../src/log/lib.rs.html#558-560">Source</a><h4 class="code-header">pub fn <a href="#method.max" class="fn">max</a>() -&gt; <a class="enum" href="enum.Level.html" title="enum log::Level">Level</a></h4></section></summary><div class="docblock"><p>Returns the most verbose logging level.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.to_level_filter" class="method"><a class="src rightside" href="../src/log/lib.rs.html#564-566">Source</a><h4 class="code-header">pub fn <a href="#method.to_level_filter" class="fn">to_level_filter</a>(&amp;self) -&gt; <a class="enum" href="enum.LevelFilter.html" title="enum log::LevelFilter">LevelFilter</a></h4></section></summary><div class="docblock"><p>Converts the <code>Level</code> to the equivalent <code>LevelFilter</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_str" class="method"><a class="src rightside" href="../src/log/lib.rs.html#571-573">Source</a><h4 class="code-header">pub fn <a href="#method.as_str" class="fn">as_str</a>(&amp;self) -&gt; &amp;'static str</h4></section></summary><div class="docblock"><p>Returns the string representation of the <code>Level</code>.</p>
<p>This returns the same string as the <code>fmt::Display</code> implementation.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.iter" class="method"><a class="src rightside" href="../src/log/lib.rs.html#589-591">Source</a><h4 class="code-header">pub fn <a href="#method.iter" class="fn">iter</a>() -&gt; impl Iterator&lt;Item = Self&gt;</h4></section></summary><div class="docblock"><p>Iterate through all supported logging levels.</p>
<p>The order of iteration is from more severe to less severe log messages.</p>
<h5 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>log::Level;
<span class="kw">let </span><span class="kw-2">mut </span>levels = Level::iter();
<span class="macro">assert_eq!</span>(<span class="prelude-val">Some</span>(Level::Error), levels.next());
<span class="macro">assert_eq!</span>(<span class="prelude-val">Some</span>(Level::Trace), levels.last());</code></pre></div>
</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-Clone-for-Level" class="impl"><a class="src rightside" href="../src/log/lib.rs.html#483">Source</a><a href="#impl-Clone-for-Level" class="anchor">§</a><h3 class="code-header">impl Clone for <a class="enum" href="enum.Level.html" title="enum log::Level">Level</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/log/lib.rs.html#483">Source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a class="fn">clone</a>(&amp;self) -&gt; <a class="enum" href="enum.Level.html" title="enum log::Level">Level</a></h4></section></summary><div class='docblock'>Returns a copy of the value. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a class="fn">clone_from</a>(&amp;mut self, source: &amp;Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-Level" class="impl"><a class="src rightside" href="../src/log/lib.rs.html#483">Source</a><a href="#impl-Debug-for-Level" class="anchor">§</a><h3 class="code-header">impl Debug for <a class="enum" href="enum.Level.html" title="enum log::Level">Level</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/log/lib.rs.html#483">Source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a class="fn">fmt</a>(&amp;self, f: &amp;mut Formatter&lt;'_&gt;) -&gt; Result</h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Display-for-Level" class="impl"><a class="src rightside" href="../src/log/lib.rs.html#538-542">Source</a><a href="#impl-Display-for-Level" class="anchor">§</a><h3 class="code-header">impl Display for <a class="enum" href="enum.Level.html" title="enum log::Level">Level</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt-1" class="method trait-impl"><a class="src rightside" href="../src/log/lib.rs.html#539-541">Source</a><a href="#method.fmt-1" class="anchor">§</a><h4 class="code-header">fn <a class="fn">fmt</a>(&amp;self, fmt: &amp;mut Formatter&lt;'_&gt;) -&gt; Result</h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-FromStr-for-Level" class="impl"><a class="src rightside" href="../src/log/lib.rs.html#524-536">Source</a><a href="#impl-FromStr-for-Level" class="anchor">§</a><h3 class="code-header">impl FromStr for <a class="enum" href="enum.Level.html" title="enum log::Level">Level</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Err" class="associatedtype trait-impl"><a class="src rightside" href="../src/log/lib.rs.html#525">Source</a><a href="#associatedtype.Err" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Err</a> = <a class="struct" href="struct.ParseLevelError.html" title="struct log::ParseLevelError">ParseLevelError</a></h4></section></summary><div class='docblock'>The associated error which can be returned from parsing.</div></details><details class="toggle method-toggle" open><summary><section id="method.from_str" class="method trait-impl"><a class="src rightside" href="../src/log/lib.rs.html#526-535">Source</a><a href="#method.from_str" class="anchor">§</a><h4 class="code-header">fn <a class="fn">from_str</a>(level: &amp;str) -&gt; Result&lt;<a class="enum" href="enum.Level.html" title="enum log::Level">Level</a>, Self::Err&gt;</h4></section></summary><div class='docblock'>Parses a string <code>s</code> to return a value of this type. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Hash-for-Level" class="impl"><a class="src rightside" href="../src/log/lib.rs.html#483">Source</a><a href="#impl-Hash-for-Level" class="anchor">§</a><h3 class="code-header">impl Hash for <a class="enum" href="enum.Level.html" title="enum log::Level">Level</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/log/lib.rs.html#483">Source</a><a href="#method.hash" class="anchor">§</a><h4 class="code-header">fn <a class="fn">hash</a>&lt;__H: Hasher&gt;(&amp;self, state: &amp;mut __H)</h4></section></summary><div class='docblock'>Feeds this value into the given [<code>Hasher</code>]. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.hash_slice" class="method trait-impl"><span class="since rightside" title="Stable since Rust version 1.3.0">1.3.0</span><a href="#method.hash_slice" class="anchor">§</a><h4 class="code-header">fn <a class="fn">hash_slice</a>&lt;H&gt;(data: &amp;[Self], state: &amp;mut H)<div class="where">where
H: Hasher,
Self: Sized,</div></h4></section></summary><div class='docblock'>Feeds a slice of this type into the given [<code>Hasher</code>]. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Ord-for-Level" class="impl"><a class="src rightside" href="../src/log/lib.rs.html#483">Source</a><a href="#impl-Ord-for-Level" class="anchor">§</a><h3 class="code-header">impl Ord for <a class="enum" href="enum.Level.html" title="enum log::Level">Level</a></h3></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/log/lib.rs.html#483">Source</a><a href="#method.cmp" class="anchor">§</a><h4 class="code-header">fn <a class="fn">cmp</a>(&amp;self, other: &amp;<a class="enum" href="enum.Level.html" title="enum log::Level">Level</a>) -&gt; Ordering</h4></section></summary><div class='docblock'>This method returns an [<code>Ordering</code>] between <code>self</code> and <code>other</code>. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.max-1" class="method trait-impl"><span class="since rightside" title="Stable since Rust version 1.21.0">1.21.0</span><a href="#method.max-1" class="anchor">§</a><h4 class="code-header">fn <a class="fn">max</a>(self, other: Self) -&gt; Self<div class="where">where
Self: Sized,</div></h4></section></summary><div class='docblock'>Compares and returns the maximum of two values. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.min" class="method trait-impl"><span class="since rightside" title="Stable since Rust version 1.21.0">1.21.0</span><a href="#method.min" class="anchor">§</a><h4 class="code-header">fn <a class="fn">min</a>(self, other: Self) -&gt; Self<div class="where">where
Self: Sized,</div></h4></section></summary><div class='docblock'>Compares and returns the minimum of two values. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clamp" class="method trait-impl"><span class="since rightside" title="Stable since Rust version 1.50.0">1.50.0</span><a href="#method.clamp" class="anchor">§</a><h4 class="code-header">fn <a class="fn">clamp</a>(self, min: Self, max: Self) -&gt; Self<div class="where">where
Self: Sized,</div></h4></section></summary><div class='docblock'>Restrict a value to a certain interval. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CLevel%3E-for-LevelFilter" class="impl"><a class="src rightside" href="../src/log/lib.rs.html#619-624">Source</a><a href="#impl-PartialEq%3CLevel%3E-for-LevelFilter" class="anchor">§</a><h3 class="code-header">impl PartialEq&lt;<a class="enum" href="enum.Level.html" title="enum log::Level">Level</a>&gt; for <a class="enum" href="enum.LevelFilter.html" title="enum log::LevelFilter">LevelFilter</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-2" class="method trait-impl"><a class="src rightside" href="../src/log/lib.rs.html#621-623">Source</a><a href="#method.eq-2" class="anchor">§</a><h4 class="code-header">fn <a class="fn">eq</a>(&amp;self, other: &amp;<a class="enum" href="enum.Level.html" title="enum log::Level">Level</a>) -&gt; bool</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-2" class="method trait-impl"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.ne-2" class="anchor">§</a><h4 class="code-header">fn <a class="fn">ne</a>(&amp;self, other: &amp;Rhs) -&gt; bool</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-PartialEq%3CLevelFilter%3E-for-Level" class="impl"><a class="src rightside" href="../src/log/lib.rs.html#510-515">Source</a><a href="#impl-PartialEq%3CLevelFilter%3E-for-Level" class="anchor">§</a><h3 class="code-header">impl PartialEq&lt;<a class="enum" href="enum.LevelFilter.html" title="enum log::LevelFilter">LevelFilter</a>&gt; for <a class="enum" href="enum.Level.html" title="enum log::Level">Level</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq-1" class="method trait-impl"><a class="src rightside" href="../src/log/lib.rs.html#512-514">Source</a><a href="#method.eq-1" class="anchor">§</a><h4 class="code-header">fn <a class="fn">eq</a>(&amp;self, other: &amp;<a class="enum" href="enum.LevelFilter.html" title="enum log::LevelFilter">LevelFilter</a>) -&gt; bool</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-1" class="method trait-impl"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.ne-1" class="anchor">§</a><h4 class="code-header">fn <a class="fn">ne</a>(&amp;self, other: &amp;Rhs) -&gt; bool</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-PartialEq-for-Level" class="impl"><a class="src rightside" href="../src/log/lib.rs.html#483">Source</a><a href="#impl-PartialEq-for-Level" class="anchor">§</a><h3 class="code-header">impl PartialEq for <a class="enum" href="enum.Level.html" title="enum log::Level">Level</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/log/lib.rs.html#483">Source</a><a href="#method.eq" class="anchor">§</a><h4 class="code-header">fn <a class="fn">eq</a>(&amp;self, other: &amp;<a class="enum" href="enum.Level.html" title="enum log::Level">Level</a>) -&gt; bool</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="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.ne" class="anchor">§</a><h4 class="code-header">fn <a class="fn">ne</a>(&amp;self, other: &amp;Rhs) -&gt; bool</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%3CLevel%3E-for-LevelFilter" class="impl"><a class="src rightside" href="../src/log/lib.rs.html#626-631">Source</a><a href="#impl-PartialOrd%3CLevel%3E-for-LevelFilter" class="anchor">§</a><h3 class="code-header">impl PartialOrd&lt;<a class="enum" href="enum.Level.html" title="enum log::Level">Level</a>&gt; for <a class="enum" href="enum.LevelFilter.html" title="enum log::LevelFilter">LevelFilter</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.partial_cmp-2" class="method trait-impl"><a class="src rightside" href="../src/log/lib.rs.html#628-630">Source</a><a href="#method.partial_cmp-2" class="anchor">§</a><h4 class="code-header">fn <a class="fn">partial_cmp</a>(&amp;self, other: &amp;<a class="enum" href="enum.Level.html" title="enum log::Level">Level</a>) -&gt; Option&lt;Ordering&gt;</h4></section></summary><div class='docblock'>This method returns an ordering between <code>self</code> and <code>other</code> values if one exists. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.lt-2" class="method trait-impl"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.lt-2" class="anchor">§</a><h4 class="code-header">fn <a class="fn">lt</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>Tests less than (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;</code> operator. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.le-2" class="method trait-impl"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.le-2" class="anchor">§</a><h4 class="code-header">fn <a class="fn">le</a>(&amp;self, other: &amp;Rhs) -&gt; bool</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>&lt;=</code> operator. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.gt-2" class="method trait-impl"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.gt-2" class="anchor">§</a><h4 class="code-header">fn <a class="fn">gt</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>Tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;</code>
operator. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.ge-2" class="method trait-impl"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.ge-2" class="anchor">§</a><h4 class="code-header">fn <a class="fn">ge</a>(&amp;self, other: &amp;Rhs) -&gt; bool</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>&gt;=</code> operator. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialOrd%3CLevelFilter%3E-for-Level" class="impl"><a class="src rightside" href="../src/log/lib.rs.html#517-522">Source</a><a href="#impl-PartialOrd%3CLevelFilter%3E-for-Level" class="anchor">§</a><h3 class="code-header">impl PartialOrd&lt;<a class="enum" href="enum.LevelFilter.html" title="enum log::LevelFilter">LevelFilter</a>&gt; for <a class="enum" href="enum.Level.html" title="enum log::Level">Level</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.partial_cmp-1" class="method trait-impl"><a class="src rightside" href="../src/log/lib.rs.html#519-521">Source</a><a href="#method.partial_cmp-1" class="anchor">§</a><h4 class="code-header">fn <a class="fn">partial_cmp</a>(&amp;self, other: &amp;<a class="enum" href="enum.LevelFilter.html" title="enum log::LevelFilter">LevelFilter</a>) -&gt; Option&lt;Ordering&gt;</h4></section></summary><div class='docblock'>This method returns an ordering between <code>self</code> and <code>other</code> values if one exists. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.lt-1" class="method trait-impl"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.lt-1" class="anchor">§</a><h4 class="code-header">fn <a class="fn">lt</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>Tests less than (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;</code> operator. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.le-1" class="method trait-impl"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.le-1" class="anchor">§</a><h4 class="code-header">fn <a class="fn">le</a>(&amp;self, other: &amp;Rhs) -&gt; bool</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>&lt;=</code> operator. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.gt-1" class="method trait-impl"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.gt-1" class="anchor">§</a><h4 class="code-header">fn <a class="fn">gt</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>Tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;</code>
operator. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.ge-1" class="method trait-impl"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.ge-1" class="anchor">§</a><h4 class="code-header">fn <a class="fn">ge</a>(&amp;self, other: &amp;Rhs) -&gt; bool</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>&gt;=</code> operator. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialOrd-for-Level" class="impl"><a class="src rightside" href="../src/log/lib.rs.html#483">Source</a><a href="#impl-PartialOrd-for-Level" class="anchor">§</a><h3 class="code-header">impl PartialOrd for <a class="enum" href="enum.Level.html" title="enum log::Level">Level</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/log/lib.rs.html#483">Source</a><a href="#method.partial_cmp" class="anchor">§</a><h4 class="code-header">fn <a class="fn">partial_cmp</a>(&amp;self, other: &amp;<a class="enum" href="enum.Level.html" title="enum log::Level">Level</a>) -&gt; Option&lt;Ordering&gt;</h4></section></summary><div class='docblock'>This method returns an ordering between <code>self</code> and <code>other</code> values if one exists. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.lt" class="method trait-impl"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.lt" class="anchor">§</a><h4 class="code-header">fn <a class="fn">lt</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>Tests less than (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;</code> operator. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.le" class="method trait-impl"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.le" class="anchor">§</a><h4 class="code-header">fn <a class="fn">le</a>(&amp;self, other: &amp;Rhs) -&gt; bool</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>&lt;=</code> operator. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.gt" class="method trait-impl"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.gt" class="anchor">§</a><h4 class="code-header">fn <a class="fn">gt</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>Tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;</code>
operator. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.ge" class="method trait-impl"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.ge" class="anchor">§</a><h4 class="code-header">fn <a class="fn">ge</a>(&amp;self, other: &amp;Rhs) -&gt; bool</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>&gt;=</code> operator. <a>Read more</a></div></details></div></details><section id="impl-Copy-for-Level" class="impl"><a class="src rightside" href="../src/log/lib.rs.html#483">Source</a><a href="#impl-Copy-for-Level" class="anchor">§</a><h3 class="code-header">impl Copy for <a class="enum" href="enum.Level.html" title="enum log::Level">Level</a></h3></section><section id="impl-Eq-for-Level" class="impl"><a class="src rightside" href="../src/log/lib.rs.html#483">Source</a><a href="#impl-Eq-for-Level" class="anchor">§</a><h3 class="code-header">impl Eq for <a class="enum" href="enum.Level.html" title="enum log::Level">Level</a></h3></section><section id="impl-StructuralPartialEq-for-Level" class="impl"><a class="src rightside" href="../src/log/lib.rs.html#483">Source</a><a href="#impl-StructuralPartialEq-for-Level" class="anchor">§</a><h3 class="code-header">impl StructuralPartialEq for <a class="enum" href="enum.Level.html" title="enum log::Level">Level</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-Level" class="impl"><a href="#impl-Freeze-for-Level" class="anchor">§</a><h3 class="code-header">impl Freeze for <a class="enum" href="enum.Level.html" title="enum log::Level">Level</a></h3></section><section id="impl-RefUnwindSafe-for-Level" class="impl"><a href="#impl-RefUnwindSafe-for-Level" class="anchor">§</a><h3 class="code-header">impl RefUnwindSafe for <a class="enum" href="enum.Level.html" title="enum log::Level">Level</a></h3></section><section id="impl-Send-for-Level" class="impl"><a href="#impl-Send-for-Level" class="anchor">§</a><h3 class="code-header">impl Send for <a class="enum" href="enum.Level.html" title="enum log::Level">Level</a></h3></section><section id="impl-Sync-for-Level" class="impl"><a href="#impl-Sync-for-Level" class="anchor">§</a><h3 class="code-header">impl Sync for <a class="enum" href="enum.Level.html" title="enum log::Level">Level</a></h3></section><section id="impl-Unpin-for-Level" class="impl"><a href="#impl-Unpin-for-Level" class="anchor">§</a><h3 class="code-header">impl Unpin for <a class="enum" href="enum.Level.html" title="enum log::Level">Level</a></h3></section><section id="impl-UnwindSafe-for-Level" class="impl"><a href="#impl-UnwindSafe-for-Level" class="anchor">§</a><h3 class="code-header">impl UnwindSafe for <a class="enum" href="enum.Level.html" title="enum log::Level">Level</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 href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; Any for T<div class="where">where
T: 'static + ?Sized,</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 href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a class="fn">type_id</a>(&amp;self) -&gt; TypeId</h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; Borrow&lt;T&gt; for T<div class="where">where
T: ?Sized,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a class="fn">borrow</a>(&amp;self) -&gt; &amp;T</h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; BorrowMut&lt;T&gt; for T<div class="where">where
T: ?Sized,</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 href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a class="fn">borrow_mut</a>(&amp;mut self) -&gt; &amp;mut T</h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-CloneToUninit-for-T" class="impl"><a href="#impl-CloneToUninit-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; CloneToUninit for T<div class="where">where
T: Clone,</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 href="#method.clone_to_uninit" class="anchor">§</a><h4 class="code-header">unsafe fn <a class="fn">clone_to_uninit</a>(&amp;self, dst: *mut u8)</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>dst</code>. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; From&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a class="fn">from</a>(t: T) -&gt; 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-Into%3CU%3E-for-T" class="impl"><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; Into&lt;U&gt; for T<div class="where">where
U: From&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a class="fn">into</a>(self) -&gt; U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
<p>That is, this conversion is whatever the implementation of
<code>[From]&lt;T&gt; for U</code> chooses to do.</p>
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; TryFrom&lt;U&gt; for T<div class="where">where
U: Into&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><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="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a class="fn">try_from</a>(value: U) -&gt; Result&lt;T, &lt;T as TryFrom&lt;U&gt;&gt;::Error&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; TryInto&lt;U&gt; for T<div class="where">where
U: TryFrom&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Error</a> = &lt;U as TryFrom&lt;T&gt;&gt;::Error</h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a class="fn">try_into</a>(self) -&gt; Result&lt;U, &lt;U as TryFrom&lt;T&gt;&gt;::Error&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main></body></html>