mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
7230f6c5c5
This is about equally readable, a lot more terse, and stops special-casing functions and methods. ```console $ du -hs doc-old/ doc-new/ 671M doc-old/ 670M doc-new/ ```
8 lines
629 B
HTML
8 lines
629 B
HTML
<pre class="rust item-decl"><code>pub trait ToOwned<T><div class="where">where
|
|
T: <a class="trait" href="{{channel}}/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div>{
|
|
type <a href="#associatedtype.Owned" class="associatedtype">Owned</a>;
|
|
|
|
// Required methods
|
|
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;
|
|
}</code></pre> |