deploy: de38ae62916547ad097c066f94a32e9ba7790eeb

This commit is contained in:
NotAShelf 2025-02-05 00:10:33 +00:00
commit 9a86359447
28502 changed files with 1261284 additions and 0 deletions

1
heck/all.html Normal file
View file

@ -0,0 +1 @@
<!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="List of all items in this crate"><title>List of all items in this crate</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="heck" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../static.files/storage-59e33391.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 mod sys"><!--[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="../heck/index.html">heck</a><span class="version">0.5.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h3><a href="#structs">Crate Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#traits" title="Traits">Traits</a></li></ul></section><div id="rustdoc-modnav"></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><h1>List of all items</h1><h3 id="structs">Structs</h3><ul class="all-items"><li><a href="struct.AsKebabCase.html">AsKebabCase</a></li><li><a href="struct.AsLowerCamelCase.html">AsLowerCamelCase</a></li><li><a href="struct.AsPascalCase.html">AsPascalCase</a></li><li><a href="struct.AsShoutyKebabCase.html">AsShoutyKebabCase</a></li><li><a href="struct.AsShoutySnakeCase.html">AsShoutySnakeCase</a></li><li><a href="struct.AsShoutySnekCase.html">AsShoutySnekCase</a></li><li><a href="struct.AsSnakeCase.html">AsSnakeCase</a></li><li><a href="struct.AsSnekCase.html">AsSnekCase</a></li><li><a href="struct.AsTitleCase.html">AsTitleCase</a></li><li><a href="struct.AsTrainCase.html">AsTrainCase</a></li><li><a href="struct.AsUpperCamelCase.html">AsUpperCamelCase</a></li></ul><h3 id="traits">Traits</h3><ul class="all-items"><li><a href="trait.ToKebabCase.html">ToKebabCase</a></li><li><a href="trait.ToLowerCamelCase.html">ToLowerCamelCase</a></li><li><a href="trait.ToPascalCase.html">ToPascalCase</a></li><li><a href="trait.ToShoutyKebabCase.html">ToShoutyKebabCase</a></li><li><a href="trait.ToShoutySnakeCase.html">ToShoutySnakeCase</a></li><li><a href="trait.ToShoutySnekCase.html">ToShoutySnekCase</a></li><li><a href="trait.ToSnakeCase.html">ToSnakeCase</a></li><li><a href="trait.ToSnekCase.html">ToSnekCase</a></li><li><a href="trait.ToTitleCase.html">ToTitleCase</a></li><li><a href="trait.ToTrainCase.html">ToTrainCase</a></li><li><a href="trait.ToUpperCamelCase.html">ToUpperCamelCase</a></li></ul></section></div></main></body></html>

38
heck/index.html Normal file

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../heck/struct.AsKebabCase.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../heck/struct.AsKebabCase.html">../../heck/struct.AsKebabCase.html</a>...</p>
<script>location.replace("../../heck/struct.AsKebabCase.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../heck/trait.ToKebabCase.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../heck/trait.ToKebabCase.html">../../heck/trait.ToKebabCase.html</a>...</p>
<script>location.replace("../../heck/trait.ToKebabCase.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../heck/struct.AsLowerCamelCase.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../heck/struct.AsLowerCamelCase.html">../../heck/struct.AsLowerCamelCase.html</a>...</p>
<script>location.replace("../../heck/struct.AsLowerCamelCase.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../heck/trait.ToLowerCamelCase.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../heck/trait.ToLowerCamelCase.html">../../heck/trait.ToLowerCamelCase.html</a>...</p>
<script>location.replace("../../heck/trait.ToLowerCamelCase.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../heck/struct.AsShoutyKebabCase.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../heck/struct.AsShoutyKebabCase.html">../../heck/struct.AsShoutyKebabCase.html</a>...</p>
<script>location.replace("../../heck/struct.AsShoutyKebabCase.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../heck/trait.ToShoutyKebabCase.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../heck/trait.ToShoutyKebabCase.html">../../heck/trait.ToShoutyKebabCase.html</a>...</p>
<script>location.replace("../../heck/trait.ToShoutyKebabCase.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../heck/struct.AsShoutySnakeCase.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../heck/struct.AsShoutySnakeCase.html">../../heck/struct.AsShoutySnakeCase.html</a>...</p>
<script>location.replace("../../heck/struct.AsShoutySnakeCase.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../heck/trait.ToShoutySnakeCase.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../heck/trait.ToShoutySnakeCase.html">../../heck/trait.ToShoutySnakeCase.html</a>...</p>
<script>location.replace("../../heck/trait.ToShoutySnakeCase.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../heck/trait.ToShoutySnekCase.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../heck/trait.ToShoutySnekCase.html">../../heck/trait.ToShoutySnekCase.html</a>...</p>
<script>location.replace("../../heck/trait.ToShoutySnekCase.html" + location.search + location.hash);</script>
</body>
</html>

1
heck/sidebar-items.js Normal file
View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"struct":["AsKebabCase","AsLowerCamelCase","AsPascalCase","AsShoutyKebabCase","AsShoutySnakeCase","AsShoutySnekCase","AsSnakeCase","AsSnekCase","AsTitleCase","AsTrainCase","AsUpperCamelCase"],"trait":["ToKebabCase","ToLowerCamelCase","ToPascalCase","ToShoutyKebabCase","ToShoutySnakeCase","ToShoutySnekCase","ToSnakeCase","ToSnekCase","ToTitleCase","ToTrainCase","ToUpperCamelCase"]};

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../heck/struct.AsSnakeCase.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../heck/struct.AsSnakeCase.html">../../heck/struct.AsSnakeCase.html</a>...</p>
<script>location.replace("../../heck/struct.AsSnakeCase.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../heck/trait.ToSnakeCase.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../heck/trait.ToSnakeCase.html">../../heck/trait.ToSnakeCase.html</a>...</p>
<script>location.replace("../../heck/trait.ToSnakeCase.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../heck/trait.ToSnekCase.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../heck/trait.ToSnekCase.html">../../heck/trait.ToSnekCase.html</a>...</p>
<script>location.replace("../../heck/trait.ToSnekCase.html" + location.search + location.hash);</script>
</body>
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../heck/struct.AsTitleCase.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../heck/struct.AsTitleCase.html">../../heck/struct.AsTitleCase.html</a>...</p>
<script>location.replace("../../heck/struct.AsTitleCase.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../heck/trait.ToTitleCase.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../heck/trait.ToTitleCase.html">../../heck/trait.ToTitleCase.html</a>...</p>
<script>location.replace("../../heck/trait.ToTitleCase.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../heck/struct.AsTrainCase.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../heck/struct.AsTrainCase.html">../../heck/struct.AsTrainCase.html</a>...</p>
<script>location.replace("../../heck/struct.AsTrainCase.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../heck/trait.ToTrainCase.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../heck/trait.ToTrainCase.html">../../heck/trait.ToTrainCase.html</a>...</p>
<script>location.replace("../../heck/trait.ToTrainCase.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,12 @@
<!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="This trait defines a kebab case conversion."><title>ToKebabCase in heck - 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="heck" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" 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="../heck/index.html">heck</a><span class="version">0.5.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">ToKebab<wbr>Case</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example:">Example:</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.to_kebab_case" title="to_kebab_case">to_kebab_case</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-ToKebabCase-for-str" title="str">str</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate heck</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">heck</a></span><h1>Trait <span class="trait">ToKebabCase</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/heck/kebab.rs.html#19-22">Source</a> </span></div><pre class="rust item-decl"><code>pub trait ToKebabCase: <a class="trait" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> {
// Required method
fn <a href="#tymethod.to_kebab_case" class="fn">to_kebab_case</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a>;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>This trait defines a kebab case conversion.</p>
<p>In kebab-case, word boundaries are indicated by hyphens.</p>
<h3 id="example"><a class="doc-anchor" href="#example">§</a>Example:</h3>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>heck::ToKebabCase;
<span class="kw">let </span>sentence = <span class="string">"We are going to inherit the earth."</span>;
<span class="macro">assert_eq!</span>(sentence.to_kebab_case(), <span class="string">"we-are-going-to-inherit-the-earth"</span>);</code></pre></div>
</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.to_kebab_case" class="method"><a class="src rightside" href="../src/heck/kebab.rs.html#21">Source</a><h4 class="code-header">fn <a href="#tymethod.to_kebab_case" class="fn">to_kebab_case</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a></h4></section></summary><div class="docblock"><p>Convert this type to kebab case.</p>
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/1.84.1/reference/items/traits.html#object-safety">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-ToKebabCase-for-str" class="impl"><a class="src rightside" href="../src/heck/kebab.rs.html#24-28">Source</a><a href="#impl-ToKebabCase-for-str" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToKebabCase.html" title="trait heck::ToKebabCase">ToKebabCase</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.1/core/primitive.str.html">str</a></h3></section></summary><div class="impl-items"><section id="method.to_kebab_case" class="method trait-impl"><a class="src rightside" href="../src/heck/kebab.rs.html#25-27">Source</a><a href="#method.to_kebab_case" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.to_kebab_case" class="fn">to_kebab_case</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../trait.impl/heck/kebab/trait.ToKebabCase.js" data-ignore-extern-crates="core" async></script></section></div></main></body></html>

View file

@ -0,0 +1,13 @@
<!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="This trait defines a lower camel case conversion."><title>ToLowerCamelCase in heck - 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="heck" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" 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="../heck/index.html">heck</a><span class="version">0.5.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">ToLower<wbr>Camel<wbr>Case</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example:">Example:</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.to_lower_camel_case" title="to_lower_camel_case">to_lower_camel_case</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-ToLowerCamelCase-for-str" title="str">str</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate heck</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">heck</a></span><h1>Trait <span class="trait">ToLowerCamelCase</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/heck/lower_camel.rs.html#23-26">Source</a> </span></div><pre class="rust item-decl"><code>pub trait ToLowerCamelCase: <a class="trait" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> {
// Required method
fn <a href="#tymethod.to_lower_camel_case" class="fn">to_lower_camel_case</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a>;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>This trait defines a lower camel case conversion.</p>
<p>In lowerCamelCase, word boundaries are indicated by capital letters,
excepting the first word.</p>
<h3 id="example"><a class="doc-anchor" href="#example">§</a>Example:</h3>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>heck::ToLowerCamelCase;
<span class="kw">let </span>sentence = <span class="string">"It is we who built these palaces and cities."</span>;
<span class="macro">assert_eq!</span>(sentence.to_lower_camel_case(), <span class="string">"itIsWeWhoBuiltThesePalacesAndCities"</span>);</code></pre></div>
</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.to_lower_camel_case" class="method"><a class="src rightside" href="../src/heck/lower_camel.rs.html#25">Source</a><h4 class="code-header">fn <a href="#tymethod.to_lower_camel_case" class="fn">to_lower_camel_case</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a></h4></section></summary><div class="docblock"><p>Convert this type to lower camel case.</p>
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/1.84.1/reference/items/traits.html#object-safety">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-ToLowerCamelCase-for-str" class="impl"><a class="src rightside" href="../src/heck/lower_camel.rs.html#28-32">Source</a><a href="#impl-ToLowerCamelCase-for-str" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToLowerCamelCase.html" title="trait heck::ToLowerCamelCase">ToLowerCamelCase</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.1/core/primitive.str.html">str</a></h3></section></summary><div class="impl-items"><section id="method.to_lower_camel_case" class="method trait-impl"><a class="src rightside" href="../src/heck/lower_camel.rs.html#29-31">Source</a><a href="#method.to_lower_camel_case" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.to_lower_camel_case" class="fn">to_lower_camel_case</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.84.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../trait.impl/heck/lower_camel/trait.ToLowerCamelCase.js" data-ignore-extern-crates="core" async></script></section></div></main></body></html>

View file

@ -0,0 +1,7 @@
<!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="`ToPascalCase` is an alias for `ToUpperCamelCase`. See ToUpperCamelCase for more documentation."><title>ToPascalCase in heck - 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="heck" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" 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="../heck/index.html">heck</a><span class="version">0.5.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">ToPascal<wbr>Case</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.to_pascal_case" title="to_pascal_case">to_pascal_case</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate heck</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">heck</a></span><h1>Trait <span class="trait">ToPascalCase</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/heck/upper_camel.rs.html#36-39">Source</a> </span></div><pre class="rust item-decl"><code>pub trait ToPascalCase: <a class="trait" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> {
// Required method
fn <a href="#tymethod.to_pascal_case" class="fn">to_pascal_case</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a>;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p><code>ToPascalCase</code> is an alias for <a href="trait.ToUpperCamelCase.html" title="trait heck::ToUpperCamelCase"><code>ToUpperCamelCase</code></a>. See ToUpperCamelCase for more
documentation.</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.to_pascal_case" class="method"><a class="src rightside" href="../src/heck/upper_camel.rs.html#38">Source</a><h4 class="code-header">fn <a href="#tymethod.to_pascal_case" class="fn">to_pascal_case</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a></h4></section></summary><div class="docblock"><p>Convert this type to upper camel case.</p>
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/1.84.1/reference/items/traits.html#object-safety">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-ToPascalCase-for-T" class="impl"><a class="src rightside" href="../src/heck/upper_camel.rs.html#41-45">Source</a><a href="#impl-ToPascalCase-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="trait.ToUpperCamelCase.html" title="trait heck::ToUpperCamelCase">ToUpperCamelCase</a>&gt; <a class="trait" href="trait.ToPascalCase.html" title="trait heck::ToPascalCase">ToPascalCase</a> for T</h3></section></div><script src="../trait.impl/heck/upper_camel/trait.ToPascalCase.js" async></script></section></div></main></body></html>

View file

@ -0,0 +1,13 @@
<!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="This trait defines a shouty kebab case conversion."><title>ToShoutyKebabCase in heck - 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="heck" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" 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="../heck/index.html">heck</a><span class="version">0.5.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">ToShouty<wbr>Kebab<wbr>Case</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example:">Example:</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.to_shouty_kebab_case" title="to_shouty_kebab_case">to_shouty_kebab_case</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-ToShoutyKebabCase-for-str" title="str">str</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate heck</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">heck</a></span><h1>Trait <span class="trait">ToShoutyKebabCase</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/heck/shouty_kebab.rs.html#20-23">Source</a> </span></div><pre class="rust item-decl"><code>pub trait ToShoutyKebabCase: <a class="trait" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> {
// Required method
fn <a href="#tymethod.to_shouty_kebab_case" class="fn">to_shouty_kebab_case</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a>;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>This trait defines a shouty kebab case conversion.</p>
<p>In SHOUTY-KEBAB-CASE, word boundaries are indicated by hyphens and all
words are in uppercase.</p>
<h3 id="example"><a class="doc-anchor" href="#example">§</a>Example:</h3>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>heck::ToShoutyKebabCase;
<span class="kw">let </span>sentence = <span class="string">"We are going to inherit the earth."</span>;
<span class="macro">assert_eq!</span>(sentence.to_shouty_kebab_case(), <span class="string">"WE-ARE-GOING-TO-INHERIT-THE-EARTH"</span>);</code></pre></div>
</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.to_shouty_kebab_case" class="method"><a class="src rightside" href="../src/heck/shouty_kebab.rs.html#22">Source</a><h4 class="code-header">fn <a href="#tymethod.to_shouty_kebab_case" class="fn">to_shouty_kebab_case</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a></h4></section></summary><div class="docblock"><p>Convert this type to shouty kebab case.</p>
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/1.84.1/reference/items/traits.html#object-safety">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-ToShoutyKebabCase-for-str" class="impl"><a class="src rightside" href="../src/heck/shouty_kebab.rs.html#25-29">Source</a><a href="#impl-ToShoutyKebabCase-for-str" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToShoutyKebabCase.html" title="trait heck::ToShoutyKebabCase">ToShoutyKebabCase</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.1/core/primitive.str.html">str</a></h3></section></summary><div class="impl-items"><section id="method.to_shouty_kebab_case" class="method trait-impl"><a class="src rightside" href="../src/heck/shouty_kebab.rs.html#26-28">Source</a><a href="#method.to_shouty_kebab_case" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.to_shouty_kebab_case" class="fn">to_shouty_kebab_case</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../trait.impl/heck/shouty_kebab/trait.ToShoutyKebabCase.js" data-ignore-extern-crates="core" async></script></section></div></main></body></html>

View file

@ -0,0 +1,13 @@
<!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="This trait defines a shouty snake case conversion."><title>ToShoutySnakeCase in heck - 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="heck" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" 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="../heck/index.html">heck</a><span class="version">0.5.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">ToShouty<wbr>Snake<wbr>Case</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example:">Example:</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.to_shouty_snake_case" title="to_shouty_snake_case">to_shouty_snake_case</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-ToShoutySnakeCase-for-str" title="str">str</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate heck</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">heck</a></span><h1>Trait <span class="trait">ToShoutySnakeCase</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/heck/shouty_snake.rs.html#20-23">Source</a> </span></div><pre class="rust item-decl"><code>pub trait ToShoutySnakeCase: <a class="trait" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> {
// Required method
fn <a href="#tymethod.to_shouty_snake_case" class="fn">to_shouty_snake_case</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a>;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>This trait defines a shouty snake case conversion.</p>
<p>In SHOUTY_SNAKE_CASE, word boundaries are indicated by underscores and all
words are in uppercase.</p>
<h3 id="example"><a class="doc-anchor" href="#example">§</a>Example:</h3>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>heck::ToShoutySnakeCase;
<span class="kw">let </span>sentence = <span class="string">"That world is growing in this minute."</span>;
<span class="macro">assert_eq!</span>(sentence.to_shouty_snake_case(), <span class="string">"THAT_WORLD_IS_GROWING_IN_THIS_MINUTE"</span>);</code></pre></div>
</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.to_shouty_snake_case" class="method"><a class="src rightside" href="../src/heck/shouty_snake.rs.html#22">Source</a><h4 class="code-header">fn <a href="#tymethod.to_shouty_snake_case" class="fn">to_shouty_snake_case</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a></h4></section></summary><div class="docblock"><p>Convert this type to shouty snake case.</p>
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/1.84.1/reference/items/traits.html#object-safety">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-ToShoutySnakeCase-for-str" class="impl"><a class="src rightside" href="../src/heck/shouty_snake.rs.html#39-43">Source</a><a href="#impl-ToShoutySnakeCase-for-str" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToShoutySnakeCase.html" title="trait heck::ToShoutySnakeCase">ToShoutySnakeCase</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.1/core/primitive.str.html">str</a></h3></section></summary><div class="impl-items"><section id="method.to_shouty_snake_case" class="method trait-impl"><a class="src rightside" href="../src/heck/shouty_snake.rs.html#40-42">Source</a><a href="#method.to_shouty_snake_case" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.to_shouty_snake_case" class="fn">to_shouty_snake_case</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../trait.impl/heck/shouty_snake/trait.ToShoutySnakeCase.js" data-ignore-extern-crates="core" async></script></section></div></main></body></html>

View file

@ -0,0 +1,7 @@
<!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="Oh heck, `ToShoutySnekCase` is an alias for `ToShoutySnakeCase`. See ToShoutySnakeCase for more documentation."><title>ToShoutySnekCase in heck - 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="heck" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" 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="../heck/index.html">heck</a><span class="version">0.5.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">ToShouty<wbr>Snek<wbr>Case</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.TO_SHOUTY_SNEK_CASE" title="TO_SHOUTY_SNEK_CASE">TO_SHOUTY_SNEK_CASE</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate heck</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">heck</a></span><h1>Trait <span class="trait">ToShoutySnekCase</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/heck/shouty_snake.rs.html#27-31">Source</a> </span></div><pre class="rust item-decl"><code>pub trait ToShoutySnekCase: <a class="trait" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> {
// Required method
fn <a href="#tymethod.TO_SHOUTY_SNEK_CASE" class="fn">TO_SHOUTY_SNEK_CASE</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a>;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Oh heck, <code>ToShoutySnekCase</code> is an alias for <a href="trait.ToShoutySnakeCase.html" title="trait heck::ToShoutySnakeCase"><code>ToShoutySnakeCase</code></a>. See
ToShoutySnakeCase for more documentation.</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.TO_SHOUTY_SNEK_CASE" class="method"><a class="src rightside" href="../src/heck/shouty_snake.rs.html#30">Source</a><h4 class="code-header">fn <a href="#tymethod.TO_SHOUTY_SNEK_CASE" class="fn">TO_SHOUTY_SNEK_CASE</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a></h4></section></summary><div class="docblock"><p>CONVERT THIS TYPE TO SNEK CASE.</p>
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/1.84.1/reference/items/traits.html#object-safety">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-ToShoutySnekCase-for-T" class="impl"><a class="src rightside" href="../src/heck/shouty_snake.rs.html#33-37">Source</a><a href="#impl-ToShoutySnekCase-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="trait.ToShoutySnakeCase.html" title="trait heck::ToShoutySnakeCase">ToShoutySnakeCase</a>&gt; <a class="trait" href="trait.ToShoutySnekCase.html" title="trait heck::ToShoutySnekCase">ToShoutySnekCase</a> for T</h3></section></div><script src="../trait.impl/heck/shouty_snake/trait.ToShoutySnekCase.js" async></script></section></div></main></body></html>

View file

@ -0,0 +1,12 @@
<!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="This trait defines a snake case conversion."><title>ToSnakeCase in heck - 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="heck" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" 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="../heck/index.html">heck</a><span class="version">0.5.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">ToSnake<wbr>Case</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example:">Example:</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.to_snake_case" title="to_snake_case">to_snake_case</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-ToSnakeCase-for-str" title="str">str</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate heck</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">heck</a></span><h1>Trait <span class="trait">ToSnakeCase</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/heck/snake.rs.html#21-24">Source</a> </span></div><pre class="rust item-decl"><code>pub trait ToSnakeCase: <a class="trait" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> {
// Required method
fn <a href="#tymethod.to_snake_case" class="fn">to_snake_case</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a>;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>This trait defines a snake case conversion.</p>
<p>In snake_case, word boundaries are indicated by underscores.</p>
<h3 id="example"><a class="doc-anchor" href="#example">§</a>Example:</h3>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>heck::ToSnakeCase;
<span class="kw">let </span>sentence = <span class="string">"We carry a new world here, in our hearts."</span>;
<span class="macro">assert_eq!</span>(sentence.to_snake_case(), <span class="string">"we_carry_a_new_world_here_in_our_hearts"</span>);</code></pre></div>
</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.to_snake_case" class="method"><a class="src rightside" href="../src/heck/snake.rs.html#23">Source</a><h4 class="code-header">fn <a href="#tymethod.to_snake_case" class="fn">to_snake_case</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a></h4></section></summary><div class="docblock"><p>Convert this type to snake case.</p>
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/1.84.1/reference/items/traits.html#object-safety">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-ToSnakeCase-for-str" class="impl"><a class="src rightside" href="../src/heck/snake.rs.html#39-43">Source</a><a href="#impl-ToSnakeCase-for-str" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToSnakeCase.html" title="trait heck::ToSnakeCase">ToSnakeCase</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.1/core/primitive.str.html">str</a></h3></section></summary><div class="impl-items"><section id="method.to_snake_case" class="method trait-impl"><a class="src rightside" href="../src/heck/snake.rs.html#40-42">Source</a><a href="#method.to_snake_case" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.to_snake_case" class="fn">to_snake_case</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.84.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../trait.impl/heck/snake/trait.ToSnakeCase.js" data-ignore-extern-crates="core" async></script></section></div></main></body></html>

View file

@ -0,0 +1,7 @@
<!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="Oh heck, `SnekCase` is an alias for `ToSnakeCase`. See ToSnakeCase for more documentation."><title>ToSnekCase in heck - 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="heck" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" 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="../heck/index.html">heck</a><span class="version">0.5.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">ToSnek<wbr>Case</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.to_snek_case" title="to_snek_case">to_snek_case</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate heck</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">heck</a></span><h1>Trait <span class="trait">ToSnekCase</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/heck/snake.rs.html#28-31">Source</a> </span></div><pre class="rust item-decl"><code>pub trait ToSnekCase: <a class="trait" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> {
// Required method
fn <a href="#tymethod.to_snek_case" class="fn">to_snek_case</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a>;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Oh heck, <code>SnekCase</code> is an alias for <a href="trait.ToSnakeCase.html" title="trait heck::ToSnakeCase"><code>ToSnakeCase</code></a>. See ToSnakeCase for
more documentation.</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.to_snek_case" class="method"><a class="src rightside" href="../src/heck/snake.rs.html#30">Source</a><h4 class="code-header">fn <a href="#tymethod.to_snek_case" class="fn">to_snek_case</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a></h4></section></summary><div class="docblock"><p>Convert this type to snek case.</p>
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/1.84.1/reference/items/traits.html#object-safety">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-ToSnekCase-for-T" class="impl"><a class="src rightside" href="../src/heck/snake.rs.html#33-37">Source</a><a href="#impl-ToSnekCase-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="trait.ToSnakeCase.html" title="trait heck::ToSnakeCase">ToSnakeCase</a>&gt; <a class="trait" href="trait.ToSnekCase.html" title="trait heck::ToSnekCase">ToSnekCase</a> for T</h3></section></div><script src="../trait.impl/heck/snake/trait.ToSnekCase.js" async></script></section></div></main></body></html>

View file

@ -0,0 +1,13 @@
<!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="This trait defines a title case conversion."><title>ToTitleCase in heck - 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="heck" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" 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="../heck/index.html">heck</a><span class="version">0.5.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">ToTitle<wbr>Case</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example:">Example:</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.to_title_case" title="to_title_case">to_title_case</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-ToTitleCase-for-str" title="str">str</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate heck</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">heck</a></span><h1>Trait <span class="trait">ToTitleCase</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/heck/title.rs.html#23-26">Source</a> </span></div><pre class="rust item-decl"><code>pub trait ToTitleCase: <a class="trait" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> {
// Required method
fn <a href="#tymethod.to_title_case" class="fn">to_title_case</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a>;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>This trait defines a title case conversion.</p>
<p>In Title Case, word boundaries are indicated by spaces, and every word is
capitalized.</p>
<h3 id="example"><a class="doc-anchor" href="#example">§</a>Example:</h3>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>heck::ToTitleCase;
<span class="kw">let </span>sentence = <span class="string">"We have always lived in slums and holes in the wall."</span>;
<span class="macro">assert_eq!</span>(sentence.to_title_case(), <span class="string">"We Have Always Lived In Slums And Holes In The Wall"</span>);</code></pre></div>
</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.to_title_case" class="method"><a class="src rightside" href="../src/heck/title.rs.html#25">Source</a><h4 class="code-header">fn <a href="#tymethod.to_title_case" class="fn">to_title_case</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a></h4></section></summary><div class="docblock"><p>Convert this type to title case.</p>
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/1.84.1/reference/items/traits.html#object-safety">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-ToTitleCase-for-str" class="impl"><a class="src rightside" href="../src/heck/title.rs.html#28-32">Source</a><a href="#impl-ToTitleCase-for-str" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToTitleCase.html" title="trait heck::ToTitleCase">ToTitleCase</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.1/core/primitive.str.html">str</a></h3></section></summary><div class="impl-items"><section id="method.to_title_case" class="method trait-impl"><a class="src rightside" href="../src/heck/title.rs.html#29-31">Source</a><a href="#method.to_title_case" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.to_title_case" class="fn">to_title_case</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.84.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../trait.impl/heck/title/trait.ToTitleCase.js" data-ignore-extern-crates="core" async></script></section></div></main></body></html>

View file

@ -0,0 +1,13 @@
<!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="This trait defines a train case conversion."><title>ToTrainCase in heck - 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="heck" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" 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="../heck/index.html">heck</a><span class="version">0.5.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">ToTrain<wbr>Case</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example:">Example:</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.to_train_case" title="to_train_case">to_train_case</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-ToTrainCase-for-str" title="str">str</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate heck</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">heck</a></span><h1>Trait <span class="trait">ToTrainCase</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/heck/train.rs.html#20-23">Source</a> </span></div><pre class="rust item-decl"><code>pub trait ToTrainCase: <a class="trait" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> {
// Required method
fn <a href="#tymethod.to_train_case" class="fn">to_train_case</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a>;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>This trait defines a train case conversion.</p>
<p>In Train-Case, word boundaries are indicated by hyphens and words start
with Capital Letters.</p>
<h3 id="example"><a class="doc-anchor" href="#example">§</a>Example:</h3>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>heck::ToTrainCase;
<span class="kw">let </span>sentence = <span class="string">"We are going to inherit the earth."</span>;
<span class="macro">assert_eq!</span>(sentence.to_train_case(), <span class="string">"We-Are-Going-To-Inherit-The-Earth"</span>);</code></pre></div>
</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.to_train_case" class="method"><a class="src rightside" href="../src/heck/train.rs.html#22">Source</a><h4 class="code-header">fn <a href="#tymethod.to_train_case" class="fn">to_train_case</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a></h4></section></summary><div class="docblock"><p>Convert this type to Train-Case.</p>
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/1.84.1/reference/items/traits.html#object-safety">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-ToTrainCase-for-str" class="impl"><a class="src rightside" href="../src/heck/train.rs.html#25-29">Source</a><a href="#impl-ToTrainCase-for-str" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToTrainCase.html" title="trait heck::ToTrainCase">ToTrainCase</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.1/core/primitive.str.html">str</a></h3></section></summary><div class="impl-items"><section id="method.to_train_case" class="method trait-impl"><a class="src rightside" href="../src/heck/train.rs.html#26-28">Source</a><a href="#method.to_train_case" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.to_train_case" class="fn">to_train_case</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../trait.impl/heck/train/trait.ToTrainCase.js" data-ignore-extern-crates="core" async></script></section></div></main></body></html>

View file

@ -0,0 +1,13 @@
<!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="This trait defines an upper camel case conversion."><title>ToUpperCamelCase in heck - 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="heck" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" 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="../heck/index.html">heck</a><span class="version">0.5.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">ToUpper<wbr>Camel<wbr>Case</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example:">Example:</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.to_upper_camel_case" title="to_upper_camel_case">to_upper_camel_case</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-ToUpperCamelCase-for-str" title="str">str</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate heck</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">heck</a></span><h1>Trait <span class="trait">ToUpperCamelCase</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/heck/upper_camel.rs.html#23-26">Source</a> </span></div><pre class="rust item-decl"><code>pub trait ToUpperCamelCase: <a class="trait" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> {
// Required method
fn <a href="#tymethod.to_upper_camel_case" class="fn">to_upper_camel_case</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a>;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>This trait defines an upper camel case conversion.</p>
<p>In UpperCamelCase, word boundaries are indicated by capital letters,
including the first word.</p>
<h3 id="example"><a class="doc-anchor" href="#example">§</a>Example:</h3>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>heck::ToUpperCamelCase;
<span class="kw">let </span>sentence = <span class="string">"We are not in the least afraid of ruins."</span>;
<span class="macro">assert_eq!</span>(sentence.to_upper_camel_case(), <span class="string">"WeAreNotInTheLeastAfraidOfRuins"</span>);</code></pre></div>
</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.to_upper_camel_case" class="method"><a class="src rightside" href="../src/heck/upper_camel.rs.html#25">Source</a><h4 class="code-header">fn <a href="#tymethod.to_upper_camel_case" class="fn">to_upper_camel_case</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a></h4></section></summary><div class="docblock"><p>Convert this type to upper camel case.</p>
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/1.84.1/reference/items/traits.html#object-safety">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-ToUpperCamelCase-for-str" class="impl"><a class="src rightside" href="../src/heck/upper_camel.rs.html#28-32">Source</a><a href="#impl-ToUpperCamelCase-for-str" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ToUpperCamelCase.html" title="trait heck::ToUpperCamelCase">ToUpperCamelCase</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.1/core/primitive.str.html">str</a></h3></section></summary><div class="impl-items"><section id="method.to_upper_camel_case" class="method trait-impl"><a class="src rightside" href="../src/heck/upper_camel.rs.html#29-31">Source</a><a href="#method.to_upper_camel_case" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.to_upper_camel_case" class="fn">to_upper_camel_case</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.84.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../trait.impl/heck/upper_camel/trait.ToUpperCamelCase.js" data-ignore-extern-crates="core" async></script></section></div></main></body></html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../heck/struct.AsUpperCamelCase.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../heck/struct.AsUpperCamelCase.html">../../heck/struct.AsUpperCamelCase.html</a>...</p>
<script>location.replace("../../heck/struct.AsUpperCamelCase.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../heck/trait.ToPascalCase.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../heck/trait.ToPascalCase.html">../../heck/trait.ToPascalCase.html</a>...</p>
<script>location.replace("../../heck/trait.ToPascalCase.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../heck/trait.ToUpperCamelCase.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../heck/trait.ToUpperCamelCase.html">../../heck/trait.ToUpperCamelCase.html</a>...</p>
<script>location.replace("../../heck/trait.ToUpperCamelCase.html" + location.search + location.hash);</script>
</body>
</html>