}</code></pre><detailsclass="toggle top-doc"open><summaryclass="hideme"><span>Expand description</span></summary><divclass="docblock"><p>This trait defines a title case conversion.</p>
<p>In Title Case, word boundaries are indicated by spaces, and every word is
<spanclass="kw">let </span>sentence = <spanclass="string">"We have always lived in slums and holes in the wall."</span>;
<spanclass="macro">assert_eq!</span>(sentence.to_title_case(), <spanclass="string">"We Have Always Lived In Slums And Holes In The Wall"</span>);</code></pre></div>
</div></details><h2id="required-methods"class="section-header">Required Methods<ahref="#required-methods"class="anchor">§</a></h2><divclass="methods"><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.to_title_case"class="method"><aclass="src rightside"href="../src/heck/title.rs.html#25">source</a><h4class="code-header">fn <ahref="#tymethod.to_title_case"class="fn">to_title_case</a>(&self) -> Self::<aclass="associatedtype"href="https://doc.rust-lang.org/1.80.0/alloc/borrow/trait.ToOwned.html#associatedtype.Owned"title="type alloc::borrow::ToOwned::Owned">Owned</a></h4></section></summary><divclass="docblock"><p>Convert this type to title case.</p>
</div></details></div><h2id="object-safety"class="section-header">Object Safety<ahref="#object-safety"class="anchor">§</a></h2><divclass="object-safety-info">This trait is <b>not</b><ahref="https://doc.rust-lang.org/1.80.0/reference/items/traits.html#object-safety">object safe</a>.</div><h2id="foreign-impls"class="section-header">Implementations on Foreign Types<ahref="#foreign-impls"class="anchor">§</a></h2><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-ToTitleCase-for-str"class="impl"><aclass="src rightside"href="../src/heck/title.rs.html#28-32">source</a><ahref="#impl-ToTitleCase-for-str"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="trait.ToTitleCase.html"title="trait heck::ToTitleCase">ToTitleCase</a> for <aclass="primitive"href="https://doc.rust-lang.org/1.80.0/core/primitive.str.html">str</a></h3></section></summary><divclass="impl-items"><sectionid="method.to_title_case"class="method trait-impl"><aclass="src rightside"href="../src/heck/title.rs.html#29-31">source</a><ahref="#method.to_title_case"class="anchor">§</a><h4class="code-header">fn <ahref="#tymethod.to_title_case"class="fn">to_title_case</a>(&self) -><aclass="struct"href="https://doc.rust-lang.org/1.80.0/alloc/string/struct.String.html"title="struct alloc::string::String">String</a></h4></section></div></details><h2id="implementors"class="section-header">Implementors<ahref="#implementors"class="anchor">§</a></h2><divid="implementors-list"></div><scriptsrc="../trait.impl/heck/title/trait.ToTitleCase.js"data-ignore-extern-crates="core"async></script></section></div></main></body></html>