<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="generator"content="rustdoc"><metaname="description"content="Unicode character composition and decomposition utilities as described in Unicode Standard Annex #15."><title>unicode_normalization - Rust</title><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><linkrel="stylesheet"href="../static.files/normalize-76eba96aa4d2e634.css"><linkrel="stylesheet"href="../static.files/rustdoc-5bc39a1768837dd0.css"><metaname="rustdoc-vars"data-root-path="../"data-static-root-path="../static.files/"data-current-crate="unicode_normalization"data-themes=""data-resource-suffix=""data-rustdoc-version="1.77.2 (25ef9e3d8 2024-04-09)"data-channel="1.77.2"data-search-js="search-dd67cee4cfa65049.js"data-settings-js="settings-4313503d2e1961c2.js"><scriptsrc="../static.files/storage-4c98445ec4002617.js"></script><scriptdefersrc="../crates.js"></script><scriptdefersrc="../static.files/main-48f368f3872407c8.js"></script><noscript><linkrel="stylesheet"href="../static.files/noscript-04d5337699b92874.css"></noscript><linkrel="icon"href="https://unicode-rs.github.io/unicode-rs_sm.png"></head><bodyclass="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="mobile-topbar"><buttonclass="sidebar-menu-toggle"title="show sidebar"></button><aclass="logo-container"href="../unicode_normalization/index.html"><imgsrc="https://unicode-rs.github.io/unicode-rs_sm.png"alt=""></a></nav><navclass="sidebar"><divclass="sidebar-crate"><aclass="logo-container"href="../unicode_normalization/index.html"><imgsrc="https://unicode-rs.github.io/unicode-rs_sm.png"alt="logo"></a><h2><ahref="../unicode_normalization/index.html">unicode_normalization</a><spanclass="version">0.1.23</span></h2></div><divclass="sidebar-elems"><ulclass="block">
<main><divclass="width-limiter"><navclass="sub"><formclass="search-form"><span></span><divid="sidebar-button"tabindex="-1"><ahref="../unicode_normalization/all.html"title="show sidebar"></a></div><inputclass="search-input"name="search"aria-label="Run search in the documentation"autocomplete="off"spellcheck="false"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"><divid="help-button"tabindex="-1"><ahref="../help.html"title="help">?</a></div><divid="settings-menu"tabindex="-1"><ahref="../settings.html"title="settings"><imgwidth="22"height="22"alt="Change settings"src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><sectionid="main-content"class="content"><divclass="main-heading"><h1>Crate <aclass="mod"href="#">unicode_normalization</a><buttonid="copy-path"title="Copy item path to clipboard"><imgsrc="../static.files/clipboard-7571035ce49a181d.svg"width="19"height="18"alt="Copy item path"></button></h1><spanclass="out-of-band"><aclass="src"href="../src/unicode_normalization/lib.rs.html#11-235">source</a> · <buttonid="toggle-all-docs"title="collapse all docs">[<span>−</span>]</button></span></div><detailsclass="toggle top-doc"open><summaryclass="hideme"><span>Expand description</span></summary><divclass="docblock"><p>Unicode character composition and decomposition utilities
as described in
<ahref="http://www.unicode.org/reports/tr15/">Unicode Standard Annex #15</a>.</p>
</code></pre></div></div></details><h2id="modules"class="section-header">Modules<ahref="#modules"class="anchor">§</a></h2><ulclass="item-table"><li><divclass="item-name"><aclass="mod"href="char/index.html"title="mod unicode_normalization::char">char</a></div><divclass="desc docblock-short">Methods for composing and decomposing characters.</div></li></ul><h2id="structs"class="section-header">Structs<ahref="#structs"class="anchor">§</a></h2><ulclass="item-table"><li><divclass="item-name"><aclass="struct"href="struct.Decompositions.html"title="struct unicode_normalization::Decompositions">Decompositions</a></div><divclass="desc docblock-short">External iterator for a string decomposition’s characters.</div></li><li><divclass="item-name"><aclass="struct"href="struct.Recompositions.html"title="struct unicode_normalization::Recompositions">Recompositions</a></div><divclass="desc docblock-short">External iterator for a string recomposition’s characters.</div></li><li><divclass="item-name"><aclass="struct"href="struct.Replacements.html"title="struct unicode_normalization::Replacements">Replacements</a></div><divclass="desc docblock-short">External iterator for replacements for a string’s characters.</div></li><li><divclass="item-name"><aclass="struct"href="struct.StreamSafe.html"title="struct unicode_normalization::StreamSafe">StreamSafe</a></div><divclass="desc docblock-short">UAX15-D4: This iterator keeps track of how many non-starters there have been
(U+034F) if the count exceeds 30.</div></li></ul><h2id="enums"class="section-header">Enums<ahref="#enums"class="anchor">§</a></h2><ulclass="item-table"><li><divclass="item-name"><aclass="enum"href="enum.IsNormalized.html"title="enum unicode_normalization::IsNormalized">IsNormalized</a></div><divclass="desc docblock-short">The QuickCheck algorithm can quickly determine if a text is or isn’t
return <code>Maybe</code> when a full decomposition and recomposition is necessary.</div></li></ul><h2id="constants"class="section-header">Constants<ahref="#constants"class="anchor">§</a></h2><ulclass="item-table"><li><divclass="item-name"><aclass="constant"href="constant.UNICODE_VERSION.html"title="constant unicode_normalization::UNICODE_VERSION">UNICODE_VERSION</a></div></li></ul><h2id="traits"class="section-header">Traits<ahref="#traits"class="anchor">§</a></h2><ulclass="item-table"><li><divclass="item-name"><aclass="trait"href="trait.UnicodeNormalization.html"title="trait unicode_normalization::UnicodeNormalization">UnicodeNormalization</a></div><divclass="desc docblock-short">Methods for iterating over strings while applying Unicode normalizations
<ahref="http://www.unicode.org/reports/tr15/">Unicode Standard Annex #15</a>.</div></li></ul><h2id="functions"class="section-header">Functions<ahref="#functions"class="anchor">§</a></h2><ulclass="item-table"><li><divclass="item-name"><aclass="fn"href="fn.is_nfc.html"title="fn unicode_normalization::is_nfc">is_nfc</a></div><divclass="desc docblock-short">Authoritatively check if a string is in NFC.</div></li><li><divclass="item-name"><aclass="fn"href="fn.is_nfc_quick.html"title="fn unicode_normalization::is_nfc_quick">is_nfc_quick</a></div><divclass="desc docblock-short">Quickly check if a string is in NFC, potentially returning
<code>IsNormalized::Maybe</code> if further checks are necessary. In this case a check
like <code>s.chars().nfc().eq(s.chars())</code> should suffice.</div></li><li><divclass="item-name"><aclass="fn"href="fn.is_nfc_stream_safe.html"title="fn unicode_normalization::is_nfc_stream_safe">is_nfc_stream_safe</a></div><divclass="desc docblock-short">Authoritatively check if a string is Stream-Safe NFC.</div></li><li><divclass="item-name"><aclass="fn"href="fn.is_nfc_stream_safe_quick.html"title="fn unicode_normalization::is_nfc_stream_safe_quick">is_nfc_stream_safe_quick</a></div><divclass="desc docblock-short">Quickly check if a string is Stream-Safe NFC.</div></li><li><divclass="item-name"><aclass="fn"href="fn.is_nfd.html"title="fn unicode_normalization::is_nfd">is_nfd</a></div><divclass="desc docblock-short">Authoritatively check if a string is in NFD.</div></li><li><divclass="item-name"><aclass="fn"href="fn.is_nfd_quick.html"title="fn unicode_normalization::is_nfd_quick">is_nfd_quick</a></div><divclass="desc docblock-short">Quickly check if a string is in NFD.</div></li><li><divclass="item-name"><aclass="fn"href="fn.is_nfd_stream_safe.html"title="fn unicode_normalization::is_nfd_stream_safe">is_nfd_stream_safe</a></div><divclass="desc docblock-short">Authoritatively check if a string is Stream-Safe NFD.</div></li><li><divclass="item-name"><aclass="fn"href="fn.is_nfd_stream_safe_quick.html"title="fn unicode_normalization::is_nfd_stream_safe_quick">is_nfd_stream_safe_quick</a></div><divclass="desc docblock-short">Quickly check if a string is Stream-Safe NFD.</div></li><li><divclass="item-name"><aclass="fn"href="fn.is_nfkc.html"title="fn unicode_normalization::is_nfkc">is_nfkc</a></div><divclass="desc docblock-short">Authoritatively check if a string is in NFKC.</div></li><li><divclass="item-name"><aclass="fn"href="fn.is_nfkc_quick.html"title="fn unicode_normalization::is_nfkc_quick">is_nfkc_quick</a></div><divclass="desc docblock-short">Quickly check if a string is in NFKC.</div></li><li><divclass="item-name"><aclass="fn"href="fn.is_nfkd.html"title="fn unicode_normalization::is_nfkd">is_nfkd</a></div><divclass="desc docblock-short">Authoritatively check if a string is in NFKD.</div></li><li><divclass="item-name"><aclass="fn"href="fn.is_nfkd_quick.html"title="fn unicode_normalization::is_nfkd_quick">is_nfkd_quick</a></div><divclass="desc docblock-short">Quickly check if a string is in NFKD.</div></li></ul></section></div></main></body></html>