Files
phy/hexasphere/struct.Subdivided.html
Orion Kindel 0ce894e6b0 doc
2025-03-18 10:30:23 -05:00

156 lines
54 KiB
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A subdivided shape generated from some `BaseShape` and a subdivision level."><title>Subdivided in hexasphere - 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="hexasphere" 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="../hexasphere/index.html">hexasphere</a><span class="version">15.1.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Subdivided</a></h2><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.calculate_values" title="calculate_values">calculate_values</a></li><li><a href="#method.get_all_indices" title="get_all_indices">get_all_indices</a></li><li><a href="#method.get_all_line_indices" title="get_all_line_indices">get_all_line_indices</a></li><li><a href="#method.get_indices" title="get_indices">get_indices</a></li><li><a href="#method.get_line_indices" title="get_line_indices">get_line_indices</a></li><li><a href="#method.get_major_edge_line_indices" title="get_major_edge_line_indices">get_major_edge_line_indices</a></li><li><a href="#method.get_major_edges_line_indices" title="get_major_edges_line_indices">get_major_edges_line_indices</a></li><li><a href="#method.indices_per_main_triangle" title="indices_per_main_triangle">indices_per_main_triangle</a></li><li><a href="#method.linear_distance" title="linear_distance">linear_distance</a></li><li><a href="#method.new" title="new">new</a></li><li><a href="#method.new_custom_shape" title="new_custom_shape">new_custom_shape</a></li><li><a href="#method.radius_shapes" title="radius_shapes">radius_shapes</a></li><li><a href="#method.raw_data" title="raw_data">raw_data</a></li><li><a href="#method.raw_data_mut" title="raw_data_mut">raw_data_mut</a></li><li><a href="#method.raw_points" title="raw_points">raw_points</a></li><li><a href="#method.shared_vertices" title="shared_vertices">shared_vertices</a></li><li><a href="#method.subdivide" title="subdivide">subdivide</a></li><li><a href="#method.subdivisions" title="subdivisions">subdivisions</a></li><li><a href="#method.vertices_per_main_triangle_shared" title="vertices_per_main_triangle_shared">vertices_per_main_triangle_shared</a></li><li><a href="#method.vertices_per_main_triangle_unique" title="vertices_per_main_triangle_unique">vertices_per_main_triangle_unique</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Clone-for-Subdivided%3CT,+S%3E" title="Clone">Clone</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-Subdivided%3CT,+S%3E" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-Subdivided%3CT,+S%3E" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Subdivided%3CT,+S%3E" title="Send">Send</a></li><li><a href="#impl-Sync-for-Subdivided%3CT,+S%3E" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-Subdivided%3CT,+S%3E" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Subdivided%3CT,+S%3E" title="UnwindSafe">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a href="#impl-CloneToUninit-for-T" title="CloneToUninit">CloneToUninit</a></li><li><a href="#impl-From%3CT%3E-for-T" title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a href="#impl-ToOwned-for-T" title="ToOwned">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li><li><a href="#impl-VZip%3CV%3E-for-T" title="VZip&#60;V&#62;">VZip&#60;V&#62;</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate hexasphere</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">hexasphere</a></span><h1>Struct <span class="struct">Subdivided</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/hexasphere/lib.rs.html#1055-1062">Source</a> </span></div><pre class="rust item-decl"><code>pub struct Subdivided&lt;T, S: <a class="trait" href="trait.BaseShape.html" title="trait hexasphere::BaseShape">BaseShape</a>&gt; { <span class="comment">/* private fields */</span> }</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A subdivided shape generated from some <a href="trait.BaseShape.html" title="trait hexasphere::BaseShape"><code>BaseShape</code></a> and a subdivision level.</p>
<p>The subdivided shape is defined, as is conventional in most 3D graphics systems,
as a list of vertices, and a list of indices into the vertex list which connect
the vertices into primitive shapes. <a href="struct.Subdivided.html" title="struct hexasphere::Subdivided"><code>Subdivided</code></a> can provide triangle-list indices
indices for solid surface rendering, and line-strip indices for wireframe rendering.</p>
<p>All main triangles specified by <code>S</code> in <a href="trait.BaseShape.html" title="trait hexasphere::BaseShape"><code>BaseShape</code></a>
are expected to be in counter clockwise winding.</p>
<p>Points are preferably stored with coordinates less
than or equal to <code>1.0</code>. This is why all default shapes
lie on the unit sphere.</p>
</div></details><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-Subdivided%3CT,+IcoSphereBase%3E" class="impl"><a class="src rightside" href="../src/hexasphere/shapes.rs.html#72-85">Source</a><a href="#impl-Subdivided%3CT,+IcoSphereBase%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="struct" href="struct.Subdivided.html" title="struct hexasphere::Subdivided">Subdivided</a>&lt;T, <a class="struct" href="shapes/struct.IcoSphereBase.html" title="struct hexasphere::shapes::IcoSphereBase">IcoSphereBase</a>&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.radius_shapes" class="method"><a class="src rightside" href="../src/hexasphere/shapes.rs.html#79-84">Source</a><h4 class="code-header">pub fn <a href="#method.radius_shapes" class="fn">radius_shapes</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a></h4></section></summary><div class="docblock"><p>Calculate distance from the center of a shape (pentagon or hexagon)
to one of the vertices of the shape.</p>
<p>In other words, the radius of the circumscribed circle.</p>
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Subdivided%3CT,+S%3E" class="impl"><a class="src rightside" href="../src/hexasphere/lib.rs.html#1064-1439">Source</a><a href="#impl-Subdivided%3CT,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T, S: <a class="trait" href="trait.BaseShape.html" title="trait hexasphere::BaseShape">BaseShape</a>&gt; <a class="struct" href="struct.Subdivided.html" title="struct hexasphere::Subdivided">Subdivided</a>&lt;T, S&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.new" class="method"><a class="src rightside" href="../src/hexasphere/lib.rs.html#1070-1075">Source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>(subdivisions: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>, generator: impl <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>(<a class="struct" href="../glam/f32/sse2/vec3a/struct.Vec3A.html" title="struct glam::f32::sse2::vec3a::Vec3A">Vec3A</a>) -&gt; T) -&gt; Self<div class="where">where
S: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a>,</div></h4></section></summary><div class="docblock"><p>Creates the base shape from <code>S</code> and subdivides it.</p>
<p>This is equivalent to
<code>Subdivided::new_custom_shape(subdivisions, generator, S::default())</code>
and is convenient when <code>S</code> implements <a href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html" title="trait core::default::Default"><code>Default</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.new_custom_shape" class="method"><a class="src rightside" href="../src/hexasphere/lib.rs.html#1088-1130">Source</a><h4 class="code-header">pub fn <a href="#method.new_custom_shape" class="fn">new_custom_shape</a>(
subdivisions: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>,
generator: impl <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>(<a class="struct" href="../glam/f32/sse2/vec3a/struct.Vec3A.html" title="struct glam::f32::sse2::vec3a::Vec3A">Vec3A</a>) -&gt; T,
shape: S,
) -&gt; Self</h4></section></summary><div class="docblock"><p>Creates the base shape from <code>S</code> and subdivides it.</p>
<ul>
<li>
<p><code>subdivisions</code> specifies the number of auxiliary points that will be created
along the edges the vertices of the base shape. For example, if <code>subdivisions</code>
is 0, then the base shape is unaltered; if <code>subdivisions</code> is 3, then each edge
of the base shape will have 3 added points, forming 4 triangle edges.</p>
</li>
<li>
<p><code>generator</code> is a function run for each vertex once all the subdivisions are
applied, and its values are stored in an internal <code>Vec</code>,
accessible from <a href="struct.Subdivided.html#method.raw_data" title="method hexasphere::Subdivided::raw_data"><code>Self::raw_data()</code></a>.</p>
</li>
</ul>
</div></details><details class="toggle method-toggle" open><summary><section id="method.subdivide" class="method"><a class="src rightside" href="../src/hexasphere/lib.rs.html#1138-1157">Source</a><h4 class="code-header">pub fn <a href="#method.subdivide" class="fn">subdivide</a>(&amp;mut self, amount: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>)</h4></section></summary><div class="docblock"><p>Increases the current subdivision count by <code>amount</code>.</p>
<p>After calling this, you must call <a href="struct.Subdivided.html#method.calculate_values" title="method hexasphere::Subdivided::calculate_values"><code>Self::calculate_values()</code></a>
to compute new vertex data.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.calculate_values" class="method"><a class="src rightside" href="../src/hexasphere/lib.rs.html#1162-1168">Source</a><h4 class="code-header">pub fn <a href="#method.calculate_values" class="fn">calculate_values</a>(&amp;mut self, generator: impl <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>(<a class="struct" href="../glam/f32/sse2/vec3a/struct.Vec3A.html" title="struct glam::f32::sse2::vec3a::Vec3A">Vec3A</a>) -&gt; T)</h4></section></summary><div class="docblock"><p>Recalculate data after <a href="struct.Subdivided.html#method.subdivide" title="method hexasphere::Subdivided::subdivide"><code>Self::subdivide()</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.raw_points" class="method"><a class="src rightside" href="../src/hexasphere/lib.rs.html#1173-1175">Source</a><h4 class="code-header">pub fn <a href="#method.raw_points" class="fn">raw_points</a>(&amp;self) -&gt; &amp;[<a class="struct" href="../glam/f32/sse2/vec3a/struct.Vec3A.html" title="struct glam::f32::sse2::vec3a::Vec3A">Vec3A</a>]</h4></section></summary><div class="docblock"><p>The vertex positions created by the subdivision process.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_indices" class="method"><a class="src rightside" href="../src/hexasphere/lib.rs.html#1194-1196">Source</a><h4 class="code-header">pub fn <a href="#method.get_indices" class="fn">get_indices</a>(&amp;self, triangle: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>, buffer: &amp;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>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>&gt;)</h4></section></summary><div class="docblock"><p>Appends the indices for the subdivided form of the specified
main triangle into <code>buffer</code>.</p>
<p>The specified <code>triangle</code> is a main triangle on the base
shape. The range of this should be limited to the number
of triangles in the base shape.</p>
<p>Alternatively, use <a href="struct.Subdivided.html#method.get_all_indices" title="method hexasphere::Subdivided::get_all_indices"><code>Self::get_all_indices</code></a> to get all the
indices.</p>
<p>Each element put into <code>buffer</code> is an index into <a href="struct.Subdivided.html#method.raw_data" title="method hexasphere::Subdivided::raw_data"><code>Self::raw_data</code></a>
or <a href="struct.Subdivided.html#method.raw_points" title="method hexasphere::Subdivided::raw_points"><code>Self::raw_points</code></a> specifying the position of a triangle vertex.
The first three elements specify the three vertices of a triangle
to be drawn, and the next three elements specify another triangle,
and so on.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_all_indices" class="method"><a class="src rightside" href="../src/hexasphere/lib.rs.html#1209-1217">Source</a><h4 class="code-header">pub fn <a href="#method.get_all_indices" class="fn">get_all_indices</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>&gt;</h4></section></summary><div class="docblock"><p>Gets the indices for the triangles making up the subdivided shape.</p>
<p>Each element of the returned <a href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec"><code>Vec</code></a> is an index into <a href="struct.Subdivided.html#method.raw_data" title="method hexasphere::Subdivided::raw_data"><code>Self::raw_data</code></a>
or <a href="struct.Subdivided.html#method.raw_points" title="method hexasphere::Subdivided::raw_points"><code>Self::raw_points</code></a> specifying the position of a triangle vertex.
The first three elements specify the three vertices of a triangle
to be drawn, and the next three elements specify another triangle,
and so on.</p>
<p>Together, these triangles cover the entire surface of the shape.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_line_indices" class="method"><a class="src rightside" href="../src/hexasphere/lib.rs.html#1227-1235">Source</a><h4 class="code-header">pub fn <a href="#method.get_line_indices" class="fn">get_line_indices</a>(
&amp;self,
buffer: &amp;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>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>&gt;,
triangle: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>,
delta: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>,
breaks: impl <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>(&amp;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>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>&gt;),
)</h4></section></summary><div class="docblock"><p>Appends indices for the wireframe of the subdivided form of
the specified main triangle to <code>buffer</code>.</p>
<p>This is equivalent to <a href="struct.Subdivided.html#method.get_all_line_indices" title="method hexasphere::Subdivided::get_all_line_indices"><code>Self::get_all_line_indices</code></a> except that it
selects a single main triangle from the base shape. See its documentation
for the format of the result, and how to use <code>delta</code> and <code>breaks</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_major_edge_line_indices" class="method"><a class="src rightside" href="../src/hexasphere/lib.rs.html#1245-1252">Source</a><h4 class="code-header">pub fn <a href="#method.get_major_edge_line_indices" class="fn">get_major_edge_line_indices</a>(
&amp;self,
edge: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>,
buffer: &amp;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>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>&gt;,
delta: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>,
)</h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated: Flawed. Use <code>get_major_edges_line_indices()</code> instead.</span></div></span></summary><div class="docblock"><p>Appends indices for the wireframe of the subdivided form of
the specified main triangle edge to <code>buffer</code>.</p>
<p>The valid range of <code>edge</code> is <code>0..(S::EDGES)</code>.
See <a href="struct.Subdivided.html#method.get_line_indices" title="method hexasphere::Subdivided::get_line_indices"><code>Self::get_line_indices</code></a> for more on <code>delta</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_major_edges_line_indices" class="method"><a class="src rightside" href="../src/hexasphere/lib.rs.html#1262-1300">Source</a><h4 class="code-header">pub fn <a href="#method.get_major_edges_line_indices" class="fn">get_major_edges_line_indices</a>(
&amp;self,
buffer: &amp;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>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>&gt;,
delta: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>,
breaks: impl <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>(&amp;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>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>&gt;),
)</h4></section></summary><div class="docblock"><p>Appends indices for the wireframe of the subdivided form of
the base shapes main triangles edges to <code>buffer</code>.</p>
<p>Compared to <a href="struct.Subdivided.html#method.get_all_line_indices" title="method hexasphere::Subdivided::get_all_line_indices"><code>Self::get_all_line_indices</code></a>, this does not return edges of any of the
triangles which were created by subdivision — only edges of the original triangles.
See that methods documentation for how to use <code>delta</code> and <code>breaks</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_all_line_indices" class="method"><a class="src rightside" href="../src/hexasphere/lib.rs.html#1322-1339">Source</a><h4 class="code-header">pub fn <a href="#method.get_all_line_indices" class="fn">get_all_line_indices</a>(
&amp;self,
delta: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>,
breaks: impl <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>(&amp;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>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>&gt;),
) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>&gt;</h4></section></summary><div class="docblock"><p>Returns a vector of indices for the wireframe of the subdivided mesh.</p>
<p>Each element in the returned <a href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec"><code>Vec</code></a> is an index into <a href="struct.Subdivided.html#method.raw_data" title="method hexasphere::Subdivided::raw_data"><code>Self::raw_data</code></a>
or <a href="struct.Subdivided.html#method.raw_points" title="method hexasphere::Subdivided::raw_points"><code>Self::raw_points</code></a> specifying the position of a triangle vertex.
The indices are formatted as “line strips”; that is, each vertex
should be connected to the previous by a line, except where a break is
specified.</p>
<p>The <code>breaks</code> function is run every time there is a necessary break in
the line strip. Use this to, for example, swap out the buffer using
<a href="https://doc.rust-lang.org/1.84.0/core/mem/fn.take.html" title="fn core::mem::take"><code>std::mem::take</code></a>, or push a special break-marking index into the buffer.</p>
<p><code>delta</code> is added to all of the indices pushed into the buffer, and
is generally intended to be used together with <code>breaks</code> to allow a
marker index at zero.
This marker index might be used to refer to a vertex with position
set to NaN, or parsed in some other way by the graphics API the indices
are fed to.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.subdivisions" class="method"><a class="src rightside" href="../src/hexasphere/lib.rs.html#1345-1347">Source</a><h4 class="code-header">pub fn <a href="#method.subdivisions" class="fn">subdivisions</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Returns the number of subdivisions applied when this shape
was created.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.raw_data" class="method"><a class="src rightside" href="../src/hexasphere/lib.rs.html#1354-1356">Source</a><h4 class="code-header">pub fn <a href="#method.raw_data" class="fn">raw_data</a>(&amp;self) -&gt; &amp;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.slice.html">[T]</a></h4></section></summary><div class="docblock"><p>Returns the custom data for each vertex created by the generator function.</p>
<p>The length of this slice is equal to the number of vertices in the subdivided shape.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.raw_data_mut" class="method"><a class="src rightside" href="../src/hexasphere/lib.rs.html#1363-1365">Source</a><h4 class="code-header">pub fn <a href="#method.raw_data_mut" class="fn">raw_data_mut</a>(&amp;mut self) -&gt; &amp;mut <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.slice.html">[T]</a></h4></section></summary><div class="docblock"><p>Returns mutable access to the custom data created by the generator function.</p>
<p>The length of this slice is equal to the number of vertices in the subdivided shape.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.indices_per_main_triangle" class="method"><a class="src rightside" href="../src/hexasphere/lib.rs.html#1377-1379">Source</a><h4 class="code-header">pub fn <a href="#method.indices_per_main_triangle" class="fn">indices_per_main_triangle</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Calculate the number of indices which each main
triangle will add to the vertex buffer.</p>
<h5 id="equation"><a class="doc-anchor" href="#equation">§</a>Equation</h5><div class="example-wrap"><pre class="language-text"><code>(subdivisions + 1)²</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.vertices_per_main_triangle_shared" class="method"><a class="src rightside" href="../src/hexasphere/lib.rs.html#1392-1394">Source</a><h4 class="code-header">pub fn <a href="#method.vertices_per_main_triangle_shared" class="fn">vertices_per_main_triangle_shared</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Calculate the number of vertices contained within
each main triangle including the vertices which are
shared with another main triangle.</p>
<h5 id="equation-1"><a class="doc-anchor" href="#equation-1">§</a>Equation</h5><div class="example-wrap"><pre class="language-text"><code>(subdivisions + 1) * (subdivisions + 2) / 2</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.vertices_per_main_triangle_unique" class="method"><a class="src rightside" href="../src/hexasphere/lib.rs.html#1411-1416">Source</a><h4 class="code-header">pub fn <a href="#method.vertices_per_main_triangle_unique" class="fn">vertices_per_main_triangle_unique</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Calculate the number of vertices contained within each
main triangle excluding the ones that are shared with
other main triangles.</p>
<h5 id="equation-2"><a class="doc-anchor" href="#equation-2">§</a>Equation</h5><div class="example-wrap"><pre class="language-text"><code>{
{ subdivisions &lt; 2 : 0
{
{ subdivisions &gt;= 2 : (subdivisions - 1) * subdivisions / 2
{</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.shared_vertices" class="method"><a class="src rightside" href="../src/hexasphere/lib.rs.html#1429-1431">Source</a><h4 class="code-header">pub fn <a href="#method.shared_vertices" class="fn">shared_vertices</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Calculate the number of vertices along the edges
of the main triangles and the vertices of the main
triangles.</p>
<h5 id="equation-3"><a class="doc-anchor" href="#equation-3">§</a>Equation</h5><div class="example-wrap"><pre class="language-text"><code>subdivisions * EDGES + INITIAL_POINTS</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.linear_distance" class="method"><a class="src rightside" href="../src/hexasphere/lib.rs.html#1436-1438">Source</a><h4 class="code-header">pub fn <a href="#method.linear_distance" class="fn">linear_distance</a>(&amp;self, p1: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>, p2: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>, radius: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a></h4></section></summary><div class="docblock"><p>Linear distance between two points on this shape.</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-Clone-for-Subdivided%3CT,+S%3E" class="impl"><a class="src rightside" href="../src/hexasphere/lib.rs.html#1054">Source</a><a href="#impl-Clone-for-Subdivided%3CT,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;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>, S: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="trait.BaseShape.html" title="trait hexasphere::BaseShape">BaseShape</a>&gt; <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.Subdivided.html" title="struct hexasphere::Subdivided">Subdivided</a>&lt;T, S&gt;</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/hexasphere/lib.rs.html#1054">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>(&amp;self) -&gt; <a class="struct" href="struct.Subdivided.html" title="struct hexasphere::Subdivided">Subdivided</a>&lt;T, S&gt;</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>(&amp;mut self, source: &amp;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></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-Subdivided%3CT,+S%3E" class="impl"><a href="#impl-Freeze-for-Subdivided%3CT,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T, S&gt; <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.Subdivided.html" title="struct hexasphere::Subdivided">Subdivided</a>&lt;T, S&gt;<div class="where">where
S: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,</div></h3></section><section id="impl-RefUnwindSafe-for-Subdivided%3CT,+S%3E" class="impl"><a href="#impl-RefUnwindSafe-for-Subdivided%3CT,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T, S&gt; <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.Subdivided.html" title="struct hexasphere::Subdivided">Subdivided</a>&lt;T, S&gt;<div class="where">where
S: <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>,
T: <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>,</div></h3></section><section id="impl-Send-for-Subdivided%3CT,+S%3E" class="impl"><a href="#impl-Send-for-Subdivided%3CT,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T, S&gt; <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.Subdivided.html" title="struct hexasphere::Subdivided">Subdivided</a>&lt;T, S&gt;<div class="where">where
S: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,
T: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3></section><section id="impl-Sync-for-Subdivided%3CT,+S%3E" class="impl"><a href="#impl-Sync-for-Subdivided%3CT,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T, S&gt; <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.Subdivided.html" title="struct hexasphere::Subdivided">Subdivided</a>&lt;T, S&gt;<div class="where">where
S: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
T: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3></section><section id="impl-Unpin-for-Subdivided%3CT,+S%3E" class="impl"><a href="#impl-Unpin-for-Subdivided%3CT,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T, S&gt; <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.Subdivided.html" title="struct hexasphere::Subdivided">Subdivided</a>&lt;T, S&gt;<div class="where">where
S: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,
T: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></h3></section><section id="impl-UnwindSafe-for-Subdivided%3CT,+S%3E" class="impl"><a href="#impl-UnwindSafe-for-Subdivided%3CT,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T, S&gt; <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.Subdivided.html" title="struct hexasphere::Subdivided">Subdivided</a>&lt;T, S&gt;<div class="where">where
S: <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>,
T: <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>,</div></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&lt;T&gt; <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>(&amp;self) -&gt; <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&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; 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>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;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&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; 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>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;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&lt;T&gt; <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>(&amp;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&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a 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) -&gt; T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a 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&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; 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>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a 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) -&gt; U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
<p>That is, this conversion is whatever the implementation of
<code><a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; 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&lt;T&gt; <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>(&amp;self) -&gt; 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>(&amp;self, target: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;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&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; 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>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a 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) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;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>&lt;U&gt;&gt;::<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>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a 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&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; 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>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a 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> = &lt;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>&lt;T&gt;&gt;::<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) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;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>&lt;T&gt;&gt;::<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>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-VZip%3CV%3E-for-T" class="impl"><a class="src rightside" href="../src/ppv_lite86/types.rs.html#221-223">Source</a><a href="#impl-VZip%3CV%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;V, T&gt; <a class="trait" href="../ppv_lite86/types/trait.VZip.html" title="trait ppv_lite86::types::VZip">VZip</a>&lt;V&gt; for T<div class="where">where
V: <a class="trait" href="../ppv_lite86/types/trait.MultiLane.html" title="trait ppv_lite86::types::MultiLane">MultiLane</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><section id="method.vzip" class="method trait-impl"><a class="src rightside" href="../src/ppv_lite86/types.rs.html#226">Source</a><a href="#method.vzip" class="anchor">§</a><h4 class="code-header">fn <a href="../ppv_lite86/types/trait.VZip.html#tymethod.vzip" class="fn">vzip</a>(self) -&gt; V</h4></section></div></details></div></section></div></main></body></html>