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

266 lines
120 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

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 rigid body."><title>RigidBody in rapier3d::dynamics - 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="rapier3d" 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="../../rapier3d/index.html">rapier3d</a><span class="version">0.23.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Rigid<wbr>Body</a></h2><h3><a href="#fields">Fields</a></h3><ul class="block structfield"><li><a href="#structfield.user_data" title="user_data">user_data</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.activation" title="activation">activation</a></li><li><a href="#method.activation_mut" title="activation_mut">activation_mut</a></li><li><a href="#method.add_force" title="add_force">add_force</a></li><li><a href="#method.add_force_at_point" title="add_force_at_point">add_force_at_point</a></li><li><a href="#method.add_torque" title="add_torque">add_torque</a></li><li><a href="#method.additional_solver_iterations" title="additional_solver_iterations">additional_solver_iterations</a></li><li><a href="#method.angular_damping" title="angular_damping">angular_damping</a></li><li><a href="#method.angvel" title="angvel">angvel</a></li><li><a href="#method.apply_impulse" title="apply_impulse">apply_impulse</a></li><li><a href="#method.apply_impulse_at_point" title="apply_impulse_at_point">apply_impulse_at_point</a></li><li><a href="#method.apply_torque_impulse" title="apply_torque_impulse">apply_torque_impulse</a></li><li><a href="#method.body_type" title="body_type">body_type</a></li><li><a href="#method.center_of_mass" title="center_of_mass">center_of_mass</a></li><li><a href="#method.colliders" title="colliders">colliders</a></li><li><a href="#method.copy_from" title="copy_from">copy_from</a></li><li><a href="#method.dominance_group" title="dominance_group">dominance_group</a></li><li><a href="#method.effective_dominance_group" title="effective_dominance_group">effective_dominance_group</a></li><li><a href="#method.enable_ccd" title="enable_ccd">enable_ccd</a></li><li><a href="#method.gravitational_potential_energy" title="gravitational_potential_energy">gravitational_potential_energy</a></li><li><a href="#method.gravity_scale" title="gravity_scale">gravity_scale</a></li><li><a href="#method.is_ccd_active" title="is_ccd_active">is_ccd_active</a></li><li><a href="#method.is_ccd_enabled" title="is_ccd_enabled">is_ccd_enabled</a></li><li><a href="#method.is_dynamic" title="is_dynamic">is_dynamic</a></li><li><a href="#method.is_enabled" title="is_enabled">is_enabled</a></li><li><a href="#method.is_fixed" title="is_fixed">is_fixed</a></li><li><a href="#method.is_kinematic" title="is_kinematic">is_kinematic</a></li><li><a href="#method.is_moving" title="is_moving">is_moving</a></li><li><a href="#method.is_rotation_locked" title="is_rotation_locked">is_rotation_locked</a></li><li><a href="#method.is_sleeping" title="is_sleeping">is_sleeping</a></li><li><a href="#method.is_translation_locked" title="is_translation_locked">is_translation_locked</a></li><li><a href="#method.kinetic_energy" title="kinetic_energy">kinetic_energy</a></li><li><a href="#method.linear_damping" title="linear_damping">linear_damping</a></li><li><a href="#method.linvel" title="linvel">linvel</a></li><li><a href="#method.lock_rotations" title="lock_rotations">lock_rotations</a></li><li><a href="#method.lock_translations" title="lock_translations">lock_translations</a></li><li><a href="#method.locked_axes" title="locked_axes">locked_axes</a></li><li><a href="#method.mass" title="mass">mass</a></li><li><a href="#method.mass_properties" title="mass_properties">mass_properties</a></li><li><a href="#method.next_position" title="next_position">next_position</a></li><li><a href="#method.position" title="position">position</a></li><li><a href="#method.predict_position_using_velocity" title="predict_position_using_velocity">predict_position_using_velocity</a></li><li><a href="#method.predict_position_using_velocity_and_forces" title="predict_position_using_velocity_and_forces">predict_position_using_velocity_and_forces</a></li><li><a href="#method.recompute_mass_properties_from_colliders" title="recompute_mass_properties_from_colliders">recompute_mass_properties_from_colliders</a></li><li><a href="#method.reset_forces" title="reset_forces">reset_forces</a></li><li><a href="#method.reset_torques" title="reset_torques">reset_torques</a></li><li><a href="#method.restrict_rotations" title="restrict_rotations">restrict_rotations</a></li><li><a href="#method.restrict_translations" title="restrict_translations">restrict_translations</a></li><li><a href="#method.rotation" title="rotation">rotation</a></li><li><a href="#method.set_additional_mass" title="set_additional_mass">set_additional_mass</a></li><li><a href="#method.set_additional_mass_properties" title="set_additional_mass_properties">set_additional_mass_properties</a></li><li><a href="#method.set_additional_solver_iterations" title="set_additional_solver_iterations">set_additional_solver_iterations</a></li><li><a href="#method.set_angular_damping" title="set_angular_damping">set_angular_damping</a></li><li><a href="#method.set_angvel" title="set_angvel">set_angvel</a></li><li><a href="#method.set_body_type" title="set_body_type">set_body_type</a></li><li><a href="#method.set_dominance_group" title="set_dominance_group">set_dominance_group</a></li><li><a href="#method.set_enabled" title="set_enabled">set_enabled</a></li><li><a href="#method.set_enabled_rotations" title="set_enabled_rotations">set_enabled_rotations</a></li><li><a href="#method.set_enabled_translations" title="set_enabled_translations">set_enabled_translations</a></li><li><a href="#method.set_gravity_scale" title="set_gravity_scale">set_gravity_scale</a></li><li><a href="#method.set_linear_damping" title="set_linear_damping">set_linear_damping</a></li><li><a href="#method.set_linvel" title="set_linvel">set_linvel</a></li><li><a href="#method.set_locked_axes" title="set_locked_axes">set_locked_axes</a></li><li><a href="#method.set_next_kinematic_position" title="set_next_kinematic_position">set_next_kinematic_position</a></li><li><a href="#method.set_next_kinematic_rotation" title="set_next_kinematic_rotation">set_next_kinematic_rotation</a></li><li><a href="#method.set_next_kinematic_translation" title="set_next_kinematic_translation">set_next_kinematic_translation</a></li><li><a href="#method.set_position" title="set_position">set_position</a></li><li><a href="#method.set_rotation" title="set_rotation">set_rotation</a></li><li><a href="#method.set_soft_ccd_prediction" title="set_soft_ccd_prediction">set_soft_ccd_prediction</a></li><li><a href="#method.set_translation" title="set_translation">set_translation</a></li><li><a href="#method.sleep" title="sleep">sleep</a></li><li><a href="#method.soft_ccd_prediction" title="soft_ccd_prediction">soft_ccd_prediction</a></li><li><a href="#method.translation" title="translation">translation</a></li><li><a href="#method.user_force" title="user_force">user_force</a></li><li><a href="#method.user_torque" title="user_torque">user_torque</a></li><li><a href="#method.velocity_at_point" title="velocity_at_point">velocity_at_point</a></li><li><a href="#method.wake_up" title="wake_up">wake_up</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Clone-for-RigidBody" title="Clone">Clone</a></li><li><a href="#impl-Debug-for-RigidBody" title="Debug">Debug</a></li><li><a href="#impl-Default-for-RigidBody" title="Default">Default</a></li><li><a href="#impl-Deserialize%3C'de%3E-for-RigidBody" title="Deserialize&#60;&#39;de&#62;">Deserialize&#60;&#39;de&#62;</a></li><li><a href="#impl-From%3CRigidBodyBuilder%3E-for-RigidBody" title="From&#60;RigidBodyBuilder&#62;">From&#60;RigidBodyBuilder&#62;</a></li><li><a href="#impl-Serialize-for-RigidBody" title="Serialize">Serialize</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-RigidBody" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-RigidBody" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-RigidBody" title="Send">Send</a></li><li><a href="#impl-Sync-for-RigidBody" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-RigidBody" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-RigidBody" 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-DeserializeOwned-for-T" title="DeserializeOwned">DeserializeOwned</a></li><li><a href="#impl-Downcast-for-T" title="Downcast">Downcast</a></li><li><a href="#impl-DowncastSync-for-T" title="DowncastSync">DowncastSync</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-IntoEither-for-T" title="IntoEither">IntoEither</a></li><li><a href="#impl-Pointable-for-T" title="Pointable">Pointable</a></li><li><a href="#impl-Same-for-T" title="Same">Same</a></li><li><a href="#impl-SupersetOf%3CSS%3E-for-SP" title="SupersetOf&#60;SS&#62;">SupersetOf&#60;SS&#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></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In rapier3d::<wbr>dynamics</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">rapier3d</a>::<wbr><a href="index.html">dynamics</a></span><h1>Struct <span class="struct">RigidBody</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/rapier3d/dynamics/rigid_body.rs.html#21-45">Source</a> </span></div><pre class="rust item-decl"><code>pub struct RigidBody {
pub user_data: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u128.html">u128</a>,
<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 rigid body.</p>
<p>To create a new rigid-body, use the <a href="struct.RigidBodyBuilder.html" title="struct rapier3d::dynamics::RigidBodyBuilder"><code>RigidBodyBuilder</code></a> structure.</p>
</div></details><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.user_data" class="structfield section-header"><a href="#structfield.user_data" class="anchor field">§</a><code>user_data: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u128.html">u128</a></code></span><div class="docblock"><p>User-defined data associated to this rigid-body.</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-RigidBody" class="impl"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#53-932">Source</a><a href="#impl-RigidBody" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.RigidBody.html" title="struct rapier3d::dynamics::RigidBody">RigidBody</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.copy_from" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#96-133">Source</a><h4 class="code-header">pub fn <a href="#method.copy_from" class="fn">copy_from</a>(&amp;mut self, other: &amp;<a class="struct" href="struct.RigidBody.html" title="struct rapier3d::dynamics::RigidBody">RigidBody</a>)</h4></section></summary><div class="docblock"><p>Copy all the characteristics from <code>other</code> to <code>self</code>.</p>
<p>If you have a mutable reference to a rigid-body <code>rigid_body: &amp;mut RigidBody</code>, attempting to
assign it a whole new rigid-body instance, e.g., <code>*rigid_body = RigidBodyBuilder::dynamic().build()</code>,
will crash due to some internal indices being overwritten. Instead, use
<code>rigid_body.copy_from(&amp;RigidBodyBuilder::dynamic().build())</code>.</p>
<p>This method will allow you to set most characteristics of this rigid-body from another
rigid-body instance without causing any breakage.</p>
<p>This method <strong>cannot</strong> be used for editing the list of colliders attached to this rigid-body.
Therefore, the list of colliders attached to <code>self</code> wont be replaced by the one attached
to <code>other</code>.</p>
<p>The pose of <code>other</code> will only copied into <code>self</code> if <code>self</code> doesnt have a parent (if it has
a parent, its position is directly controlled by the parent rigid-body).</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.additional_solver_iterations" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#139-141">Source</a><h4 class="code-header">pub fn <a href="#method.additional_solver_iterations" class="fn">additional_solver_iterations</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>Set the additional number of solver iterations run for this rigid-body and
everything interacting with it.</p>
<p>See <a href="struct.RigidBody.html#method.set_additional_solver_iterations" title="method rapier3d::dynamics::RigidBody::set_additional_solver_iterations"><code>Self::set_additional_solver_iterations</code></a> for additional information.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_additional_solver_iterations" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#152-154">Source</a><h4 class="code-header">pub fn <a href="#method.set_additional_solver_iterations" class="fn">set_additional_solver_iterations</a>(&amp;mut self, additional_iterations: <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>Set the additional number of solver iterations run for this rigid-body and
everything interacting with it.</p>
<p>Increasing this number will help improve simulation accuracy on this rigid-body
and every rigid-body interacting directly or indirectly with it (through joints
or contacts). This implies a performance hit.</p>
<p>The default value is 0, meaning exactly <a href="struct.IntegrationParameters.html#structfield.num_solver_iterations" title="field rapier3d::dynamics::IntegrationParameters::num_solver_iterations"><code>IntegrationParameters::num_solver_iterations</code></a> will
be used as number of solver iterations for this body.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.activation" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#157-159">Source</a><h4 class="code-header">pub fn <a href="#method.activation" class="fn">activation</a>(&amp;self) -&gt; &amp;<a class="struct" href="struct.RigidBodyActivation.html" title="struct rapier3d::dynamics::RigidBodyActivation">RigidBodyActivation</a></h4></section></summary><div class="docblock"><p>The activation status of this rigid-body.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.activation_mut" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#162-165">Source</a><h4 class="code-header">pub fn <a href="#method.activation_mut" class="fn">activation_mut</a>(&amp;mut self) -&gt; &amp;mut <a class="struct" href="struct.RigidBodyActivation.html" title="struct rapier3d::dynamics::RigidBodyActivation">RigidBodyActivation</a></h4></section></summary><div class="docblock"><p>Mutable reference to the activation status of this rigid-body.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_enabled" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#168-170">Source</a><h4 class="code-header">pub fn <a href="#method.is_enabled" class="fn">is_enabled</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Is this rigid-body enabled?</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_enabled" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#173-187">Source</a><h4 class="code-header">pub fn <a href="#method.set_enabled" class="fn">set_enabled</a>(&amp;mut self, enabled: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Sets whether this rigid-body is enabled or not.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.linear_damping" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#191-193">Source</a><h4 class="code-header">pub fn <a href="#method.linear_damping" class="fn">linear_damping</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>The linear damping coefficient of this rigid-body.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_linear_damping" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#197-199">Source</a><h4 class="code-header">pub fn <a href="#method.set_linear_damping" class="fn">set_linear_damping</a>(&amp;mut self, damping: <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>Sets the linear damping coefficient of this rigid-body.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.angular_damping" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#203-205">Source</a><h4 class="code-header">pub fn <a href="#method.angular_damping" class="fn">angular_damping</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>The angular damping coefficient of this rigid-body.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_angular_damping" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#209-211">Source</a><h4 class="code-header">pub fn <a href="#method.set_angular_damping" class="fn">set_angular_damping</a>(&amp;mut self, damping: <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>Sets the angular damping coefficient of this rigid-body.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.body_type" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#214-216">Source</a><h4 class="code-header">pub fn <a href="#method.body_type" class="fn">body_type</a>(&amp;self) -&gt; <a class="enum" href="enum.RigidBodyType.html" title="enum rapier3d::dynamics::RigidBodyType">RigidBodyType</a></h4></section></summary><div class="docblock"><p>The type of this rigid-body.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_body_type" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#219-232">Source</a><h4 class="code-header">pub fn <a href="#method.set_body_type" class="fn">set_body_type</a>(&amp;mut self, status: <a class="enum" href="enum.RigidBodyType.html" title="enum rapier3d::dynamics::RigidBodyType">RigidBodyType</a>, wake_up: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Sets the type of this rigid-body.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.center_of_mass" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#236-238">Source</a><h4 class="code-header">pub fn <a href="#method.center_of_mass" class="fn">center_of_mass</a>(&amp;self) -&gt; &amp;<a class="type" href="../math/type.Point.html" title="type rapier3d::math::Point">Point</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>The world-space center-of-mass of this rigid-body.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.mass_properties" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#242-244">Source</a><h4 class="code-header">pub fn <a href="#method.mass_properties" class="fn">mass_properties</a>(&amp;self) -&gt; &amp;<a class="struct" href="struct.RigidBodyMassProps.html" title="struct rapier3d::dynamics::RigidBodyMassProps">RigidBodyMassProps</a></h4></section></summary><div class="docblock"><p>The mass-properties of this rigid-body.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.effective_dominance_group" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#251-253">Source</a><h4 class="code-header">pub fn <a href="#method.effective_dominance_group" class="fn">effective_dominance_group</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.i16.html">i16</a></h4></section></summary><div class="docblock"><p>The dominance group of this rigid-body.</p>
<p>This method always returns <code>i8::MAX + 1</code> for non-dynamic
rigid-bodies.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_locked_axes" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#257-266">Source</a><h4 class="code-header">pub fn <a href="#method.set_locked_axes" class="fn">set_locked_axes</a>(&amp;mut self, locked_axes: <a class="struct" href="struct.LockedAxes.html" title="struct rapier3d::dynamics::LockedAxes">LockedAxes</a>, wake_up: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Sets the axes along which this rigid-body cannot translate or rotate.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.locked_axes" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#270-272">Source</a><h4 class="code-header">pub fn <a href="#method.locked_axes" class="fn">locked_axes</a>(&amp;self) -&gt; <a class="struct" href="struct.LockedAxes.html" title="struct rapier3d::dynamics::LockedAxes">LockedAxes</a></h4></section></summary><div class="docblock"><p>The axes along which this rigid-body cannot translate or rotate.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.lock_rotations" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#276-287">Source</a><h4 class="code-header">pub fn <a href="#method.lock_rotations" class="fn">lock_rotations</a>(&amp;mut self, locked: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>, wake_up: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Locks or unlocks all the rotations of this rigid-body.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_enabled_rotations" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#291-317">Source</a><h4 class="code-header">pub fn <a href="#method.set_enabled_rotations" class="fn">set_enabled_rotations</a>(
&amp;mut self,
allow_rotations_x: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
allow_rotations_y: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
allow_rotations_z: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
wake_up: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
)</h4></section></summary><div class="docblock"><p>Locks or unlocks rotations of this rigid-body along each cartesian axes.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.restrict_rotations" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#321-334">Source</a><h4 class="code-header">pub fn <a href="#method.restrict_rotations" class="fn">restrict_rotations</a>(
&amp;mut self,
allow_rotations_x: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
allow_rotations_y: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
allow_rotations_z: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
wake_up: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
)</h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated: Use <code>set_enabled_rotations</code> instead</span></div></span></summary><div class="docblock"><p>Locks or unlocks rotations of this rigid-body along each cartesian axes.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.lock_translations" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#338-349">Source</a><h4 class="code-header">pub fn <a href="#method.lock_translations" class="fn">lock_translations</a>(&amp;mut self, locked: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>, wake_up: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Locks or unlocks all the rotations of this rigid-body.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_enabled_translations" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#353-391">Source</a><h4 class="code-header">pub fn <a href="#method.set_enabled_translations" class="fn">set_enabled_translations</a>(
&amp;mut self,
allow_translation_x: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
allow_translation_y: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
allow_translation_z: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
wake_up: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
)</h4></section></summary><div class="docblock"><p>Locks or unlocks rotations of this rigid-body along each cartesian axes.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.restrict_translations" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#396-410">Source</a><h4 class="code-header">pub fn <a href="#method.restrict_translations" class="fn">restrict_translations</a>(
&amp;mut self,
allow_translation_x: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
allow_translation_y: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
allow_translation_z: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
wake_up: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
)</h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated: Use <code>set_enabled_translations</code> instead</span></div></span></summary><div class="docblock"><p>Locks or unlocks rotations of this rigid-body along each cartesian axes.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_translation_locked" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#422-424">Source</a><h4 class="code-header">pub fn <a href="#method.is_translation_locked" class="fn">is_translation_locked</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Are the translations of this rigid-body locked?</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_rotation_locked" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#434-440">Source</a><h4 class="code-header">pub fn <a href="#method.is_rotation_locked" class="fn">is_rotation_locked</a>(&amp;self) -&gt; [<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.array.html">3</a>]</h4></section></summary><div class="docblock"><p>Returns <code>true</code> for each rotational degrees of freedom locked on this rigid-body.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.enable_ccd" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#445-447">Source</a><h4 class="code-header">pub fn <a href="#method.enable_ccd" class="fn">enable_ccd</a>(&amp;mut self, enabled: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Enables of disable CCD (Continuous Collision-Detection) for this rigid-body.</p>
<p>CCD prevents tunneling, but may still allow limited interpenetration of colliders.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_ccd_enabled" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#450-452">Source</a><h4 class="code-header">pub fn <a href="#method.is_ccd_enabled" class="fn">is_ccd_enabled</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Is CCD (continuous collision-detection) enabled for this rigid-body?</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_soft_ccd_prediction" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#464-466">Source</a><h4 class="code-header">pub fn <a href="#method.set_soft_ccd_prediction" class="fn">set_soft_ccd_prediction</a>(&amp;mut self, prediction_distance: <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>Sets the maximum prediction distance Soft Continuous Collision-Detection.</p>
<p>When set to 0, soft-CCD is disabled. Soft-CCD helps prevent tunneling especially of
slow-but-thin to moderately fast objects. The soft CCD prediction distance indicates how
far in the objects path the CCD algorithm is allowed to inspect. Large values can impact
performance badly by increasing the work needed from the broad-phase.</p>
<p>It is a generally cheaper variant of regular CCD (that can be enabled with
<a href="struct.RigidBody.html#method.enable_ccd" title="method rapier3d::dynamics::RigidBody::enable_ccd"><code>RigidBody::enable_ccd</code></a> since it relies on predictive constraints instead of
shape-cast and substeps.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.soft_ccd_prediction" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#472-474">Source</a><h4 class="code-header">pub fn <a href="#method.soft_ccd_prediction" class="fn">soft_ccd_prediction</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>The soft-CCD prediction distance for this rigid-body.</p>
<p>See the documentation of <a href="struct.RigidBody.html#method.set_soft_ccd_prediction" title="method rapier3d::dynamics::RigidBody::set_soft_ccd_prediction"><code>RigidBody::set_soft_ccd_prediction</code></a> for additional details on
soft-CCD.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_ccd_active" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#487-489">Source</a><h4 class="code-header">pub fn <a href="#method.is_ccd_active" class="fn">is_ccd_active</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Is CCD active for this rigid-body?</p>
<p>The CCD is considered active if the rigid-body is moving at
a velocity greater than an automatically-computed threshold.</p>
<p>This is not the same as <code>self.is_ccd_enabled</code> which only
checks if CCD is enabled to run for this rigid-body or if
it is completely disabled (independently from its velocity).</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.recompute_mass_properties_from_colliders" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#492-498">Source</a><h4 class="code-header">pub fn <a href="#method.recompute_mass_properties_from_colliders" class="fn">recompute_mass_properties_from_colliders</a>(
&amp;mut self,
colliders: &amp;<a class="struct" href="../geometry/struct.ColliderSet.html" title="struct rapier3d::geometry::ColliderSet">ColliderSet</a>,
)</h4></section></summary><div class="docblock"><p>Recompute the mass-properties of this rigid-bodies based on its currently attached colliders.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_additional_mass" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#521-526">Source</a><h4 class="code-header">pub fn <a href="#method.set_additional_mass" class="fn">set_additional_mass</a>(&amp;mut self, additional_mass: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>, wake_up: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Sets the rigid-bodys additional mass.</p>
<p>The total angular inertia of the rigid-body will be scaled automatically based on this
additional mass. If this scaling effect isnt desired, use <a href="struct.RigidBody.html#method.set_additional_mass_properties" title="method rapier3d::dynamics::RigidBody::set_additional_mass_properties"><code>Self::set_additional_mass_properties</code></a>
instead of this method.</p>
<p>This is only the “additional” mass because the total mass of the rigid-body is
equal to the sum of this additional mass and the mass computed from the colliders
(with non-zero densities) attached to this rigid-body.</p>
<p>That total mass (which includes the attached colliders contributions)
will be updated at the name physics step, or can be updated manually with
<a href="struct.RigidBody.html#method.recompute_mass_properties_from_colliders" title="method rapier3d::dynamics::RigidBody::recompute_mass_properties_from_colliders"><code>Self::recompute_mass_properties_from_colliders</code></a>.</p>
<p>This will override any previous mass-properties set by <a href="struct.RigidBody.html#method.set_additional_mass" title="method rapier3d::dynamics::RigidBody::set_additional_mass"><code>Self::set_additional_mass</code></a>,
<a href="struct.RigidBody.html#method.set_additional_mass_properties" title="method rapier3d::dynamics::RigidBody::set_additional_mass_properties"><code>Self::set_additional_mass_properties</code></a>, <a href="struct.RigidBodyBuilder.html#method.additional_mass" title="method rapier3d::dynamics::RigidBodyBuilder::additional_mass"><code>RigidBodyBuilder::additional_mass</code></a>, or
<a href="struct.RigidBodyBuilder.html#method.additional_mass_properties" title="method rapier3d::dynamics::RigidBodyBuilder::additional_mass_properties"><code>RigidBodyBuilder::additional_mass_properties</code></a> for this rigid-body.</p>
<p>If <code>wake_up</code> is <code>true</code> then the rigid-body will be woken up if it was
put to sleep because it did not move for a while.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_additional_mass_properties" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#545-550">Source</a><h4 class="code-header">pub fn <a href="#method.set_additional_mass_properties" class="fn">set_additional_mass_properties</a>(
&amp;mut self,
props: <a class="struct" href="struct.MassProperties.html" title="struct rapier3d::dynamics::MassProperties">MassProperties</a>,
wake_up: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
)</h4></section></summary><div class="docblock"><p>Sets the rigid-bodys additional mass-properties.</p>
<p>This is only the “additional” mass-properties because the total mass-properties of the
rigid-body is equal to the sum of this additional mass-properties and the mass computed from
the colliders (with non-zero densities) attached to this rigid-body.</p>
<p>That total mass-properties (which include the attached colliders contributions)
will be updated at the name physics step, or can be updated manually with
<a href="struct.RigidBody.html#method.recompute_mass_properties_from_colliders" title="method rapier3d::dynamics::RigidBody::recompute_mass_properties_from_colliders"><code>Self::recompute_mass_properties_from_colliders</code></a>.</p>
<p>This will override any previous mass-properties set by <a href="struct.RigidBody.html#method.set_additional_mass" title="method rapier3d::dynamics::RigidBody::set_additional_mass"><code>Self::set_additional_mass</code></a>,
<a href="struct.RigidBody.html#method.set_additional_mass_properties" title="method rapier3d::dynamics::RigidBody::set_additional_mass_properties"><code>Self::set_additional_mass_properties</code></a>, <a href="struct.RigidBodyBuilder.html#method.additional_mass" title="method rapier3d::dynamics::RigidBodyBuilder::additional_mass"><code>RigidBodyBuilder::additional_mass</code></a>, or
<a href="struct.RigidBodyBuilder.html#method.additional_mass_properties" title="method rapier3d::dynamics::RigidBodyBuilder::additional_mass_properties"><code>RigidBodyBuilder::additional_mass_properties</code></a> for this rigid-body.</p>
<p>If <code>wake_up</code> is <code>true</code> then the rigid-body will be woken up if it was
put to sleep because it did not move for a while.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.colliders" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#570-572">Source</a><h4 class="code-header">pub fn <a href="#method.colliders" class="fn">colliders</a>(&amp;self) -&gt; &amp;[<a class="struct" href="../geometry/struct.ColliderHandle.html" title="struct rapier3d::geometry::ColliderHandle">ColliderHandle</a>]</h4></section></summary><div class="docblock"><p>The handles of colliders attached to this rigid body.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_dynamic" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#577-579">Source</a><h4 class="code-header">pub fn <a href="#method.is_dynamic" class="fn">is_dynamic</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Is this rigid body dynamic?</p>
<p>A dynamic body can move freely and is affected by forces.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_kinematic" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#584-586">Source</a><h4 class="code-header">pub fn <a href="#method.is_kinematic" class="fn">is_kinematic</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Is this rigid body kinematic?</p>
<p>A kinematic body can move freely but is not affected by forces.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_fixed" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#591-593">Source</a><h4 class="code-header">pub fn <a href="#method.is_fixed" class="fn">is_fixed</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Is this rigid body fixed?</p>
<p>A fixed body cannot move and is not affected by forces.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.mass" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#598-600">Source</a><h4 class="code-header">pub fn <a href="#method.mass" class="fn">mass</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>The mass of this rigid body.</p>
<p>Returns zero if this rigid body has an infinite mass.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.next_position" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#607-609">Source</a><h4 class="code-header">pub fn <a href="#method.next_position" class="fn">next_position</a>(&amp;self) -&gt; &amp;<a class="type" href="../math/type.Isometry.html" title="type rapier3d::math::Isometry">Isometry</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>The predicted position of this rigid-body.</p>
<p>If this rigid-body is kinematic this value is set by the <code>set_next_kinematic_position</code>
method and is used for estimating the kinematic body velocity at the next timestep.
For non-kinematic bodies, this value is currently unspecified.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gravity_scale" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#612-614">Source</a><h4 class="code-header">pub fn <a href="#method.gravity_scale" class="fn">gravity_scale</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>The scale factor applied to the gravity affecting this rigid-body.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_gravity_scale" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#617-626">Source</a><h4 class="code-header">pub fn <a href="#method.set_gravity_scale" class="fn">set_gravity_scale</a>(&amp;mut self, scale: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>, wake_up: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Sets the gravity scale facter for this rigid-body.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.dominance_group" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#629-631">Source</a><h4 class="code-header">pub fn <a href="#method.dominance_group" class="fn">dominance_group</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.i8.html">i8</a></h4></section></summary><div class="docblock"><p>The dominance group of this rigid-body.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_dominance_group" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#634-639">Source</a><h4 class="code-header">pub fn <a href="#method.set_dominance_group" class="fn">set_dominance_group</a>(&amp;mut self, dominance: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.i8.html">i8</a>)</h4></section></summary><div class="docblock"><p>The dominance group of this rigid-body.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.sleep" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#676-679">Source</a><h4 class="code-header">pub fn <a href="#method.sleep" class="fn">sleep</a>(&amp;mut self)</h4></section></summary><div class="docblock"><p>Put this rigid body to sleep.</p>
<p>A sleeping body no longer moves and is no longer simulated by the physics engine unless
it is waken up. It can be woken manually with <code>self.wake_up</code> or automatically due to
external forces like contacts.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.wake_up" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#685-691">Source</a><h4 class="code-header">pub fn <a href="#method.wake_up" class="fn">wake_up</a>(&amp;mut self, strong: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Wakes up this rigid body if it is sleeping.</p>
<p>If <code>strong</code> is <code>true</code> then it is assured that the rigid-body will
remain awake during multiple subsequent timesteps.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_sleeping" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#694-700">Source</a><h4 class="code-header">pub fn <a href="#method.is_sleeping" class="fn">is_sleeping</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Is this rigid body sleeping?</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_moving" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#703-705">Source</a><h4 class="code-header">pub fn <a href="#method.is_moving" class="fn">is_moving</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Is the velocity of this body not zero?</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.linvel" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#708-710">Source</a><h4 class="code-header">pub fn <a href="#method.linvel" class="fn">linvel</a>(&amp;self) -&gt; &amp;<a class="type" href="../math/type.Vector.html" title="type rapier3d::math::Vector">Vector</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>The linear velocity of this rigid-body.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.angvel" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#720-722">Source</a><h4 class="code-header">pub fn <a href="#method.angvel" class="fn">angvel</a>(&amp;self) -&gt; &amp;<a class="type" href="../math/type.Vector.html" title="type rapier3d::math::Vector">Vector</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>The angular velocity of this rigid-body.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_linvel" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#728-743">Source</a><h4 class="code-header">pub fn <a href="#method.set_linvel" class="fn">set_linvel</a>(&amp;mut self, linvel: <a class="type" href="../math/type.Vector.html" title="type rapier3d::math::Vector">Vector</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;, wake_up: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>The linear velocity of this rigid-body.</p>
<p>If <code>wake_up</code> is <code>true</code> then the rigid-body will be woken up if it was
put to sleep because it did not move for a while.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_angvel" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#772-787">Source</a><h4 class="code-header">pub fn <a href="#method.set_angvel" class="fn">set_angvel</a>(&amp;mut self, angvel: <a class="type" href="../math/type.Vector.html" title="type rapier3d::math::Vector">Vector</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;, wake_up: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>The angular velocity of this rigid-body.</p>
<p>If <code>wake_up</code> is <code>true</code> then the rigid-body will be woken up if it was
put to sleep because it did not move for a while.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.position" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#791-793">Source</a><h4 class="code-header">pub fn <a href="#method.position" class="fn">position</a>(&amp;self) -&gt; &amp;<a class="type" href="../math/type.Isometry.html" title="type rapier3d::math::Isometry">Isometry</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>The world-space position of this rigid-body.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.translation" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#797-799">Source</a><h4 class="code-header">pub fn <a href="#method.translation" class="fn">translation</a>(&amp;self) -&gt; &amp;<a class="type" href="../math/type.Vector.html" title="type rapier3d::math::Vector">Vector</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>The translational part of this rigid-bodys position.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_translation" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#803-819">Source</a><h4 class="code-header">pub fn <a href="#method.set_translation" class="fn">set_translation</a>(&amp;mut self, translation: <a class="type" href="../math/type.Vector.html" title="type rapier3d::math::Vector">Vector</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;, wake_up: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Sets the translational part of this rigid-bodys position.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.rotation" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#823-825">Source</a><h4 class="code-header">pub fn <a href="#method.rotation" class="fn">rotation</a>(&amp;self) -&gt; &amp;<a class="type" href="../math/type.Rotation.html" title="type rapier3d::math::Rotation">Rotation</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>The rotational part of this rigid-bodys position.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_rotation" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#829-843">Source</a><h4 class="code-header">pub fn <a href="#method.set_rotation" class="fn">set_rotation</a>(&amp;mut self, rotation: <a class="type" href="../math/type.Rotation.html" title="type rapier3d::math::Rotation">Rotation</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;, wake_up: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Sets the rotational part of this rigid-bodys position.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_position" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#854-868">Source</a><h4 class="code-header">pub fn <a href="#method.set_position" class="fn">set_position</a>(&amp;mut self, pos: <a class="type" href="../math/type.Isometry.html" title="type rapier3d::math::Isometry">Isometry</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;, wake_up: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Sets the position and <code>next_kinematic_position</code> of this rigid body.</p>
<p>This will teleport the rigid-body to the specified position/orientation,
completely ignoring any physics rule. If this body is kinematic, this will
also set the next kinematic position to the same value, effectively
resetting to zero the next interpolated velocity of the kinematic body.</p>
<p>If <code>wake_up</code> is <code>true</code> then the rigid-body will be woken up if it was
put to sleep because it did not move for a while.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_next_kinematic_rotation" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#871-875">Source</a><h4 class="code-header">pub fn <a href="#method.set_next_kinematic_rotation" class="fn">set_next_kinematic_rotation</a>(&amp;mut self, rotation: <a class="type" href="../math/type.Rotation.html" title="type rapier3d::math::Rotation">Rotation</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;)</h4></section></summary><div class="docblock"><p>If this rigid body is kinematic, sets its future orientation after the next timestep integration.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_next_kinematic_translation" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#878-882">Source</a><h4 class="code-header">pub fn <a href="#method.set_next_kinematic_translation" class="fn">set_next_kinematic_translation</a>(&amp;mut self, translation: <a class="type" href="../math/type.Vector.html" title="type rapier3d::math::Vector">Vector</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;)</h4></section></summary><div class="docblock"><p>If this rigid body is kinematic, sets its future translation after the next timestep integration.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_next_kinematic_position" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#886-890">Source</a><h4 class="code-header">pub fn <a href="#method.set_next_kinematic_position" class="fn">set_next_kinematic_position</a>(&amp;mut self, pos: <a class="type" href="../math/type.Isometry.html" title="type rapier3d::math::Isometry">Isometry</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;)</h4></section></summary><div class="docblock"><p>If this rigid body is kinematic, sets its future position (translation and orientation) after
the next timestep integration.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.predict_position_using_velocity_and_forces" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#913-916">Source</a><h4 class="code-header">pub fn <a href="#method.predict_position_using_velocity_and_forces" class="fn">predict_position_using_velocity_and_forces</a>(
&amp;self,
dt: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>,
) -&gt; <a class="type" href="../math/type.Isometry.html" title="type rapier3d::math::Isometry">Isometry</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>Predicts the next position of this rigid-body, by integrating its velocity and forces
by a time of <code>dt</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.predict_position_using_velocity" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#924-927">Source</a><h4 class="code-header">pub fn <a href="#method.predict_position_using_velocity" class="fn">predict_position_using_velocity</a>(&amp;self, dt: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>) -&gt; <a class="type" href="../math/type.Isometry.html" title="type rapier3d::math::Isometry">Isometry</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>Predicts the next position of this rigid-body, by integrating only its velocity
by a time of <code>dt</code>.</p>
<p>The forces that were applied to this rigid-body since the last physics step will
be ignored by this function. Use <a href="struct.RigidBody.html#method.predict_position_using_velocity_and_forces" title="method rapier3d::dynamics::RigidBody::predict_position_using_velocity_and_forces"><code>Self::predict_position_using_velocity_and_forces</code></a>
instead to take forces into account.</p>
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-RigidBody-1" class="impl"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#935-1012">Source</a><a href="#impl-RigidBody-1" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.RigidBody.html" title="struct rapier3d::dynamics::RigidBody">RigidBody</a></h3></section></summary><div class="docblock"><h5 id="applying-forces-and-torques"><a class="doc-anchor" href="#applying-forces-and-torques">§</a>Applying forces and torques</h5></div><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.reset_forces" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#937-945">Source</a><h4 class="code-header">pub fn <a href="#method.reset_forces" class="fn">reset_forces</a>(&amp;mut self, wake_up: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Resets to zero all the constant (linear) forces manually applied to this rigid-body.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.reset_torques" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#948-956">Source</a><h4 class="code-header">pub fn <a href="#method.reset_torques" class="fn">reset_torques</a>(&amp;mut self, wake_up: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Resets to zero all the constant torques manually applied to this rigid-body.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_force" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#961-969">Source</a><h4 class="code-header">pub fn <a href="#method.add_force" class="fn">add_force</a>(&amp;mut self, force: <a class="type" href="../math/type.Vector.html" title="type rapier3d::math::Vector">Vector</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;, wake_up: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Adds to this rigid-body a constant force applied at its center-of-mass.ç</p>
<p>This does nothing on non-dynamic bodies.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_torque" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#989-997">Source</a><h4 class="code-header">pub fn <a href="#method.add_torque" class="fn">add_torque</a>(&amp;mut self, torque: <a class="type" href="../math/type.Vector.html" title="type rapier3d::math::Vector">Vector</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;, wake_up: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Adds to this rigid-body a constant torque at its center-of-mass.</p>
<p>This does nothing on non-dynamic bodies.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_force_at_point" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#1002-1011">Source</a><h4 class="code-header">pub fn <a href="#method.add_force_at_point" class="fn">add_force_at_point</a>(
&amp;mut self,
force: <a class="type" href="../math/type.Vector.html" title="type rapier3d::math::Vector">Vector</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;,
point: <a class="type" href="../math/type.Point.html" title="type rapier3d::math::Point">Point</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;,
wake_up: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
)</h4></section></summary><div class="docblock"><p>Adds to this rigid-body a constant force at the given world-space point of this rigid-body.</p>
<p>This does nothing on non-dynamic bodies.</p>
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-RigidBody-2" class="impl"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#1015-1097">Source</a><a href="#impl-RigidBody-2" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.RigidBody.html" title="struct rapier3d::dynamics::RigidBody">RigidBody</a></h3></section></summary><div class="docblock"><h5 id="applying-impulses-and-angular-impulses"><a class="doc-anchor" href="#applying-impulses-and-angular-impulses">§</a>Applying impulses and angular impulses</h5></div><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.apply_impulse" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#1019">Source</a><h4 class="code-header">pub fn <a href="#method.apply_impulse" class="fn">apply_impulse</a>(&amp;mut self, impulse: <a class="type" href="../math/type.Vector.html" title="type rapier3d::math::Vector">Vector</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;, wake_up: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Applies an impulse at the center-of-mass of this rigid-body.
The impulse is applied right away, changing the linear velocity.
This does nothing on non-dynamic bodies.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.apply_torque_impulse" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#1050">Source</a><h4 class="code-header">pub fn <a href="#method.apply_torque_impulse" class="fn">apply_torque_impulse</a>(
&amp;mut self,
torque_impulse: <a class="type" href="../math/type.Vector.html" title="type rapier3d::math::Vector">Vector</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;,
wake_up: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
)</h4></section></summary><div class="docblock"><p>Applies an angular impulse at the center-of-mass of this rigid-body.
The impulse is applied right away, changing the angular velocity.
This does nothing on non-dynamic bodies.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.apply_impulse_at_point" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#1065-1074">Source</a><h4 class="code-header">pub fn <a href="#method.apply_impulse_at_point" class="fn">apply_impulse_at_point</a>(
&amp;mut self,
impulse: <a class="type" href="../math/type.Vector.html" title="type rapier3d::math::Vector">Vector</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;,
point: <a class="type" href="../math/type.Point.html" title="type rapier3d::math::Point">Point</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;,
wake_up: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,
)</h4></section></summary><div class="docblock"><p>Applies an impulse at the given world-space point of this rigid-body.
The impulse is applied right away, changing the linear and/or angular velocities.
This does nothing on non-dynamic bodies.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.user_force" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#1079-1085">Source</a><h4 class="code-header">pub fn <a href="#method.user_force" class="fn">user_force</a>(&amp;self) -&gt; <a class="type" href="../math/type.Vector.html" title="type rapier3d::math::Vector">Vector</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>Retrieves the constant force(s) that the user has added to the body.</p>
<p>Returns zero if the rigid-body isnt dynamic.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.user_torque" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#1090-1096">Source</a><h4 class="code-header">pub fn <a href="#method.user_torque" class="fn">user_torque</a>(&amp;self) -&gt; <a class="type" href="../math/type.AngVector.html" title="type rapier3d::math::AngVector">AngVector</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>Retrieves the constant torque(s) that the user has added to the body.</p>
<p>Returns zero if the rigid-body isnt dynamic.</p>
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-RigidBody-3" class="impl"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#1099-1124">Source</a><a href="#impl-RigidBody-3" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.RigidBody.html" title="struct rapier3d::dynamics::RigidBody">RigidBody</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.velocity_at_point" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#1101-1103">Source</a><h4 class="code-header">pub fn <a href="#method.velocity_at_point" class="fn">velocity_at_point</a>(&amp;self, point: &amp;<a class="type" href="../math/type.Point.html" title="type rapier3d::math::Point">Point</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;) -&gt; <a class="type" href="../math/type.Vector.html" title="type rapier3d::math::Vector">Vector</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;</h4></section></summary><div class="docblock"><p>The velocity of the given world-space point on this rigid-body.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.kinetic_energy" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#1106-1108">Source</a><h4 class="code-header">pub fn <a href="#method.kinetic_energy" class="fn">kinetic_energy</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>The kinetic energy of this body.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gravitational_potential_energy" class="method"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#1111-1123">Source</a><h4 class="code-header">pub fn <a href="#method.gravitational_potential_energy" class="fn">gravitational_potential_energy</a>(
&amp;self,
dt: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>,
gravity: <a class="type" href="../math/type.Vector.html" title="type rapier3d::math::Vector">Vector</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>&gt;,
) -&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>The potential energy of this body in a gravity field.</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-RigidBody" class="impl"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#20">Source</a><a href="#impl-Clone-for-RigidBody" 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.RigidBody.html" title="struct rapier3d::dynamics::RigidBody">RigidBody</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/rapier3d/dynamics/rigid_body.rs.html#20">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.RigidBody.html" title="struct rapier3d::dynamics::RigidBody">RigidBody</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>(&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><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-RigidBody" class="impl"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#20">Source</a><a href="#impl-Debug-for-RigidBody" 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.RigidBody.html" title="struct rapier3d::dynamics::RigidBody">RigidBody</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/rapier3d/dynamics/rigid_body.rs.html#20">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>(&amp;self, f: &amp;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>&lt;'_&gt;) -&gt; <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-RigidBody" class="impl"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#47-51">Source</a><a href="#impl-Default-for-RigidBody" 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.RigidBody.html" title="struct rapier3d::dynamics::RigidBody">RigidBody</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/rapier3d/dynamics/rigid_body.rs.html#48-50">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>() -&gt; Self</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-RigidBody" class="impl"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#16">Source</a><a href="#impl-Deserialize%3C'de%3E-for-RigidBody" class="anchor">§</a><h3 class="code-header">impl&lt;'de&gt; <a class="trait" href="../../serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt; for <a class="struct" href="struct.RigidBody.html" title="struct rapier3d::dynamics::RigidBody">RigidBody</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/rapier3d/dynamics/rigid_body.rs.html#16">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>&lt;__D&gt;(__deserializer: __D) -&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;Self, __D::<a class="associatedtype" href="../../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>&gt;<div class="where">where
__D: <a class="trait" href="../../serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a>&lt;'de&gt;,</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-From%3CRigidBodyBuilder%3E-for-RigidBody" class="impl"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#1521-1525">Source</a><a href="#impl-From%3CRigidBodyBuilder%3E-for-RigidBody" class="anchor">§</a><h3 class="code-header">impl <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;<a class="struct" href="struct.RigidBodyBuilder.html" title="struct rapier3d::dynamics::RigidBodyBuilder">RigidBodyBuilder</a>&gt; for <a class="struct" href="struct.RigidBody.html" title="struct rapier3d::dynamics::RigidBody">RigidBody</a></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="../../src/rapier3d/dynamics/rigid_body.rs.html#1522-1524">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>(val: <a class="struct" href="struct.RigidBodyBuilder.html" title="struct rapier3d::dynamics::RigidBodyBuilder">RigidBodyBuilder</a>) -&gt; <a class="struct" href="struct.RigidBody.html" title="struct rapier3d::dynamics::RigidBody">RigidBody</a></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Serialize-for-RigidBody" class="impl"><a class="src rightside" href="../../src/rapier3d/dynamics/rigid_body.rs.html#16">Source</a><a href="#impl-Serialize-for-RigidBody" 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.RigidBody.html" title="struct rapier3d::dynamics::RigidBody">RigidBody</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/rapier3d/dynamics/rigid_body.rs.html#16">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>&lt;__S&gt;(&amp;self, __serializer: __S) -&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;__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>&gt;<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></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-RigidBody" class="impl"><a href="#impl-Freeze-for-RigidBody" 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.RigidBody.html" title="struct rapier3d::dynamics::RigidBody">RigidBody</a></h3></section><section id="impl-RefUnwindSafe-for-RigidBody" class="impl"><a href="#impl-RefUnwindSafe-for-RigidBody" 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.RigidBody.html" title="struct rapier3d::dynamics::RigidBody">RigidBody</a></h3></section><section id="impl-Send-for-RigidBody" class="impl"><a href="#impl-Send-for-RigidBody" 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.RigidBody.html" title="struct rapier3d::dynamics::RigidBody">RigidBody</a></h3></section><section id="impl-Sync-for-RigidBody" class="impl"><a href="#impl-Sync-for-RigidBody" 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.RigidBody.html" title="struct rapier3d::dynamics::RigidBody">RigidBody</a></h3></section><section id="impl-Unpin-for-RigidBody" class="impl"><a href="#impl-Unpin-for-RigidBody" 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.RigidBody.html" title="struct rapier3d::dynamics::RigidBody">RigidBody</a></h3></section><section id="impl-UnwindSafe-for-RigidBody" class="impl"><a href="#impl-UnwindSafe-for-RigidBody" 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.RigidBody.html" title="struct rapier3d::dynamics::RigidBody">RigidBody</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&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-Downcast-for-T" class="impl"><a class="src rightside" href="../../src/downcast_rs/lib.rs.html#189">Source</a><a href="#impl-Downcast-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../../downcast_rs/trait.Downcast.html" title="trait downcast_rs::Downcast">Downcast</a> for T<div class="where">where
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>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_any" class="method trait-impl"><a class="src rightside" href="../../src/downcast_rs/lib.rs.html#190">Source</a><a href="#method.into_any" class="anchor">§</a><h4 class="code-header">fn <a href="../../downcast_rs/trait.Downcast.html#tymethod.into_any" class="fn">into_any</a>(self: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;T&gt;) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a>&gt;</h4></section></summary><div class='docblock'>Convert <code>Box&lt;dyn Trait&gt;</code> (where <code>Trait: Downcast</code>) to <code>Box&lt;dyn Any&gt;</code>. <code>Box&lt;dyn Any&gt;</code> can
then be further <code>downcast</code> into <code>Box&lt;ConcreteType&gt;</code> where <code>ConcreteType</code> implements <code>Trait</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.into_any_rc" class="method trait-impl"><a class="src rightside" href="../../src/downcast_rs/lib.rs.html#191">Source</a><a href="#method.into_any_rc" class="anchor">§</a><h4 class="code-header">fn <a href="../../downcast_rs/trait.Downcast.html#tymethod.into_any_rc" class="fn">into_any_rc</a>(self: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/rc/struct.Rc.html" title="struct alloc::rc::Rc">Rc</a>&lt;T&gt;) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/rc/struct.Rc.html" title="struct alloc::rc::Rc">Rc</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a>&gt;</h4></section></summary><div class='docblock'>Convert <code>Rc&lt;Trait&gt;</code> (where <code>Trait: Downcast</code>) to <code>Rc&lt;Any&gt;</code>. <code>Rc&lt;Any&gt;</code> can then be
further <code>downcast</code> into <code>Rc&lt;ConcreteType&gt;</code> where <code>ConcreteType</code> implements <code>Trait</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.as_any" class="method trait-impl"><a class="src rightside" href="../../src/downcast_rs/lib.rs.html#192">Source</a><a href="#method.as_any" class="anchor">§</a><h4 class="code-header">fn <a href="../../downcast_rs/trait.Downcast.html#tymethod.as_any" class="fn">as_any</a>(&amp;self) -&gt; &amp;(dyn <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static)</h4></section></summary><div class='docblock'>Convert <code>&amp;Trait</code> (where <code>Trait: Downcast</code>) to <code>&amp;Any</code>. This is needed since Rust cannot
generate <code>&amp;Any</code>s vtable from <code>&amp;Trait</code>s.</div></details><details class="toggle method-toggle" open><summary><section id="method.as_any_mut" class="method trait-impl"><a class="src rightside" href="../../src/downcast_rs/lib.rs.html#193">Source</a><a href="#method.as_any_mut" class="anchor">§</a><h4 class="code-header">fn <a href="../../downcast_rs/trait.Downcast.html#tymethod.as_any_mut" class="fn">as_any_mut</a>(&amp;mut self) -&gt; &amp;mut (dyn <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static)</h4></section></summary><div class='docblock'>Convert <code>&amp;mut Trait</code> (where <code>Trait: Downcast</code>) to <code>&amp;Any</code>. This is needed since Rust cannot
generate <code>&amp;mut Any</code>s vtable from <code>&amp;mut Trait</code>s.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-DowncastSync-for-T" class="impl"><a class="src rightside" href="../../src/downcast_rs/lib.rs.html#203">Source</a><a href="#impl-DowncastSync-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../../downcast_rs/trait.DowncastSync.html" title="trait downcast_rs::DowncastSync">DowncastSync</a> for T<div class="where">where
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> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <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></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_any_arc" class="method trait-impl"><a class="src rightside" href="../../src/downcast_rs/lib.rs.html#204">Source</a><a href="#method.into_any_arc" class="anchor">§</a><h4 class="code-header">fn <a href="../../downcast_rs/trait.DowncastSync.html#tymethod.into_any_arc" class="fn">into_any_arc</a>(self: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;T&gt;) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>&gt;</h4></section></summary><div class='docblock'>Convert <code>Arc&lt;Trait&gt;</code> (where <code>Trait: Downcast</code>) to <code>Arc&lt;Any&gt;</code>. <code>Arc&lt;Any&gt;</code> can then be
further <code>downcast</code> into <code>Arc&lt;ConcreteType&gt;</code> where <code>ConcreteType</code> implements <code>Trait</code>.</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-1" 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-1" 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-IntoEither-for-T" class="impl"><a class="src rightside" href="../../src/either/into_either.rs.html#64">Source</a><a href="#impl-IntoEither-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../../either/into_either/trait.IntoEither.html" title="trait either::into_either::IntoEither">IntoEither</a> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_either" class="method trait-impl"><a class="src rightside" href="../../src/either/into_either.rs.html#29">Source</a><a href="#method.into_either" class="anchor">§</a><h4 class="code-header">fn <a href="../../either/into_either/trait.IntoEither.html#method.into_either" class="fn">into_either</a>(self, into_left: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>) -&gt; <a class="enum" href="../../either/enum.Either.html" title="enum either::Either">Either</a>&lt;Self, Self&gt;</h4></section></summary><div class='docblock'>Converts <code>self</code> into a <a href="../../either/enum.Either.html#variant.Left" title="variant either::Either::Left"><code>Left</code></a> variant of <a href="../../either/enum.Either.html" title="enum either::Either"><code>Either&lt;Self, Self&gt;</code></a>
if <code>into_left</code> is <code>true</code>.
Converts <code>self</code> into a <a href="../../either/enum.Either.html#variant.Right" title="variant either::Either::Right"><code>Right</code></a> variant of <a href="../../either/enum.Either.html" title="enum either::Either"><code>Either&lt;Self, Self&gt;</code></a>
otherwise. <a href="../../either/into_either/trait.IntoEither.html#method.into_either">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.into_either_with" class="method trait-impl"><a class="src rightside" href="../../src/either/into_either.rs.html#55-57">Source</a><a href="#method.into_either_with" class="anchor">§</a><h4 class="code-header">fn <a href="../../either/into_either/trait.IntoEither.html#method.into_either_with" class="fn">into_either_with</a>&lt;F&gt;(self, into_left: F) -&gt; <a class="enum" href="../../either/enum.Either.html" title="enum either::Either">Either</a>&lt;Self, Self&gt;<div class="where">where
F: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&amp;Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div class='docblock'>Converts <code>self</code> into a <a href="../../either/enum.Either.html#variant.Left" title="variant either::Either::Left"><code>Left</code></a> variant of <a href="../../either/enum.Either.html" title="enum either::Either"><code>Either&lt;Self, Self&gt;</code></a>
if <code>into_left(&amp;self)</code> returns <code>true</code>.
Converts <code>self</code> into a <a href="../../either/enum.Either.html#variant.Right" title="variant either::Either::Right"><code>Right</code></a> variant of <a href="../../either/enum.Either.html" title="enum either::Either"><code>Either&lt;Self, Self&gt;</code></a>
otherwise. <a href="../../either/into_either/trait.IntoEither.html#method.into_either_with">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Pointable-for-T" class="impl"><a class="src rightside" href="../../src/crossbeam_epoch/atomic.rs.html#194">Source</a><a href="#impl-Pointable-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../../crossbeam_epoch/atomic/trait.Pointable.html" title="trait crossbeam_epoch::atomic::Pointable">Pointable</a> for T</h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedconstant.ALIGN" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/crossbeam_epoch/atomic.rs.html#195">Source</a><a href="#associatedconstant.ALIGN" class="anchor">§</a><h4 class="code-header">const <a href="../../crossbeam_epoch/atomic/trait.Pointable.html#associatedconstant.ALIGN" class="constant">ALIGN</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a> = _</h4></section></summary><div class='docblock'>The alignment of pointer.</div></details><details class="toggle" open><summary><section id="associatedtype.Init" class="associatedtype trait-impl"><a class="src rightside" href="../../src/crossbeam_epoch/atomic.rs.html#197">Source</a><a href="#associatedtype.Init" class="anchor">§</a><h4 class="code-header">type <a href="../../crossbeam_epoch/atomic/trait.Pointable.html#associatedtype.Init" class="associatedtype">Init</a> = T</h4></section></summary><div class='docblock'>The type for initializers.</div></details><details class="toggle method-toggle" open><summary><section id="method.init" class="method trait-impl"><a class="src rightside" href="../../src/crossbeam_epoch/atomic.rs.html#199">Source</a><a href="#method.init" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../../crossbeam_epoch/atomic/trait.Pointable.html#tymethod.init" class="fn">init</a>(init: &lt;T as <a class="trait" href="../../crossbeam_epoch/atomic/trait.Pointable.html" title="trait crossbeam_epoch::atomic::Pointable">Pointable</a>&gt;::<a class="associatedtype" href="../../crossbeam_epoch/atomic/trait.Pointable.html#associatedtype.Init" title="type crossbeam_epoch::atomic::Pointable::Init">Init</a>) -&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'>Initializes a with the given initializer. <a href="../../crossbeam_epoch/atomic/trait.Pointable.html#tymethod.init">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deref" class="method trait-impl"><a class="src rightside" href="../../src/crossbeam_epoch/atomic.rs.html#203">Source</a><a href="#method.deref" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../../crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref" class="fn">deref</a>&lt;'a&gt;(ptr: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;'a T</a></h4></section></summary><div class='docblock'>Dereferences the given pointer. <a href="../../crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deref_mut" class="method trait-impl"><a class="src rightside" href="../../src/crossbeam_epoch/atomic.rs.html#207">Source</a><a href="#method.deref_mut" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../../crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref_mut" class="fn">deref_mut</a>&lt;'a&gt;(ptr: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;'a mut T</a></h4></section></summary><div class='docblock'>Mutably dereferences the given pointer. <a href="../../crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref_mut">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.drop" class="method trait-impl"><a class="src rightside" href="../../src/crossbeam_epoch/atomic.rs.html#211">Source</a><a href="#method.drop" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../../crossbeam_epoch/atomic/trait.Pointable.html#tymethod.drop" class="fn">drop</a>(ptr: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>)</h4></section></summary><div class='docblock'>Drops the object pointed to by the given pointer. <a href="../../crossbeam_epoch/atomic/trait.Pointable.html#tymethod.drop">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Same-for-T" class="impl"><a class="src rightside" href="../../src/typenum/type_operators.rs.html#34">Source</a><a href="#impl-Same-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../../typenum/type_operators/trait.Same.html" title="trait typenum::type_operators::Same">Same</a> for T</h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output" class="associatedtype trait-impl"><a class="src rightside" href="../../src/typenum/type_operators.rs.html#35">Source</a><a href="#associatedtype.Output" class="anchor">§</a><h4 class="code-header">type <a href="../../typenum/type_operators/trait.Same.html#associatedtype.Output" class="associatedtype">Output</a> = T</h4></section></summary><div class='docblock'>Should always be <code>Self</code></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-SupersetOf%3CSS%3E-for-SP" class="impl"><a class="src rightside" href="../../src/simba/scalar/subset.rs.html#87">Source</a><a href="#impl-SupersetOf%3CSS%3E-for-SP" class="anchor">§</a><h3 class="code-header">impl&lt;SS, SP&gt; <a class="trait" href="../../simba/scalar/subset/trait.SupersetOf.html" title="trait simba::scalar::subset::SupersetOf">SupersetOf</a>&lt;SS&gt; for SP<div class="where">where
SS: <a class="trait" href="../../simba/scalar/subset/trait.SubsetOf.html" title="trait simba::scalar::subset::SubsetOf">SubsetOf</a>&lt;SP&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.to_subset" class="method trait-impl"><a class="src rightside" href="../../src/simba/scalar/subset.rs.html#89">Source</a><a href="#method.to_subset" class="anchor">§</a><h4 class="code-header">fn <a href="../../simba/scalar/subset/trait.SupersetOf.html#method.to_subset" class="fn">to_subset</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;SS&gt;</h4></section></summary><div class='docblock'>The inverse inclusion map: attempts to construct <code>self</code> from the equivalent element of its
superset. <a href="../../simba/scalar/subset/trait.SupersetOf.html#method.to_subset">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_in_subset" class="method trait-impl"><a class="src rightside" href="../../src/simba/scalar/subset.rs.html#94">Source</a><a href="#method.is_in_subset" class="anchor">§</a><h4 class="code-header">fn <a href="../../simba/scalar/subset/trait.SupersetOf.html#tymethod.is_in_subset" class="fn">is_in_subset</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Checks if <code>self</code> is actually part of its subset <code>T</code> (and can be converted to it).</div></details><details class="toggle method-toggle" open><summary><section id="method.to_subset_unchecked" class="method trait-impl"><a class="src rightside" href="../../src/simba/scalar/subset.rs.html#99">Source</a><a href="#method.to_subset_unchecked" class="anchor">§</a><h4 class="code-header">fn <a href="../../simba/scalar/subset/trait.SupersetOf.html#tymethod.to_subset_unchecked" class="fn">to_subset_unchecked</a>(&amp;self) -&gt; SS</h4></section></summary><div class='docblock'>Use with care! Same as <code>self.to_subset</code> but without any property checks. Always succeeds.</div></details><details class="toggle method-toggle" open><summary><section id="method.from_subset" class="method trait-impl"><a class="src rightside" href="../../src/simba/scalar/subset.rs.html#104">Source</a><a href="#method.from_subset" class="anchor">§</a><h4 class="code-header">fn <a href="../../simba/scalar/subset/trait.SupersetOf.html#tymethod.from_subset" class="fn">from_subset</a>(element: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;SS</a>) -&gt; SP</h4></section></summary><div class='docblock'>The inclusion map: converts <code>self</code> to the equivalent element of its superset.</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><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&lt;T&gt; <a class="trait" href="../../serde/de/trait.DeserializeOwned.html" title="trait serde::de::DeserializeOwned">DeserializeOwned</a> for T<div class="where">where
T: for&lt;'de&gt; <a class="trait" href="../../serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt;,</div></h3></section></div></section></div></main></body></html>