rust-libnotify/glib/types/trait.StaticType.html

171 lines
22 KiB
HTML
Raw Normal View History

<!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="API documentation for the Rust `StaticType` trait in crate `glib`.">
<meta name="keywords" content="rust, rustlang, rust-lang, StaticType">
<title>glib::types::StaticType - Rust</title>
<link rel="stylesheet" type="text/css" href="../../normalize.css">
<link rel="stylesheet" type="text/css" href="../../rustdoc.css">
<link rel="stylesheet" type="text/css" href="../../main.css">
</head>
<body class="rustdoc trait">
<!--[if lte IE 8]>
<div class="warning">
This old browser is unsupported and will most likely display funky
things.
</div>
<![endif]-->
<nav class="sidebar">
<p class='location'>Trait StaticType</p><div class="block items"><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.static_type">static_type</a></div><a class="sidebar-title" href="#foreign-impls">Implementations on Foreign Types</a><div class="sidebar-links"><a href="#impl-StaticType">&amp;&#39;a T</a><a href="#impl-StaticType">bool</a><a href="#impl-StaticType">i8</a><a href="#impl-StaticType">u8</a><a href="#impl-StaticType">i32</a><a href="#impl-StaticType">u32</a><a href="#impl-StaticType">i64</a><a href="#impl-StaticType">u64</a><a href="#impl-StaticType">f32</a><a href="#impl-StaticType">f64</a><a href="#impl-StaticType">str</a><a href="#impl-StaticType">String</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='../index.html'>glib</a>::<wbr><a href='index.html'>types</a></p><script>window.sidebarCurrent = {name: 'StaticType', ty: 'trait', relpath: ''};</script><script defer src="sidebar-items.js"></script>
</nav>
<nav class="sub">
<form class="search-form js-only">
<div class="search-container">
<input class="search-input" name="search"
autocomplete="off"
placeholder="Click or press S to search, ? for more options…"
type="search">
</div>
</form>
</nav>
<section id='main' class="content">
<h1 class='fqn'><span class='in-band'>Trait <a href='../index.html'>glib</a>::<wbr><a href='index.html'>types</a>::<wbr><a class="trait" href=''>StaticType</a></span><span class='out-of-band'><span id='render-detail'>
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>&#x2212;</span>]
</a>
</span><a class='srclink' href='../../src/glib/types.rs.html#85-88' title='goto source code'>[src]</a></span></h1>
<pre class='rust trait'>pub trait StaticType {
fn <a href='#tymethod.static_type' class='fnname'>static_type</a>() -&gt; <a class="enum" href="../../glib/types/enum.Type.html" title="enum glib::types::Type">Type</a>;
}</pre><div class='docblock'><p>Types that are supported by GLib dynamic typing.</p>
</div>
<h2 id='required-methods' class='small-section-header'>
Required Methods<a href='#required-methods' class='anchor'></a>
</h2>
<div class='methods'>
<h3 id='tymethod.static_type' class='method'><span id='static_type.v' class='invisible'><code>fn <a href='#tymethod.static_type' class='fnname'>static_type</a>() -&gt; <a class="enum" href="../../glib/types/enum.Type.html" title="enum glib::types::Type">Type</a></code></span></h3><div class='docblock'><p>Returns the type identifier of <code>Self</code>.</p>
</div></div>
<h2 id='foreign-impls' class='small-section-header'>
Implementations on Foreign Types<a href='#foreign-impls' class='anchor'></a>
</h2>
<h3 id='impl-StaticType' class='impl'><span class='in-band'><code>impl&lt;'a, T:&nbsp;?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="../../glib/types/trait.StaticType.html" title="trait glib::types::StaticType">StaticType</a>&gt; <a class="trait" href="../../glib/types/trait.StaticType.html" title="trait glib::types::StaticType">StaticType</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a </a>T</code><a href='#impl-StaticType' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/glib/types.rs.html#90-94' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.static_type' class="method"><span id='static_type.v-1' class='invisible'><code>fn <a href='#method.static_type' class='fnname'>static_type</a>() -&gt; <a class="enum" href="../../glib/types/enum.Type.html" title="enum glib::types::Type">Type</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/glib/types.rs.html#91-93' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-StaticType-1' class='impl'><span class='in-band'><code>impl <a class="trait" href="../../glib/types/trait.StaticType.html" title="trait glib::types::StaticType">StaticType</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a href='#impl-StaticType-1' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/glib/types.rs.html#98-102' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.static_type-1' class="method"><span id='static_type.v-2' class='invisible'><code>fn <a href='#method.static_type' class='fnname'>static_type</a>() -&gt; <a class="enum" href="../../glib/types/enum.Type.html" title="enum glib::types::Type">Type</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/glib/types.rs.html#99-101' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-StaticType-2' class='impl'><span class='in-band'><code>impl <a class="trait" href="../../glib/types/trait.StaticType.html" title="trait glib::types::StaticType">StaticType</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a></code><a href='#impl-StaticType-2' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/glib/types.rs.html#98-102' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.static_type-2' class="method"><span id='static_type.v-3' class='invisible'><code>fn <a href='#method.static_type' class='fnname'>static_type</a>() -&gt; <a class="enum" href="../../glib/types/enum.Type.html" title="enum glib::types::Type">Type</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/glib/types.rs.html#99-101' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-StaticType-3' class='impl'><span class='in-band'><code>impl <a class="trait" href="../../glib/types/trait.StaticType.html" title="trait glib::types::StaticType">StaticType</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></code><a href='#impl-StaticType-3' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/glib/types.rs.html#98-102' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.static_type-3' class="method"><span id='static_type.v-4' class='invisible'><code>fn <a href='#method.static_type' class='fnname'>static_type</a>() -&gt; <a class="enum" href="../../glib/types/enum.Type.html" title="enum glib::types::Type">Type</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/glib/types.rs.html#99-101' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-StaticType-4' class='impl'><span class='in-band'><code>impl <a class="trait" href="../../glib/types/trait.StaticType.html" title="trait glib::types::StaticType">StaticType</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a></code><a href='#impl-StaticType-4' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/glib/types.rs.html#98-102' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.static_type-4' class="method"><span id='static_type.v-5' class='invisible'><code>fn <a href='#method.static_type' class='fnname'>static_type</a>() -&gt; <a class="enum" href="../../glib/types/enum.Type.html" title="enum glib::types::Type">Type</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/glib/types.rs.html#99-101' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-StaticType-5' class='impl'><span class='in-band'><code>impl <a class="trait" href="../../glib/types/trait.StaticType.html" title="trait glib::types::StaticType">StaticType</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code><a href='#impl-StaticType-5' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/glib/types.rs.html#98-102' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.static_type-5' class="method"><span id='static_type.v-6' class='invisible'><code>fn <a href='#method.static_type' class='fnname'>static_type</a>() -&gt; <a class="enum" href="../../glib/types/enum.Type.html" title="enum glib::types::Type">Type</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/glib/types.rs.html#99-101' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-StaticType-6' class='impl'><span class='in-band'><code>impl <a class="trait" href="../../glib/types/trait.StaticType.html" title="trait glib::types::StaticType">StaticType</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></code><a href='#impl-StaticType-6' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/glib/types.rs.html#98-102' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.static_type-6' class="method"><span id='static_type.v-7' class='invisible'><code>fn <a href='#method.static_type' class='fnname'>static_type</a>() -&gt; <a class="enum" href="../../glib/types/enum.Type.html" title="enum glib::types::Type">Type</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/glib/types.rs.html#99-101' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-StaticType-7' class='impl'><span class='in-band'><code>impl <a class="trait" href="../../glib/types/trait.StaticType.html" title="trait glib::types::StaticType">StaticType</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code><a href='#impl-StaticType-7' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/glib/types.rs.html#98-102' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.static_type-7' class="method"><span id='static_type.v-8' class='invisible'><code>fn <a href='#method.static_type' class='fnname'>static_type</a>() -&gt; <a class="enum" href="../../glib/types/enum.Type.html" title="enum glib::types::Type">Type</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/glib/types.rs.html#99-101' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-StaticType-8' class='impl'><span class='in-band'><code>impl <a class="trait" href="../../glib/types/trait.StaticType.html" title="trait glib::types::StaticType">StaticType</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></code><a href='#impl-StaticType-8' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/glib/types.rs.html#98-102' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.static_type-8' class="method"><span id='static_type.v-9' class='invisible'><code>fn <a href='#method.static_type' class='fnname'>static_type</a>() -&gt; <a class="enum" href="../../glib/types/enum.Type.html" title="enum glib::types::Type">Type</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/glib/types.rs.html#99-101' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-StaticType-9' class='impl'><span class='in-band'><code>impl <a class="trait" href="../../glib/types/trait.StaticType.html" title="trait glib::types::StaticType">StaticType</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code><a href='#impl-StaticType-9' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/glib/types.rs.html#98-102' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.static_type-9' class="method"><span id='static_type.v-10' class='invisible'><code>fn <a href='#method.static_type' class='fnname'>static_type</a>() -&gt; <a class="enum" href="../../glib/types/enum.Type.html" title="enum glib::types::Type">Type</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/glib/types.rs.html#99-101' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-StaticType-10' class='impl'><span class='in-band'><code>impl <a class="trait" href="../../glib/types/trait.StaticType.html" title="trait glib::types::StaticType">StaticType</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code><a href='#impl-StaticType-10' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/glib/types.rs.html#98-102' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.static_type-10' class="method"><span id='static_type.v-11' class='invisible'><code>fn <a href='#method.static_type' class='fnname'>static_type</a>() -&gt; <a class="enum" href="../../glib/types/enum.Type.html" title="enum glib::types::Type">Type</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/glib/types.rs.html#99-101' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-StaticType-11' class='impl'><span class='in-band'><code>impl <a class="trait" href="../../glib/types/trait.StaticType.html" title="trait glib::types::StaticType">StaticType</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code><a href='#impl-StaticType-11' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/glib/types.rs.html#98-102' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.static_type-11' class="method"><span id='static_type.v-12' class='invisible'><code>fn <a href='#method.static_type' class='fnname'>static_type</a>() -&gt; <a class="enum" href="../../glib/types/enum.Type.html" title="enum glib::types::Type">Type</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/glib/types.rs.html#99-101' title='goto source code'>[src]</a></span></h4>
</div></span>
<h2 id='implementors' class='small-section-header'>
Implementors<a href='#implementors' class='anchor'></a>
</h2>
<ul class='item-list' id='implementors-list'>
<li><div class='out-of-band'><a class='srclink' href='../../src/glib/object.rs.html#419-423' title='goto source code'>[src]</a></div><code>impl StaticType for <a class="struct" href="../../glib/object/struct.Object.html" title="struct glib::object::Object">Object</a></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/glib/boxed.rs.html#22-26' title='goto source code'>[src]</a></div><code>impl StaticType for <a class="struct" href="../../glib/struct.Checksum.html" title="struct glib::Checksum">Checksum</a></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/glib/shared.rs.html#21-25' title='goto source code'>[src]</a></div><code>impl StaticType for <a class="struct" href="../../glib/struct.DateTime.html" title="struct glib::DateTime">DateTime</a></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/glib/shared.rs.html#21-25' title='goto source code'>[src]</a></div><code>impl StaticType for <a class="struct" href="../../glib/struct.KeyFile.html" title="struct glib::KeyFile">KeyFile</a></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/glib/shared.rs.html#21-25' title='goto source code'>[src]</a></div><code>impl StaticType for <a class="struct" href="../../glib/struct.MainContext.html" title="struct glib::MainContext">MainContext</a></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/glib/shared.rs.html#21-25' title='goto source code'>[src]</a></div><code>impl StaticType for <a class="struct" href="../../glib/struct.MainLoop.html" title="struct glib::MainLoop">MainLoop</a></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/glib/shared.rs.html#21-25' title='goto source code'>[src]</a></div><code>impl StaticType for <a class="struct" href="../../glib/struct.Source.html" title="struct glib::Source">Source</a></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/glib/shared.rs.html#21-25' title='goto source code'>[src]</a></div><code>impl StaticType for <a class="struct" href="../../glib/struct.TimeZone.html" title="struct glib::TimeZone">TimeZone</a></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/glib/shared.rs.html#21-25' title='goto source code'>[src]</a></div><code>impl StaticType for <a class="struct" href="../../glib/struct.Bytes.html" title="struct glib::Bytes">Bytes</a></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/glib/shared.rs.html#21-25' title='goto source code'>[src]</a></div><code>impl StaticType for <a class="struct" href="../../glib/closure/struct.Closure.html" title="struct glib::closure::Closure">Closure</a></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/glib/boxed.rs.html#22-26' title='goto source code'>[src]</a></div><code>impl StaticType for <a class="struct" href="../../glib/error/struct.Error.html" title="struct glib::error::Error">Error</a></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/glib/shared.rs.html#21-25' title='goto source code'>[src]</a></div><code>impl StaticType for <a class="struct" href="../../glib/variant/struct.Variant.html" title="struct glib::variant::Variant">Variant</a></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/glib/boxed.rs.html#22-26' title='goto source code'>[src]</a></div><code>impl StaticType for <a class="struct" href="../../glib/struct.Date.html" title="struct glib::Date">Date</a></code></li>
</ul><script type="text/javascript" async
src="../../implementors/glib/types/trait.StaticType.js">
</script></section>
<section id='search' class="content hidden"></section>
<section class="footer"></section>
<aside id="help" class="hidden">
<div>
<h1 class="hidden">Help</h1>
<div class="shortcuts">
<h2>Keyboard Shortcuts</h2>
<dl>
<dt>?</dt>
<dd>Show this help dialog</dd>
<dt>S</dt>
<dd>Focus the search field</dd>
<dt></dt>
<dd>Move up in search results</dd>
<dt></dt>
<dd>Move down in search results</dd>
<dt></dt>
<dd>Switch tab</dd>
<dt>&#9166;</dt>
<dd>Go to active search result</dd>
<dt style="width:31px;">+ / -</dt>
<dd>Collapse/expand all sections</dd>
</dl>
</div>
<div class="infos">
<h2>Search Tricks</h2>
<p>
Prefix searches with a type followed by a colon (e.g.
<code>fn:</code>) to restrict the search to a given type.
</p>
<p>
Accepted types are: <code>fn</code>, <code>mod</code>,
<code>struct</code>, <code>enum</code>,
<code>trait</code>, <code>type</code>, <code>macro</code>,
and <code>const</code>.
</p>
<p>
Search functions by type signature (e.g.
<code>vec -> usize</code> or <code>* -> vec</code>)
</p>
</div>
</div>
</aside>
<script>
window.rootPath = "../../";
window.currentCrate = "glib";
</script>
<script src="../../main.js"></script>
<script defer src="../../search-index.js"></script>
</body>
</html>