82 lines
126 KiB
HTML
82 lines
126 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="The root object of a glTF 2.0 asset."><title>Root 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 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" 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="#">Root</a></h2><h3><a href="#fields">Fields</a></h3><ul class="block structfield"><li><a href="#structfield.accessors" title="accessors">accessors</a></li><li><a href="#structfield.animations" title="animations">animations</a></li><li><a href="#structfield.asset" title="asset">asset</a></li><li><a href="#structfield.buffer_views" title="buffer_views">buffer_views</a></li><li><a href="#structfield.buffers" title="buffers">buffers</a></li><li><a href="#structfield.cameras" title="cameras">cameras</a></li><li><a href="#structfield.extensions" title="extensions">extensions</a></li><li><a href="#structfield.extensions_required" title="extensions_required">extensions_required</a></li><li><a href="#structfield.extensions_used" title="extensions_used">extensions_used</a></li><li><a href="#structfield.extras" title="extras">extras</a></li><li><a href="#structfield.images" title="images">images</a></li><li><a href="#structfield.materials" title="materials">materials</a></li><li><a href="#structfield.meshes" title="meshes">meshes</a></li><li><a href="#structfield.nodes" title="nodes">nodes</a></li><li><a href="#structfield.samplers" title="samplers">samplers</a></li><li><a href="#structfield.scene" title="scene">scene</a></li><li><a href="#structfield.scenes" title="scenes">scenes</a></li><li><a href="#structfield.skins" title="skins">skins</a></li><li><a href="#structfield.textures" title="textures">textures</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.from_reader" title="from_reader">from_reader</a></li><li><a href="#method.from_slice" title="from_slice">from_slice</a></li><li><a href="#method.from_str" title="from_str">from_str</a></li><li><a href="#method.get" title="get">get</a></li><li><a href="#method.push" title="push">push</a></li><li><a href="#method.to_string" title="to_string">to_string</a></li><li><a href="#method.to_string_pretty" title="to_string_pretty">to_string_pretty</a></li><li><a href="#method.to_value" title="to_value">to_value</a></li><li><a href="#method.to_vec" title="to_vec">to_vec</a></li><li><a href="#method.to_vec_pretty" title="to_vec_pretty">to_vec_pretty</a></li><li><a href="#method.to_writer" title="to_writer">to_writer</a></li><li><a href="#method.to_writer_pretty" title="to_writer_pretty">to_writer_pretty</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-AsMut%3CVec%3CAccessor%3E%3E-for-Root" title="AsMut<Vec<Accessor>>">AsMut<Vec<Accessor>></a></li><li><a href="#impl-AsMut%3CVec%3CAnimation%3E%3E-for-Root" title="AsMut<Vec<Animation>>">AsMut<Vec<Animation>></a></li><li><a href="#impl-AsMut%3CVec%3CBuffer%3E%3E-for-Root" title="AsMut<Vec<Buffer>>">AsMut<Vec<Buffer>></a></li><li><a href="#impl-AsMut%3CVec%3CCamera%3E%3E-for-Root" title="AsMut<Vec<Camera>>">AsMut<Vec<Camera>></a></li><li><a href="#impl-AsMut%3CVec%3CImage%3E%3E-for-Root" title="AsMut<Vec<Image>>">AsMut<Vec<Image>></a></li><li><a href="#impl-AsMut%3CVec%3CLight%3E%3E-for-Root" title="AsMut<Vec<Light>>">AsMut<Vec<Light>></a></li><li><a href="#impl-AsMut%3CVec%3CMaterial%3E%3E-for-Root" title="AsMut<Vec<Material>>">AsMut<Vec<Material>></a></li><li><a href="#impl-AsMut%3CVec%3CMesh%3E%3E-for-Root" title="AsMut<Vec<Mesh>>">AsMut<Vec<Mesh>></a></li><li><a href="#impl-AsMut%3CVec%3CNode%3E%3E-for-Root" title="AsMut<Vec<Node>>">AsMut<Vec<Node>></a></li><li><a href="#impl-AsMut%3CVec%3CSampler%3E%3E-for-Root" title="AsMut<Vec<Sampler>>">AsMut<Vec<Sampler>></a></li><li><a href="#impl-AsMut%3CVec%3CScene%3E%3E-for-Root" title="AsMut<Vec<Scene>>">AsMut<Vec<Scene>></a></li><li><a href="#impl-AsMut%3CVec%3CSkin%3E%3E-for-Root" title="AsMut<Vec<Skin>>">AsMut<Vec<Skin>></a></li><li><a href="#impl-AsMut%3CVec%3CTexture%3E%3E-for-Root" title="AsMut<Vec<Texture>>">AsMut<Vec<Texture>></a></li><li><a href="#impl-AsMut%3CVec%3CView%3E%3E-for-Root" title="AsMut<Vec<View>>">AsMut<Vec<View>></a></li><li><a href="#impl-AsRef%3C%5BAccessor%5D%3E-for-Root" title="AsRef<[Accessor]>">AsRef<[Accessor]></a></li><li><a href="#impl-AsRef%3C%5BAnimation%5D%3E-for-Root" title="AsRef<[Animation]>">AsRef<[Animation]></a></li><li><a href="#impl-AsRef%3C%5BBuffer%5D%3E-for-Root" title="AsRef<[Buffer]>">AsRef<[Buffer]></a></li><li><a href="#impl-AsRef%3C%5BCamera%5D%3E-for-Root" title="AsRef<[Camera]>">AsRef<[Camera]></a></li><li><a href="#impl-AsRef%3C%5BImage%5D%3E-for-Root" title="AsRef<[Image]>">AsRef<[Image]></a></li><li><a href="#impl-AsRef%3C%5BLight%5D%3E-for-Root" title="AsRef<[Light]>">AsRef<[Light]></a></li><li><a href="#impl-AsRef%3C%5BMaterial%5D%3E-for-Root" title="AsRef<[Material]>">AsRef<[Material]></a></li><li><a href="#impl-AsRef%3C%5BMesh%5D%3E-for-Root" title="AsRef<[Mesh]>">AsRef<[Mesh]></a></li><li><a href="#impl-AsRef%3C%5BNode%5D%3E-for-Root" title="AsRef<[Node]>">AsRef<[Node]></a></li><li><a href="#impl-AsRef%3C%5BSampler%5D%3E-for-Root" title="AsRef<[Sampler]>">AsRef<[Sampler]></a></li><li><a href="#impl-AsRef%3C%5BScene%5D%3E-for-Root" title="AsRef<[Scene]>">AsRef<[Scene]></a></li><li><a href="#impl-AsRef%3C%5BSkin%5D%3E-for-Root" title="AsRef<[Skin]>">AsRef<[Skin]></a></li><li><a href="#impl-AsRef%3C%5BTexture%5D%3E-for-Root" title="AsRef<[Texture]>">AsRef<[Texture]></a></li><li><a href="#impl-AsRef%3C%5BView%5D%3E-for-Root" title="AsRef<[View]>">AsRef<[View]></a></li><li><a href="#impl-Clone-for-Root" title="Clone">Clone</a></li><li><a href="#impl-Debug-for-Root" title="Debug">Debug</a></li><li><a href="#impl-Default-for-Root" title="Default">Default</a></li><li><a href="#impl-Deserialize%3C'de%3E-for-Root" title="Deserialize<'de>">Deserialize<'de></a></li><li><a href="#impl-Get%3CAccessor%3E-for-Root" title="Get<Accessor>">Get<Accessor></a></li><li><a href="#impl-Get%3CAnimation%3E-for-Root" title="Get<Animation>">Get<Animation></a></li><li><a href="#impl-Get%3CBuffer%3E-for-Root" title="Get<Buffer>">Get<Buffer></a></li><li><a href="#impl-Get%3CCamera%3E-for-Root" title="Get<Camera>">Get<Camera></a></li><li><a href="#impl-Get%3CImage%3E-for-Root" title="Get<Image>">Get<Image></a></li><li><a href="#impl-Get%3CLight%3E-for-Root" title="Get<Light>">Get<Light></a></li><li><a href="#impl-Get%3CMaterial%3E-for-Root" title="Get<Material>">Get<Material></a></li><li><a href="#impl-Get%3CMesh%3E-for-Root" title="Get<Mesh>">Get<Mesh></a></li><li><a href="#impl-Get%3CNode%3E-for-Root" title="Get<Node>">Get<Node></a></li><li><a href="#impl-Get%3CSampler%3E-for-Root" title="Get<Sampler>">Get<Sampler></a></li><li><a href="#impl-Get%3CScene%3E-for-Root" title="Get<Scene>">Get<Scene></a></li><li><a href="#impl-Get%3CSkin%3E-for-Root" title="Get<Skin>">Get<Skin></a></li><li><a href="#impl-Get%3CTexture%3E-for-Root" title="Get<Texture>">Get<Texture></a></li><li><a href="#impl-Get%3CView%3E-for-Root" title="Get<View>">Get<View></a></li><li><a href="#impl-Serialize-for-Root" title="Serialize">Serialize</a></li><li><a href="#impl-Validate-for-Root" title="Validate">Validate</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-Root" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-Root" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Root" title="Send">Send</a></li><li><a href="#impl-Sync-for-Root" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-Root" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Root" 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<T>">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut<T>">BorrowMut<T></a></li><li><a href="#impl-CloneToUninit-for-T" title="CloneToUninit">CloneToUninit</a></li><li><a href="#impl-DeserializeOwned-for-T" title="DeserializeOwned">DeserializeOwned</a></li><li><a href="#impl-From%3CT%3E-for-T" title="From<T>">From<T></a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into<U>">Into<U></a></li><li><a href="#impl-ToOwned-for-T" title="ToOwned">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom<U>">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto<U>">TryInto<U></a></li></ul></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>Struct <span class="struct">Root</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#61-153">Source</a> </span></div><pre class="rust item-decl"><code>pub struct Root {<details class="toggle type-contents-toggle"><summary class="hideme"><span>Show 19 fields</span></summary>
|
|
pub accessors: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Accessor.html" title="struct gltf_json::Accessor">Accessor</a>>,
|
|
pub animations: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Animation.html" title="struct gltf_json::Animation">Animation</a>>,
|
|
pub asset: <a class="struct" href="../struct.Asset.html" title="struct gltf_json::Asset">Asset</a>,
|
|
pub buffers: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Buffer.html" title="struct gltf_json::Buffer">Buffer</a>>,
|
|
pub buffer_views: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../buffer/struct.View.html" title="struct gltf_json::buffer::View">View</a>>,
|
|
pub scene: <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.Index.html" title="struct gltf_json::Index">Index</a><<a class="struct" href="../struct.Scene.html" title="struct gltf_json::Scene">Scene</a>>>,
|
|
pub extensions: <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../extensions/root/struct.Root.html" title="struct gltf_json::extensions::root::Root">Root</a>>,
|
|
pub extras: <a class="type" href="../type.Extras.html" title="type gltf_json::Extras">Extras</a>,
|
|
pub extensions_used: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>,
|
|
pub extensions_required: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>,
|
|
pub cameras: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Camera.html" title="struct gltf_json::Camera">Camera</a>>,
|
|
pub images: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Image.html" title="struct gltf_json::Image">Image</a>>,
|
|
pub materials: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Material.html" title="struct gltf_json::Material">Material</a>>,
|
|
pub meshes: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Mesh.html" title="struct gltf_json::Mesh">Mesh</a>>,
|
|
pub nodes: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Node.html" title="struct gltf_json::Node">Node</a>>,
|
|
pub samplers: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../texture/struct.Sampler.html" title="struct gltf_json::texture::Sampler">Sampler</a>>,
|
|
pub scenes: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Scene.html" title="struct gltf_json::Scene">Scene</a>>,
|
|
pub skins: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Skin.html" title="struct gltf_json::Skin">Skin</a>>,
|
|
pub textures: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Texture.html" title="struct gltf_json::Texture">Texture</a>>,
|
|
</details>}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The root object of a glTF 2.0 asset.</p>
|
|
</div></details><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.accessors" class="structfield section-header"><a href="#structfield.accessors" class="anchor field">§</a><code>accessors: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Accessor.html" title="struct gltf_json::Accessor">Accessor</a>></code></span><div class="docblock"><p>An array of accessors.</p>
|
|
</div><span id="structfield.animations" class="structfield section-header"><a href="#structfield.animations" class="anchor field">§</a><code>animations: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Animation.html" title="struct gltf_json::Animation">Animation</a>></code></span><div class="docblock"><p>An array of keyframe animations.</p>
|
|
</div><span id="structfield.asset" class="structfield section-header"><a href="#structfield.asset" class="anchor field">§</a><code>asset: <a class="struct" href="../struct.Asset.html" title="struct gltf_json::Asset">Asset</a></code></span><div class="docblock"><p>Metadata about the glTF asset.</p>
|
|
</div><span id="structfield.buffers" class="structfield section-header"><a href="#structfield.buffers" class="anchor field">§</a><code>buffers: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Buffer.html" title="struct gltf_json::Buffer">Buffer</a>></code></span><div class="docblock"><p>An array of buffers.</p>
|
|
</div><span id="structfield.buffer_views" class="structfield section-header"><a href="#structfield.buffer_views" class="anchor field">§</a><code>buffer_views: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../buffer/struct.View.html" title="struct gltf_json::buffer::View">View</a>></code></span><div class="docblock"><p>An array of buffer views.</p>
|
|
</div><span id="structfield.scene" class="structfield section-header"><a href="#structfield.scene" class="anchor field">§</a><code>scene: <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.Index.html" title="struct gltf_json::Index">Index</a><<a class="struct" href="../struct.Scene.html" title="struct gltf_json::Scene">Scene</a>>></code></span><div class="docblock"><p>The default scene.</p>
|
|
</div><span id="structfield.extensions" class="structfield section-header"><a href="#structfield.extensions" class="anchor field">§</a><code>extensions: <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../extensions/root/struct.Root.html" title="struct gltf_json::extensions::root::Root">Root</a>></code></span><div class="docblock"><p>Extension specific data.</p>
|
|
</div><span id="structfield.extras" class="structfield section-header"><a href="#structfield.extras" class="anchor field">§</a><code>extras: <a class="type" href="../type.Extras.html" title="type gltf_json::Extras">Extras</a></code></span><div class="docblock"><p>Optional application specific data.</p>
|
|
</div><span id="structfield.extensions_used" class="structfield section-header"><a href="#structfield.extensions_used" class="anchor field">§</a><code>extensions_used: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></code></span><div class="docblock"><p>Names of glTF extensions used somewhere in this asset.</p>
|
|
</div><span id="structfield.extensions_required" class="structfield section-header"><a href="#structfield.extensions_required" class="anchor field">§</a><code>extensions_required: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></code></span><div class="docblock"><p>Names of glTF extensions required to properly load this asset.</p>
|
|
</div><span id="structfield.cameras" class="structfield section-header"><a href="#structfield.cameras" class="anchor field">§</a><code>cameras: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Camera.html" title="struct gltf_json::Camera">Camera</a>></code></span><div class="docblock"><p>An array of cameras.</p>
|
|
</div><span id="structfield.images" class="structfield section-header"><a href="#structfield.images" class="anchor field">§</a><code>images: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Image.html" title="struct gltf_json::Image">Image</a>></code></span><div class="docblock"><p>An array of images.</p>
|
|
</div><span id="structfield.materials" class="structfield section-header"><a href="#structfield.materials" class="anchor field">§</a><code>materials: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Material.html" title="struct gltf_json::Material">Material</a>></code></span><div class="docblock"><p>An array of materials.</p>
|
|
</div><span id="structfield.meshes" class="structfield section-header"><a href="#structfield.meshes" class="anchor field">§</a><code>meshes: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Mesh.html" title="struct gltf_json::Mesh">Mesh</a>></code></span><div class="docblock"><p>An array of meshes.</p>
|
|
</div><span id="structfield.nodes" class="structfield section-header"><a href="#structfield.nodes" class="anchor field">§</a><code>nodes: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Node.html" title="struct gltf_json::Node">Node</a>></code></span><div class="docblock"><p>An array of nodes.</p>
|
|
</div><span id="structfield.samplers" class="structfield section-header"><a href="#structfield.samplers" class="anchor field">§</a><code>samplers: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../texture/struct.Sampler.html" title="struct gltf_json::texture::Sampler">Sampler</a>></code></span><div class="docblock"><p>An array of samplers.</p>
|
|
</div><span id="structfield.scenes" class="structfield section-header"><a href="#structfield.scenes" class="anchor field">§</a><code>scenes: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Scene.html" title="struct gltf_json::Scene">Scene</a>></code></span><div class="docblock"><p>An array of scenes.</p>
|
|
</div><span id="structfield.skins" class="structfield section-header"><a href="#structfield.skins" class="anchor field">§</a><code>skins: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Skin.html" title="struct gltf_json::Skin">Skin</a>></code></span><div class="docblock"><p>An array of skins.</p>
|
|
</div><span id="structfield.textures" class="structfield section-header"><a href="#structfield.textures" class="anchor field">§</a><code>textures: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Texture.html" title="struct gltf_json::Texture">Texture</a>></code></span><div class="docblock"><p>An array of textures.</p>
|
|
</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-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#175-263">Source</a><a href="#impl-Root" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.get" class="method"><a class="src rightside" href="../../src/gltf_json/root.rs.html#177-182">Source</a><h4 class="code-header">pub fn <a href="#method.get" class="fn">get</a><T>(&self, index: <a class="struct" href="../struct.Index.html" title="struct gltf_json::Index">Index</a><T>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&T</a>><div class="where">where
|
|
Self: <a class="trait" href="trait.Get.html" title="trait gltf_json::root::Get">Get</a><T>,</div></h4></section></summary><div class="docblock"><p>Returns a single item from the root object.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.push" class="method"><a class="src rightside" href="../../src/gltf_json/root.rs.html#197-202">Source</a><h4 class="code-header">pub fn <a href="#method.push" class="fn">push</a><T>(&mut self, value: T) -> <a class="struct" href="../struct.Index.html" title="struct gltf_json::Index">Index</a><T><div class="where">where
|
|
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><T>>,</div></h4></section></summary><div class="docblock"><p>Insert the given value into this (as via <a href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html#method.push" title="method alloc::vec::Vec::push"><code>Vec::push()</code></a>), then return the <a href="../struct.Index.html" title="struct gltf_json::Index"><code>Index</code></a> to it.</p>
|
|
<p>This allows you to easily obtain <a href="../struct.Index.html" title="struct gltf_json::Index"><code>Index</code></a> values with the correct index and type when
|
|
creating a glTF asset.</p>
|
|
<p>If you have a mutable borrow conflict when using this method, consider using the more
|
|
explicit <a href="../struct.Index.html#method.push" title="associated function gltf_json::Index::push"><code>Index::push()</code></a> method, passing it only the necessary vector.</p>
|
|
<h5 id="panics"><a class="doc-anchor" href="#panics">§</a>Panics</h5>
|
|
<p>Panics if there are already <a href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html#associatedconstant.MAX" title="associated constant u32::MAX"><code>u32::MAX</code></a> or more elements of this type,
|
|
in which case an <code>Index</code> cannot be created.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_str" class="method"><a class="src rightside" href="../../src/gltf_json/root.rs.html#206-208">Source</a><h4 class="code-header">pub fn <a href="#method.from_str" class="fn">from_str</a>(str_: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="../struct.Error.html" title="struct gltf_json::Error">Error</a>></h4></section></summary><div class="docblock"><p>Deserialize from a JSON string slice.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_slice" class="method"><a class="src rightside" href="../../src/gltf_json/root.rs.html#211-213">Source</a><h4 class="code-header">pub fn <a href="#method.from_slice" class="fn">from_slice</a>(slice: &[<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>]) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="../struct.Error.html" title="struct gltf_json::Error">Error</a>></h4></section></summary><div class="docblock"><p>Deserialize from a JSON byte slice.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_reader" class="method"><a class="src rightside" href="../../src/gltf_json/root.rs.html#216-221">Source</a><h4 class="code-header">pub fn <a href="#method.from_reader" class="fn">from_reader</a><R>(reader: R) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="../struct.Error.html" title="struct gltf_json::Error">Error</a>><div class="where">where
|
|
R: <a class="trait" href="https://doc.rust-lang.org/1.84.0/std/io/trait.Read.html" title="trait std::io::Read">Read</a>,</div></h4></section></summary><div class="docblock"><p>Deserialize from a stream of JSON.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.to_string" class="method"><a class="src rightside" href="../../src/gltf_json/root.rs.html#224-226">Source</a><h4 class="code-header">pub fn <a href="#method.to_string" class="fn">to_string</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="../struct.Error.html" title="struct gltf_json::Error">Error</a>></h4></section></summary><div class="docblock"><p>Serialize as a <code>String</code> of JSON.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.to_string_pretty" class="method"><a class="src rightside" href="../../src/gltf_json/root.rs.html#229-231">Source</a><h4 class="code-header">pub fn <a href="#method.to_string_pretty" class="fn">to_string_pretty</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="../struct.Error.html" title="struct gltf_json::Error">Error</a>></h4></section></summary><div class="docblock"><p>Serialize as a pretty-printed <code>String</code> of JSON.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.to_value" class="method"><a class="src rightside" href="../../src/gltf_json/root.rs.html#234-236">Source</a><h4 class="code-header">pub fn <a href="#method.to_value" class="fn">to_value</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="../enum.Value.html" title="enum gltf_json::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct gltf_json::Error">Error</a>></h4></section></summary><div class="docblock"><p>Serialize as a generic JSON value.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.to_vec" class="method"><a class="src rightside" href="../../src/gltf_json/root.rs.html#239-241">Source</a><h4 class="code-header">pub fn <a href="#method.to_vec" class="fn">to_vec</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>>, <a class="struct" href="../struct.Error.html" title="struct gltf_json::Error">Error</a>></h4></section></summary><div class="docblock"><p>Serialize as a JSON byte vector.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.to_vec_pretty" class="method"><a class="src rightside" href="../../src/gltf_json/root.rs.html#244-246">Source</a><h4 class="code-header">pub fn <a href="#method.to_vec_pretty" class="fn">to_vec_pretty</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>>, <a class="struct" href="../struct.Error.html" title="struct gltf_json::Error">Error</a>></h4></section></summary><div class="docblock"><p>Serialize as a pretty-printed JSON byte vector.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.to_writer" class="method"><a class="src rightside" href="../../src/gltf_json/root.rs.html#249-254">Source</a><h4 class="code-header">pub fn <a href="#method.to_writer" class="fn">to_writer</a><W>(&self, writer: W) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>, <a class="struct" href="../struct.Error.html" title="struct gltf_json::Error">Error</a>><div class="where">where
|
|
W: <a class="trait" href="https://doc.rust-lang.org/1.84.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a>,</div></h4></section></summary><div class="docblock"><p>Serialize as a JSON byte writertor.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.to_writer_pretty" class="method"><a class="src rightside" href="../../src/gltf_json/root.rs.html#257-262">Source</a><h4 class="code-header">pub fn <a href="#method.to_writer_pretty" class="fn">to_writer_pretty</a><W>(&self, writer: W) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>, <a class="struct" href="../struct.Error.html" title="struct gltf_json::Error">Error</a>><div class="where">where
|
|
W: <a class="trait" href="https://doc.rust-lang.org/1.84.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a>,</div></h4></section></summary><div class="docblock"><p>Serialize as a pretty-printed JSON byte writertor.</p>
|
|
</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-AsMut%3CVec%3CAccessor%3E%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#389">Source</a><a href="#impl-AsMut%3CVec%3CAccessor%3E%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Accessor.html" title="struct gltf_json::Accessor">Accessor</a>>> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_mut-1" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#389">Source</a><a href="#method.as_mut-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fn">as_mut</a>(&mut self) -> &mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Accessor.html" title="struct gltf_json::Accessor">Accessor</a>></h4></section></summary><div class='docblock'>Converts this type into a mutable reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsMut%3CVec%3CAnimation%3E%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#390">Source</a><a href="#impl-AsMut%3CVec%3CAnimation%3E%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Animation.html" title="struct gltf_json::Animation">Animation</a>>> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_mut-2" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#390">Source</a><a href="#method.as_mut-2" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fn">as_mut</a>(&mut self) -> &mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Animation.html" title="struct gltf_json::Animation">Animation</a>></h4></section></summary><div class='docblock'>Converts this type into a mutable reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsMut%3CVec%3CBuffer%3E%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#391">Source</a><a href="#impl-AsMut%3CVec%3CBuffer%3E%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Buffer.html" title="struct gltf_json::Buffer">Buffer</a>>> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_mut-3" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#391">Source</a><a href="#method.as_mut-3" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fn">as_mut</a>(&mut self) -> &mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Buffer.html" title="struct gltf_json::Buffer">Buffer</a>></h4></section></summary><div class='docblock'>Converts this type into a mutable reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsMut%3CVec%3CCamera%3E%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#393">Source</a><a href="#impl-AsMut%3CVec%3CCamera%3E%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Camera.html" title="struct gltf_json::Camera">Camera</a>>> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_mut-5" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#393">Source</a><a href="#method.as_mut-5" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fn">as_mut</a>(&mut self) -> &mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Camera.html" title="struct gltf_json::Camera">Camera</a>></h4></section></summary><div class='docblock'>Converts this type into a mutable reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsMut%3CVec%3CImage%3E%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#394">Source</a><a href="#impl-AsMut%3CVec%3CImage%3E%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Image.html" title="struct gltf_json::Image">Image</a>>> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_mut-6" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#394">Source</a><a href="#method.as_mut-6" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fn">as_mut</a>(&mut self) -> &mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Image.html" title="struct gltf_json::Image">Image</a>></h4></section></summary><div class='docblock'>Converts this type into a mutable reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsMut%3CVec%3CLight%3E%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/extensions/root.rs.html#66-75">Source</a><a href="#impl-AsMut%3CVec%3CLight%3E%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../extensions/scene/khr_lights_punctual/struct.Light.html" title="struct gltf_json::extensions::scene::khr_lights_punctual::Light">Light</a>>> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_mut" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/extensions/root.rs.html#67-74">Source</a><a href="#method.as_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fn">as_mut</a>(&mut self) -> &mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../extensions/scene/khr_lights_punctual/struct.Light.html" title="struct gltf_json::extensions::scene::khr_lights_punctual::Light">Light</a>></h4></section></summary><div class='docblock'>Converts this type into a mutable reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsMut%3CVec%3CMaterial%3E%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#395">Source</a><a href="#impl-AsMut%3CVec%3CMaterial%3E%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Material.html" title="struct gltf_json::Material">Material</a>>> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_mut-7" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#395">Source</a><a href="#method.as_mut-7" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fn">as_mut</a>(&mut self) -> &mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Material.html" title="struct gltf_json::Material">Material</a>></h4></section></summary><div class='docblock'>Converts this type into a mutable reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsMut%3CVec%3CMesh%3E%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#396">Source</a><a href="#impl-AsMut%3CVec%3CMesh%3E%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Mesh.html" title="struct gltf_json::Mesh">Mesh</a>>> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_mut-8" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#396">Source</a><a href="#method.as_mut-8" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fn">as_mut</a>(&mut self) -> &mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Mesh.html" title="struct gltf_json::Mesh">Mesh</a>></h4></section></summary><div class='docblock'>Converts this type into a mutable reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsMut%3CVec%3CNode%3E%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#397">Source</a><a href="#impl-AsMut%3CVec%3CNode%3E%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Node.html" title="struct gltf_json::Node">Node</a>>> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_mut-9" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#397">Source</a><a href="#method.as_mut-9" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fn">as_mut</a>(&mut self) -> &mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Node.html" title="struct gltf_json::Node">Node</a>></h4></section></summary><div class='docblock'>Converts this type into a mutable reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsMut%3CVec%3CSampler%3E%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#398">Source</a><a href="#impl-AsMut%3CVec%3CSampler%3E%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../texture/struct.Sampler.html" title="struct gltf_json::texture::Sampler">Sampler</a>>> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_mut-10" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#398">Source</a><a href="#method.as_mut-10" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fn">as_mut</a>(&mut self) -> &mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../texture/struct.Sampler.html" title="struct gltf_json::texture::Sampler">Sampler</a>></h4></section></summary><div class='docblock'>Converts this type into a mutable reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsMut%3CVec%3CScene%3E%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#399">Source</a><a href="#impl-AsMut%3CVec%3CScene%3E%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Scene.html" title="struct gltf_json::Scene">Scene</a>>> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_mut-11" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#399">Source</a><a href="#method.as_mut-11" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fn">as_mut</a>(&mut self) -> &mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Scene.html" title="struct gltf_json::Scene">Scene</a>></h4></section></summary><div class='docblock'>Converts this type into a mutable reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsMut%3CVec%3CSkin%3E%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#400">Source</a><a href="#impl-AsMut%3CVec%3CSkin%3E%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Skin.html" title="struct gltf_json::Skin">Skin</a>>> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_mut-12" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#400">Source</a><a href="#method.as_mut-12" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fn">as_mut</a>(&mut self) -> &mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Skin.html" title="struct gltf_json::Skin">Skin</a>></h4></section></summary><div class='docblock'>Converts this type into a mutable reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsMut%3CVec%3CTexture%3E%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#401">Source</a><a href="#impl-AsMut%3CVec%3CTexture%3E%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Texture.html" title="struct gltf_json::Texture">Texture</a>>> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_mut-13" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#401">Source</a><a href="#method.as_mut-13" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fn">as_mut</a>(&mut self) -> &mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.Texture.html" title="struct gltf_json::Texture">Texture</a>></h4></section></summary><div class='docblock'>Converts this type into a mutable reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsMut%3CVec%3CView%3E%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#392">Source</a><a href="#impl-AsMut%3CVec%3CView%3E%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../buffer/struct.View.html" title="struct gltf_json::buffer::View">View</a>>> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_mut-4" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#392">Source</a><a href="#method.as_mut-4" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fn">as_mut</a>(&mut self) -> &mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../buffer/struct.View.html" title="struct gltf_json::buffer::View">View</a>></h4></section></summary><div class='docblock'>Converts this type into a mutable reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BAccessor%5D%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#389">Source</a><a href="#impl-AsRef%3C%5BAccessor%5D%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><[<a class="struct" href="../struct.Accessor.html" title="struct gltf_json::Accessor">Accessor</a>]> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_ref-1" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#389">Source</a><a href="#method.as_ref-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fn">as_ref</a>(&self) -> &[<a class="struct" href="../struct.Accessor.html" title="struct gltf_json::Accessor">Accessor</a>]</h4></section></summary><div class='docblock'>Converts this type into a shared reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BAnimation%5D%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#390">Source</a><a href="#impl-AsRef%3C%5BAnimation%5D%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><[<a class="struct" href="../struct.Animation.html" title="struct gltf_json::Animation">Animation</a>]> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_ref-2" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#390">Source</a><a href="#method.as_ref-2" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fn">as_ref</a>(&self) -> &[<a class="struct" href="../struct.Animation.html" title="struct gltf_json::Animation">Animation</a>]</h4></section></summary><div class='docblock'>Converts this type into a shared reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BBuffer%5D%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#391">Source</a><a href="#impl-AsRef%3C%5BBuffer%5D%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><[<a class="struct" href="../struct.Buffer.html" title="struct gltf_json::Buffer">Buffer</a>]> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_ref-3" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#391">Source</a><a href="#method.as_ref-3" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fn">as_ref</a>(&self) -> &[<a class="struct" href="../struct.Buffer.html" title="struct gltf_json::Buffer">Buffer</a>]</h4></section></summary><div class='docblock'>Converts this type into a shared reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BCamera%5D%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#393">Source</a><a href="#impl-AsRef%3C%5BCamera%5D%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><[<a class="struct" href="../struct.Camera.html" title="struct gltf_json::Camera">Camera</a>]> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_ref-5" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#393">Source</a><a href="#method.as_ref-5" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fn">as_ref</a>(&self) -> &[<a class="struct" href="../struct.Camera.html" title="struct gltf_json::Camera">Camera</a>]</h4></section></summary><div class='docblock'>Converts this type into a shared reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BImage%5D%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#394">Source</a><a href="#impl-AsRef%3C%5BImage%5D%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><[<a class="struct" href="../struct.Image.html" title="struct gltf_json::Image">Image</a>]> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_ref-6" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#394">Source</a><a href="#method.as_ref-6" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fn">as_ref</a>(&self) -> &[<a class="struct" href="../struct.Image.html" title="struct gltf_json::Image">Image</a>]</h4></section></summary><div class='docblock'>Converts this type into a shared reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BLight%5D%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/extensions/root.rs.html#56-64">Source</a><a href="#impl-AsRef%3C%5BLight%5D%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><[<a class="struct" href="../extensions/scene/khr_lights_punctual/struct.Light.html" title="struct gltf_json::extensions::scene::khr_lights_punctual::Light">Light</a>]> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/extensions/root.rs.html#57-63">Source</a><a href="#method.as_ref" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fn">as_ref</a>(&self) -> &[<a class="struct" href="../extensions/scene/khr_lights_punctual/struct.Light.html" title="struct gltf_json::extensions::scene::khr_lights_punctual::Light">Light</a>]</h4></section></summary><div class='docblock'>Converts this type into a shared reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BMaterial%5D%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#395">Source</a><a href="#impl-AsRef%3C%5BMaterial%5D%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><[<a class="struct" href="../struct.Material.html" title="struct gltf_json::Material">Material</a>]> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_ref-7" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#395">Source</a><a href="#method.as_ref-7" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fn">as_ref</a>(&self) -> &[<a class="struct" href="../struct.Material.html" title="struct gltf_json::Material">Material</a>]</h4></section></summary><div class='docblock'>Converts this type into a shared reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BMesh%5D%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#396">Source</a><a href="#impl-AsRef%3C%5BMesh%5D%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><[<a class="struct" href="../struct.Mesh.html" title="struct gltf_json::Mesh">Mesh</a>]> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_ref-8" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#396">Source</a><a href="#method.as_ref-8" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fn">as_ref</a>(&self) -> &[<a class="struct" href="../struct.Mesh.html" title="struct gltf_json::Mesh">Mesh</a>]</h4></section></summary><div class='docblock'>Converts this type into a shared reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BNode%5D%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#397">Source</a><a href="#impl-AsRef%3C%5BNode%5D%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><[<a class="struct" href="../struct.Node.html" title="struct gltf_json::Node">Node</a>]> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_ref-9" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#397">Source</a><a href="#method.as_ref-9" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fn">as_ref</a>(&self) -> &[<a class="struct" href="../struct.Node.html" title="struct gltf_json::Node">Node</a>]</h4></section></summary><div class='docblock'>Converts this type into a shared reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BSampler%5D%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#398">Source</a><a href="#impl-AsRef%3C%5BSampler%5D%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><[<a class="struct" href="../texture/struct.Sampler.html" title="struct gltf_json::texture::Sampler">Sampler</a>]> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_ref-10" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#398">Source</a><a href="#method.as_ref-10" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fn">as_ref</a>(&self) -> &[<a class="struct" href="../texture/struct.Sampler.html" title="struct gltf_json::texture::Sampler">Sampler</a>]</h4></section></summary><div class='docblock'>Converts this type into a shared reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BScene%5D%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#399">Source</a><a href="#impl-AsRef%3C%5BScene%5D%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><[<a class="struct" href="../struct.Scene.html" title="struct gltf_json::Scene">Scene</a>]> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_ref-11" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#399">Source</a><a href="#method.as_ref-11" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fn">as_ref</a>(&self) -> &[<a class="struct" href="../struct.Scene.html" title="struct gltf_json::Scene">Scene</a>]</h4></section></summary><div class='docblock'>Converts this type into a shared reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BSkin%5D%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#400">Source</a><a href="#impl-AsRef%3C%5BSkin%5D%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><[<a class="struct" href="../struct.Skin.html" title="struct gltf_json::Skin">Skin</a>]> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_ref-12" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#400">Source</a><a href="#method.as_ref-12" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fn">as_ref</a>(&self) -> &[<a class="struct" href="../struct.Skin.html" title="struct gltf_json::Skin">Skin</a>]</h4></section></summary><div class='docblock'>Converts this type into a shared reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BTexture%5D%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#401">Source</a><a href="#impl-AsRef%3C%5BTexture%5D%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><[<a class="struct" href="../struct.Texture.html" title="struct gltf_json::Texture">Texture</a>]> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_ref-13" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#401">Source</a><a href="#method.as_ref-13" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fn">as_ref</a>(&self) -> &[<a class="struct" href="../struct.Texture.html" title="struct gltf_json::Texture">Texture</a>]</h4></section></summary><div class='docblock'>Converts this type into a shared reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BView%5D%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#392">Source</a><a href="#impl-AsRef%3C%5BView%5D%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><[<a class="struct" href="../buffer/struct.View.html" title="struct gltf_json::buffer::View">View</a>]> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_ref-4" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#392">Source</a><a href="#method.as_ref-4" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fn">as_ref</a>(&self) -> &[<a class="struct" href="../buffer/struct.View.html" title="struct gltf_json::buffer::View">View</a>]</h4></section></summary><div class='docblock'>Converts this type into a shared reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#59">Source</a><a href="#impl-Clone-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</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/gltf_json/root.rs.html#59">Source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&self) -> <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h4></section></summary><div class='docblock'>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.84.0/src/core/clone.rs.html#174">Source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&mut self, source: &Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#59">Source</a><a href="#impl-Debug-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</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/gltf_json/root.rs.html#59">Source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/1.84.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Default-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#59">Source</a><a href="#impl-Default-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.default" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#59">Source</a><a href="#method.default" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html#tymethod.default" class="fn">default</a>() -> <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h4></section></summary><div class='docblock'>Returns the “default value” for a type. <a href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html#tymethod.default">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Deserialize%3C'de%3E-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#59">Source</a><a href="#impl-Deserialize%3C'de%3E-for-Root" class="anchor">§</a><h3 class="code-header">impl<'de> <a class="trait" href="../../serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.deserialize" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#59">Source</a><a href="#method.deserialize" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde/de/trait.Deserialize.html#tymethod.deserialize" class="fn">deserialize</a><__D>(__deserializer: __D) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, __D::<a class="associatedtype" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>><div class="where">where
|
|
__D: <a class="trait" href="../../serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de>,</div></h4></section></summary><div class='docblock'>Deserialize this value from the given Serde deserializer. <a href="../../serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><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<'a> <a class="trait" href="trait.Get.html" title="trait gltf_json::root::Get">Get</a><<a class="struct" href="../struct.Accessor.html" title="struct gltf_json::Accessor">Accessor</a>> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.get-2" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#389">Source</a><a href="#method.get-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Get.html#tymethod.get" class="fn">get</a>(&self, index: <a class="struct" href="../struct.Index.html" title="struct gltf_json::Index">Index</a><<a class="struct" href="../struct.Accessor.html" title="struct gltf_json::Accessor">Accessor</a>>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../struct.Accessor.html" title="struct gltf_json::Accessor">Accessor</a>></h4></section></summary><div class='docblock'>Retrieves a single value at the given index.</div></details></div></details><details class="toggle implementors-toggle" open><summary><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<'a> <a class="trait" href="trait.Get.html" title="trait gltf_json::root::Get">Get</a><<a class="struct" href="../struct.Animation.html" title="struct gltf_json::Animation">Animation</a>> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.get-3" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#390">Source</a><a href="#method.get-3" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Get.html#tymethod.get" class="fn">get</a>(&self, index: <a class="struct" href="../struct.Index.html" title="struct gltf_json::Index">Index</a><<a class="struct" href="../struct.Animation.html" title="struct gltf_json::Animation">Animation</a>>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../struct.Animation.html" title="struct gltf_json::Animation">Animation</a>></h4></section></summary><div class='docblock'>Retrieves a single value at the given index.</div></details></div></details><details class="toggle implementors-toggle" open><summary><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<'a> <a class="trait" href="trait.Get.html" title="trait gltf_json::root::Get">Get</a><<a class="struct" href="../struct.Buffer.html" title="struct gltf_json::Buffer">Buffer</a>> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.get-4" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#391">Source</a><a href="#method.get-4" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Get.html#tymethod.get" class="fn">get</a>(&self, index: <a class="struct" href="../struct.Index.html" title="struct gltf_json::Index">Index</a><<a class="struct" href="../struct.Buffer.html" title="struct gltf_json::Buffer">Buffer</a>>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../struct.Buffer.html" title="struct gltf_json::Buffer">Buffer</a>></h4></section></summary><div class='docblock'>Retrieves a single value at the given index.</div></details></div></details><details class="toggle implementors-toggle" open><summary><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<'a> <a class="trait" href="trait.Get.html" title="trait gltf_json::root::Get">Get</a><<a class="struct" href="../struct.Camera.html" title="struct gltf_json::Camera">Camera</a>> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.get-6" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#393">Source</a><a href="#method.get-6" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Get.html#tymethod.get" class="fn">get</a>(&self, index: <a class="struct" href="../struct.Index.html" title="struct gltf_json::Index">Index</a><<a class="struct" href="../struct.Camera.html" title="struct gltf_json::Camera">Camera</a>>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../struct.Camera.html" title="struct gltf_json::Camera">Camera</a>></h4></section></summary><div class='docblock'>Retrieves a single value at the given index.</div></details></div></details><details class="toggle implementors-toggle" open><summary><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<'a> <a class="trait" href="trait.Get.html" title="trait gltf_json::root::Get">Get</a><<a class="struct" href="../struct.Image.html" title="struct gltf_json::Image">Image</a>> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.get-7" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#394">Source</a><a href="#method.get-7" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Get.html#tymethod.get" class="fn">get</a>(&self, index: <a class="struct" href="../struct.Index.html" title="struct gltf_json::Index">Index</a><<a class="struct" href="../struct.Image.html" title="struct gltf_json::Image">Image</a>>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../struct.Image.html" title="struct gltf_json::Image">Image</a>></h4></section></summary><div class='docblock'>Retrieves a single value at the given index.</div></details></div></details><details class="toggle implementors-toggle" open><summary><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><<a class="struct" href="../extensions/scene/khr_lights_punctual/struct.Light.html" title="struct gltf_json::extensions::scene::khr_lights_punctual::Light">Light</a>> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.get-1" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/extensions/root.rs.html#39-52">Source</a><a href="#method.get-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Get.html#tymethod.get" class="fn">get</a>(&self, id: <a class="struct" href="../struct.Index.html" title="struct gltf_json::Index">Index</a><<a class="struct" href="../extensions/scene/khr_lights_punctual/struct.Light.html" title="struct gltf_json::extensions::scene::khr_lights_punctual::Light">Light</a>>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../extensions/scene/khr_lights_punctual/struct.Light.html" title="struct gltf_json::extensions::scene::khr_lights_punctual::Light">Light</a>></h4></section></summary><div class='docblock'>Retrieves a single value at the given index.</div></details></div></details><details class="toggle implementors-toggle" open><summary><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<'a> <a class="trait" href="trait.Get.html" title="trait gltf_json::root::Get">Get</a><<a class="struct" href="../struct.Material.html" title="struct gltf_json::Material">Material</a>> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.get-8" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#395">Source</a><a href="#method.get-8" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Get.html#tymethod.get" class="fn">get</a>(&self, index: <a class="struct" href="../struct.Index.html" title="struct gltf_json::Index">Index</a><<a class="struct" href="../struct.Material.html" title="struct gltf_json::Material">Material</a>>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../struct.Material.html" title="struct gltf_json::Material">Material</a>></h4></section></summary><div class='docblock'>Retrieves a single value at the given index.</div></details></div></details><details class="toggle implementors-toggle" open><summary><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<'a> <a class="trait" href="trait.Get.html" title="trait gltf_json::root::Get">Get</a><<a class="struct" href="../struct.Mesh.html" title="struct gltf_json::Mesh">Mesh</a>> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.get-9" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#396">Source</a><a href="#method.get-9" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Get.html#tymethod.get" class="fn">get</a>(&self, index: <a class="struct" href="../struct.Index.html" title="struct gltf_json::Index">Index</a><<a class="struct" href="../struct.Mesh.html" title="struct gltf_json::Mesh">Mesh</a>>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../struct.Mesh.html" title="struct gltf_json::Mesh">Mesh</a>></h4></section></summary><div class='docblock'>Retrieves a single value at the given index.</div></details></div></details><details class="toggle implementors-toggle" open><summary><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<'a> <a class="trait" href="trait.Get.html" title="trait gltf_json::root::Get">Get</a><<a class="struct" href="../struct.Node.html" title="struct gltf_json::Node">Node</a>> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.get-10" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#397">Source</a><a href="#method.get-10" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Get.html#tymethod.get" class="fn">get</a>(&self, index: <a class="struct" href="../struct.Index.html" title="struct gltf_json::Index">Index</a><<a class="struct" href="../struct.Node.html" title="struct gltf_json::Node">Node</a>>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../struct.Node.html" title="struct gltf_json::Node">Node</a>></h4></section></summary><div class='docblock'>Retrieves a single value at the given index.</div></details></div></details><details class="toggle implementors-toggle" open><summary><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<'a> <a class="trait" href="trait.Get.html" title="trait gltf_json::root::Get">Get</a><<a class="struct" href="../texture/struct.Sampler.html" title="struct gltf_json::texture::Sampler">Sampler</a>> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.get-11" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#398">Source</a><a href="#method.get-11" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Get.html#tymethod.get" class="fn">get</a>(&self, index: <a class="struct" href="../struct.Index.html" title="struct gltf_json::Index">Index</a><<a class="struct" href="../texture/struct.Sampler.html" title="struct gltf_json::texture::Sampler">Sampler</a>>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../texture/struct.Sampler.html" title="struct gltf_json::texture::Sampler">Sampler</a>></h4></section></summary><div class='docblock'>Retrieves a single value at the given index.</div></details></div></details><details class="toggle implementors-toggle" open><summary><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<'a> <a class="trait" href="trait.Get.html" title="trait gltf_json::root::Get">Get</a><<a class="struct" href="../struct.Scene.html" title="struct gltf_json::Scene">Scene</a>> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.get-12" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#399">Source</a><a href="#method.get-12" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Get.html#tymethod.get" class="fn">get</a>(&self, index: <a class="struct" href="../struct.Index.html" title="struct gltf_json::Index">Index</a><<a class="struct" href="../struct.Scene.html" title="struct gltf_json::Scene">Scene</a>>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../struct.Scene.html" title="struct gltf_json::Scene">Scene</a>></h4></section></summary><div class='docblock'>Retrieves a single value at the given index.</div></details></div></details><details class="toggle implementors-toggle" open><summary><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<'a> <a class="trait" href="trait.Get.html" title="trait gltf_json::root::Get">Get</a><<a class="struct" href="../struct.Skin.html" title="struct gltf_json::Skin">Skin</a>> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.get-13" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#400">Source</a><a href="#method.get-13" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Get.html#tymethod.get" class="fn">get</a>(&self, index: <a class="struct" href="../struct.Index.html" title="struct gltf_json::Index">Index</a><<a class="struct" href="../struct.Skin.html" title="struct gltf_json::Skin">Skin</a>>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../struct.Skin.html" title="struct gltf_json::Skin">Skin</a>></h4></section></summary><div class='docblock'>Retrieves a single value at the given index.</div></details></div></details><details class="toggle implementors-toggle" open><summary><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<'a> <a class="trait" href="trait.Get.html" title="trait gltf_json::root::Get">Get</a><<a class="struct" href="../struct.Texture.html" title="struct gltf_json::Texture">Texture</a>> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.get-14" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#401">Source</a><a href="#method.get-14" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Get.html#tymethod.get" class="fn">get</a>(&self, index: <a class="struct" href="../struct.Index.html" title="struct gltf_json::Index">Index</a><<a class="struct" href="../struct.Texture.html" title="struct gltf_json::Texture">Texture</a>>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../struct.Texture.html" title="struct gltf_json::Texture">Texture</a>></h4></section></summary><div class='docblock'>Retrieves a single value at the given index.</div></details></div></details><details class="toggle implementors-toggle" open><summary><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<'a> <a class="trait" href="trait.Get.html" title="trait gltf_json::root::Get">Get</a><<a class="struct" href="../buffer/struct.View.html" title="struct gltf_json::buffer::View">View</a>> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.get-5" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#392">Source</a><a href="#method.get-5" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Get.html#tymethod.get" class="fn">get</a>(&self, index: <a class="struct" href="../struct.Index.html" title="struct gltf_json::Index">Index</a><<a class="struct" href="../buffer/struct.View.html" title="struct gltf_json::buffer::View">View</a>>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../buffer/struct.View.html" title="struct gltf_json::buffer::View">View</a>></h4></section></summary><div class='docblock'>Retrieves a single value at the given index.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Serialize-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#59">Source</a><a href="#impl-Serialize-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../../serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.serialize" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#59">Source</a><a href="#method.serialize" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serialize.html#tymethod.serialize" class="fn">serialize</a><__S>(&self, __serializer: __S) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><__S::<a class="associatedtype" href="../../serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, __S::<a class="associatedtype" href="../../serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>><div class="where">where
|
|
__S: <a class="trait" href="../../serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>,</div></h4></section></summary><div class='docblock'>Serialize this value into the given Serde serializer. <a href="../../serde/ser/trait.Serialize.html#tymethod.serialize">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Validate-for-Root" class="impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#59">Source</a><a href="#impl-Validate-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../validation/trait.Validate.html" title="trait gltf_json::validation::Validate">Validate</a> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.validate" class="method trait-impl"><a class="src rightside" href="../../src/gltf_json/root.rs.html#59">Source</a><a href="#method.validate" class="anchor">§</a><h4 class="code-header">fn <a href="../validation/trait.Validate.html#method.validate" class="fn">validate</a><P, R>(&self, _root: &<a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a>, _path: P, _report: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&mut R</a>)<div class="where">where
|
|
P: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>() -> <a class="struct" href="../struct.Path.html" title="struct gltf_json::Path">Path</a>,
|
|
R: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&dyn <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>() -> <a class="struct" href="../struct.Path.html" title="struct gltf_json::Path">Path</a>, <a class="enum" href="../validation/enum.Error.html" title="enum gltf_json::validation::Error">Error</a>),</div></h4></section></summary><div class='docblock'>Validates the invariants required for the library to function safely.</div></details></div></details></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-Root" class="impl"><a href="#impl-Freeze-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section><section id="impl-RefUnwindSafe-for-Root" class="impl"><a href="#impl-RefUnwindSafe-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section><section id="impl-Send-for-Root" class="impl"><a href="#impl-Send-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section><section id="impl-Sync-for-Root" class="impl"><a href="#impl-Sync-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section><section id="impl-Unpin-for-Root" class="impl"><a href="#impl-Unpin-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section><section id="impl-UnwindSafe-for-Root" class="impl"><a href="#impl-UnwindSafe-for-Root" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../struct.Root.html" title="struct gltf_json::Root">Root</a></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
|
|
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#209">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where
|
|
T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#211">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#217">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where
|
|
T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#218">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-CloneToUninit-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/clone.rs.html#273">Source</a><a href="#impl-CloneToUninit-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/clone/trait.CloneToUninit.html" title="trait core::clone::CloneToUninit">CloneToUninit</a> for T<div class="where">where
|
|
T: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone_to_uninit" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/clone.rs.html#275">Source</a><a href="#method.clone_to_uninit" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit" class="fn">clone_to_uninit</a>(&self, dst: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut </a><a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>clone_to_uninit</code>)</span></div></span><div class='docblock'>Performs copy-assignment from <code>self</code> to <code>dst</code>. <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#765">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#768">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
|
|
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<div class="where">where
|
|
U: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#758">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
|
|
<p>That is, this conversion is whatever the implementation of
|
|
<code><a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
|
|
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToOwned-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/alloc/borrow.rs.html#82-84">Source</a><a href="#impl-ToOwned-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T<div class="where">where
|
|
T: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/alloc/borrow.rs.html#86">Source</a><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/alloc/borrow.rs.html#87">Source</a><a href="#method.to_owned" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fn">to_owned</a>(&self) -> T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/1.84.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/alloc/borrow.rs.html#91">Source</a><a href="#method.clone_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fn">clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&mut T</a>)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/1.84.0/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#805-807">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<div class="where">where
|
|
U: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#809">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#812">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#790-792">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<div class="where">where
|
|
U: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#794">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#797">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><section id="impl-DeserializeOwned-for-T" class="impl"><a class="src rightside" href="../../src/serde/de/mod.rs.html#614">Source</a><a href="#impl-DeserializeOwned-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../../serde/de/trait.DeserializeOwned.html" title="trait serde::de::DeserializeOwned">DeserializeOwned</a> for T<div class="where">where
|
|
T: for<'de> <a class="trait" href="../../serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de>,</div></h3></section></div></section></div></main></body></html> |