Files
phy/parry3d/query/trait.WorkspaceData.html
Orion Kindel 0ce894e6b0 doc
2025-03-18 10:30:23 -05:00

25 lines
14 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="Data from a `ContactManifoldsWorkspace`."><title>WorkspaceData in parry3d::query - 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="parry3d" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.0 (9fc6b4312 2025-01-07)" data-channel="1.84.0" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../parry3d/index.html">parry3d</a><span class="version">0.18.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Workspace<wbr>Data</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.as_typed_workspace_data" title="as_typed_workspace_data">as_typed_workspace_data</a></li><li><a href="#tymethod.clone_dyn" title="clone_dyn">clone_dyn</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.downcast" title="downcast">downcast</a></li><li><a href="#method.downcast_arc" title="downcast_arc">downcast_arc</a></li><li><a href="#method.downcast_mut" title="downcast_mut">downcast_mut</a></li><li><a href="#method.downcast_rc" title="downcast_rc">downcast_rc</a></li><li><a href="#method.downcast_ref" title="downcast_ref">downcast_ref</a></li><li><a href="#method.is" title="is">is</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In parry3d::<wbr>query</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">parry3d</a>::<wbr><a href="index.html">query</a></span><h1>Trait <span class="trait">WorkspaceData</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/parry3d/query/contact_manifolds/contact_manifolds_workspace.rs.html#76-82">Source</a> </span></div><pre class="rust item-decl"><code>pub trait WorkspaceData: <a class="trait" href="../../downcast_rs/trait.DowncastSync.html" title="trait downcast_rs::DowncastSync">DowncastSync</a> {
// Required methods
fn <a href="#tymethod.as_typed_workspace_data" class="fn">as_typed_workspace_data</a>(&amp;self) -&gt; <a class="enum" href="details/enum.TypedWorkspaceData.html" title="enum parry3d::query::details::TypedWorkspaceData">TypedWorkspaceData</a>&lt;'_&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.clone_dyn" class="fn">clone_dyn</a>(&amp;self) -&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="details/trait.WorkspaceData.html" title="trait parry3d::query::details::WorkspaceData">WorkspaceData</a>&gt;;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Data from a <a href="details/struct.ContactManifoldsWorkspace.html" title="struct parry3d::query::details::ContactManifoldsWorkspace"><code>ContactManifoldsWorkspace</code></a>.</p>
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.as_typed_workspace_data" class="method"><a class="src rightside" href="../../src/parry3d/query/contact_manifolds/contact_manifolds_workspace.rs.html#78">Source</a><h4 class="code-header">fn <a href="#tymethod.as_typed_workspace_data" class="fn">as_typed_workspace_data</a>(&amp;self) -&gt; <a class="enum" href="details/enum.TypedWorkspaceData.html" title="enum parry3d::query::details::TypedWorkspaceData">TypedWorkspaceData</a>&lt;'_&gt;</h4></section></summary><div class="docblock"><p>Gets the underlying workspace as an enum.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.clone_dyn" class="method"><a class="src rightside" href="../../src/parry3d/query/contact_manifolds/contact_manifolds_workspace.rs.html#81">Source</a><h4 class="code-header">fn <a href="#tymethod.clone_dyn" class="fn">clone_dyn</a>(&amp;self) -&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="details/trait.WorkspaceData.html" title="trait parry3d::query::details::WorkspaceData">WorkspaceData</a>&gt;</h4></section></summary><div class="docblock"><p>Clones <code>self</code>.</p>
</div></details></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-dyn+WorkspaceData" class="impl"><a class="src rightside" href="../../src/parry3d/query/contact_manifolds/contact_manifolds_workspace.rs.html#84">Source</a><a href="#impl-dyn+WorkspaceData" class="anchor">§</a><h3 class="code-header">impl dyn <a class="trait" href="details/trait.WorkspaceData.html" title="trait parry3d::query::details::WorkspaceData">WorkspaceData</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.is" class="method"><a class="src rightside" href="../../src/parry3d/query/contact_manifolds/contact_manifolds_workspace.rs.html#84">Source</a><h4 class="code-header">pub fn <a href="#method.is" class="fn">is</a>&lt;__T: <a class="trait" href="details/trait.WorkspaceData.html" title="trait parry3d::query::details::WorkspaceData">WorkspaceData</a>&gt;(&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>Returns true if the trait object wraps an object of type <code>__T</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.downcast" class="method"><a class="src rightside" href="../../src/parry3d/query/contact_manifolds/contact_manifolds_workspace.rs.html#84">Source</a><h4 class="code-header">pub fn <a href="#method.downcast" class="fn">downcast</a>&lt;__T: <a class="trait" href="details/trait.WorkspaceData.html" title="trait parry3d::query::details::WorkspaceData">WorkspaceData</a>&gt;(
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;Self&gt;,
) -&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;<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;, <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;Self&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns a boxed object from a boxed trait object if the underlying object is of type
<code>__T</code>. Returns the original boxed trait if it isnt.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.downcast_rc" class="method"><a class="src rightside" href="../../src/parry3d/query/contact_manifolds/contact_manifolds_workspace.rs.html#84">Source</a><h4 class="code-header">pub fn <a href="#method.downcast_rc" class="fn">downcast_rc</a>&lt;__T: <a class="trait" href="details/trait.WorkspaceData.html" title="trait parry3d::query::details::WorkspaceData">WorkspaceData</a>&gt;(
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;Self&gt;,
) -&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;<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;, <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;Self&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns an <code>Rc</code>-ed object from an <code>Rc</code>-ed trait object if the underlying object is of
type <code>__T</code>. Returns the original <code>Rc</code>-ed trait if it isnt.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.downcast_ref" class="method"><a class="src rightside" href="../../src/parry3d/query/contact_manifolds/contact_manifolds_workspace.rs.html#84">Source</a><h4 class="code-header">pub fn <a href="#method.downcast_ref" class="fn">downcast_ref</a>&lt;__T: <a class="trait" href="details/trait.WorkspaceData.html" title="trait parry3d::query::details::WorkspaceData">WorkspaceData</a>&gt;(&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;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;__T</a>&gt;</h4></section></summary><div class="docblock"><p>Returns a reference to the object within the trait object if it is of type <code>__T</code>, or
<code>None</code> if it isnt.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.downcast_mut" class="method"><a class="src rightside" href="../../src/parry3d/query/contact_manifolds/contact_manifolds_workspace.rs.html#84">Source</a><h4 class="code-header">pub fn <a href="#method.downcast_mut" class="fn">downcast_mut</a>&lt;__T: <a class="trait" href="details/trait.WorkspaceData.html" title="trait parry3d::query::details::WorkspaceData">WorkspaceData</a>&gt;(&amp;mut 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;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut __T</a>&gt;</h4></section></summary><div class="docblock"><p>Returns a mutable reference to the object within the trait object if it is of type
<code>__T</code>, or <code>None</code> if it isnt.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.downcast_arc" class="method"><a class="src rightside" href="../../src/parry3d/query/contact_manifolds/contact_manifolds_workspace.rs.html#84">Source</a><h4 class="code-header">pub fn <a href="#method.downcast_arc" class="fn">downcast_arc</a>&lt;__T: <a class="trait" href="details/trait.WorkspaceData.html" title="trait parry3d::query::details::WorkspaceData">WorkspaceData</a> + <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>&gt;(
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;Self&gt;,
) -&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;<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;, <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;Self&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns an <code>Arc</code>-ed object from an <code>Arc</code>-ed trait object if the underlying object is of
type <code>__T</code>. Returns the original <code>Arc</code>-ed trait if it isnt.</p>
</div></details></div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../trait.impl/parry3d/query/contact_manifolds/contact_manifolds_workspace/trait.WorkspaceData.js" async></script></section></div></main></body></html>