Files
phy/gltf_json/root/trait.Get.html
Orion Kindel 0ce894e6b0 doc
2025-03-18 10:30:23 -05:00

6 lines
12 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="Helper trait for retrieving top-level objects by a universal identifier."><title>Get in gltf_json::root - 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-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="gltf_json" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.0 (9fc6b4312 2025-01-07)" data-channel="1.84.0" data-search-js="search-92e6798f.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="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../gltf_json/index.html">gltf_<wbr>json</a><span class="version">1.4.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Get</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.get" title="get">get</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In gltf_<wbr>json::<wbr>root</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">gltf_json</a>::<wbr><a href="index.html">root</a></span><h1>Trait <span class="trait">Get</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/gltf_json/root.rs.html#19-22">Source</a> </span></div><pre class="rust item-decl"><code>pub trait Get&lt;T&gt; {
// Required method
fn <a href="#tymethod.get" class="fn">get</a>(&amp;self, id: <a class="struct" href="../struct.Index.html" title="struct gltf_json::Index">Index</a>&lt;T&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a>&gt;;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Helper trait for retrieving top-level objects by a universal identifier.</p>
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.get" class="method"><a class="src rightside" href="../../src/gltf_json/root.rs.html#21">Source</a><h4 class="code-header">fn <a href="#tymethod.get" class="fn">get</a>(&amp;self, id: <a class="struct" href="../struct.Index.html" title="struct gltf_json::Index">Index</a>&lt;T&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a>&gt;</h4></section></summary><div class="docblock"><p>Retrieves a single value at the given index.</p>
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-Get%3CLight%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/extensions/root.rs.html#38-53">Source</a><a href="#impl-Get%3CLight%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Get.html" title="trait gltf_json::root::Get">Get</a>&lt;<a class="struct" href="../extensions/scene/khr_lights_punctual/struct.Light.html" title="struct gltf_json::extensions::scene::khr_lights_punctual::Light">Light</a>&gt; for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section><section id="impl-Get%3CView%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#392">Source</a><a href="#impl-Get%3CView%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl&lt;'a&gt; <a class="trait" href="trait.Get.html" title="trait gltf_json::root::Get">Get</a>&lt;<a class="struct" href="../buffer/struct.View.html" title="struct gltf_json::buffer::View">View</a>&gt; for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section><section id="impl-Get%3CAccessor%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#389">Source</a><a href="#impl-Get%3CAccessor%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl&lt;'a&gt; <a class="trait" href="trait.Get.html" title="trait gltf_json::root::Get">Get</a>&lt;<a class="struct" href="../struct.Accessor.html" title="struct gltf_json::Accessor">Accessor</a>&gt; for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section><section id="impl-Get%3CAnimation%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#390">Source</a><a href="#impl-Get%3CAnimation%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl&lt;'a&gt; <a class="trait" href="trait.Get.html" title="trait gltf_json::root::Get">Get</a>&lt;<a class="struct" href="../struct.Animation.html" title="struct gltf_json::Animation">Animation</a>&gt; for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section><section id="impl-Get%3CBuffer%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#391">Source</a><a href="#impl-Get%3CBuffer%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl&lt;'a&gt; <a class="trait" href="trait.Get.html" title="trait gltf_json::root::Get">Get</a>&lt;<a class="struct" href="../struct.Buffer.html" title="struct gltf_json::Buffer">Buffer</a>&gt; for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section><section id="impl-Get%3CCamera%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#393">Source</a><a href="#impl-Get%3CCamera%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl&lt;'a&gt; <a class="trait" href="trait.Get.html" title="trait gltf_json::root::Get">Get</a>&lt;<a class="struct" href="../struct.Camera.html" title="struct gltf_json::Camera">Camera</a>&gt; for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section><section id="impl-Get%3CImage%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#394">Source</a><a href="#impl-Get%3CImage%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl&lt;'a&gt; <a class="trait" href="trait.Get.html" title="trait gltf_json::root::Get">Get</a>&lt;<a class="struct" href="../struct.Image.html" title="struct gltf_json::Image">Image</a>&gt; for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section><section id="impl-Get%3CMaterial%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#395">Source</a><a href="#impl-Get%3CMaterial%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl&lt;'a&gt; <a class="trait" href="trait.Get.html" title="trait gltf_json::root::Get">Get</a>&lt;<a class="struct" href="../struct.Material.html" title="struct gltf_json::Material">Material</a>&gt; for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section><section id="impl-Get%3CMesh%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#396">Source</a><a href="#impl-Get%3CMesh%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl&lt;'a&gt; <a class="trait" href="trait.Get.html" title="trait gltf_json::root::Get">Get</a>&lt;<a class="struct" href="../struct.Mesh.html" title="struct gltf_json::Mesh">Mesh</a>&gt; for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section><section id="impl-Get%3CNode%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#397">Source</a><a href="#impl-Get%3CNode%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl&lt;'a&gt; <a class="trait" href="trait.Get.html" title="trait gltf_json::root::Get">Get</a>&lt;<a class="struct" href="../struct.Node.html" title="struct gltf_json::Node">Node</a>&gt; for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section><section id="impl-Get%3CScene%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#399">Source</a><a href="#impl-Get%3CScene%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl&lt;'a&gt; <a class="trait" href="trait.Get.html" title="trait gltf_json::root::Get">Get</a>&lt;<a class="struct" href="../struct.Scene.html" title="struct gltf_json::Scene">Scene</a>&gt; for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section><section id="impl-Get%3CSkin%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#400">Source</a><a href="#impl-Get%3CSkin%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl&lt;'a&gt; <a class="trait" href="trait.Get.html" title="trait gltf_json::root::Get">Get</a>&lt;<a class="struct" href="../struct.Skin.html" title="struct gltf_json::Skin">Skin</a>&gt; for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section><section id="impl-Get%3CTexture%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#401">Source</a><a href="#impl-Get%3CTexture%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl&lt;'a&gt; <a class="trait" href="trait.Get.html" title="trait gltf_json::root::Get">Get</a>&lt;<a class="struct" href="../struct.Texture.html" title="struct gltf_json::Texture">Texture</a>&gt; for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section><section id="impl-Get%3CSampler%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#398">Source</a><a href="#impl-Get%3CSampler%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl&lt;'a&gt; <a class="trait" href="trait.Get.html" title="trait gltf_json::root::Get">Get</a>&lt;<a class="struct" href="../texture/struct.Sampler.html" title="struct gltf_json::texture::Sampler">Sampler</a>&gt; for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></div><script src="../../trait.impl/gltf_json/root/trait.Get.js" async></script></section></div></main></body></html>