2023-02-07 18:23:25 +00:00
|
|
|
<pre class="rust item-decl"><code>pub trait ToOwned<T><span class="where fmt-newline">where
|
|
|
|
T: <a class="trait" href="{{channel}}/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</span>{
|
2022-06-19 14:38:10 +00:00
|
|
|
type <a href="#associatedtype.Owned" class="associatedtype">Owned</a>;
|
|
|
|
|
2022-11-26 00:51:50 +00:00
|
|
|
// Required methods
|
2022-11-28 17:21:19 +00:00
|
|
|
fn <a href="#tymethod.to_owned" class="fn">to_owned</a>(&self) -> Self::<a class="associatedtype" href="trait.ToOwned.html#associatedtype.Owned" title="type foo::ToOwned::Owned">Owned</a>;
|
|
|
|
<span class="item-spacer" /> fn <a href="#tymethod.whatever" class="fn">whatever</a>(&self) -> T;
|
2023-01-30 18:05:12 +00:00
|
|
|
}</code></pre>
|