Adding large folders

This commit is contained in:
2026-02-26 12:00:21 -05:00
parent 5400d82acd
commit 49701c85ad
47332 changed files with 1942573 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,36 @@
<!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="Unicode Extensions provide a mechanism to extend the `LanguageIdentifier` with additional bits of information - a combination of a `LanguageIdentifier` and `Extensions` is called `Locale`."><title>icu_locale_core::extensions - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="icu_locale_core" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module extensions</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../icu_locale_core/index.html">icu_<wbr>locale_<wbr>core</a><span class="version">2.1.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module extensions</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#examples" title="Examples">Examples</a></li><li><a href="#syntactic-vs-semantic-extension-handling" title="Syntactic vs Semantic Extension Handling">Syntactic vs Semantic Extension Handling</a></li></ul><h3><a href="#modules">Module Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="../index.html">In crate icu_<wbr>locale_<wbr>core</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">icu_locale_core</a></div><h1>Module <span>extensions</span>&nbsp;<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/icu_locale_core/extensions/mod.rs.html#5-399">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Unicode Extensions provide a mechanism to extend the <a href="../struct.LanguageIdentifier.html" title="struct icu_locale_core::LanguageIdentifier"><code>LanguageIdentifier</code></a> with
additional bits of information - a combination of a <a href="../struct.LanguageIdentifier.html" title="struct icu_locale_core::LanguageIdentifier"><code>LanguageIdentifier</code></a> and <a href="struct.Extensions.html" title="struct icu_locale_core::extensions::Extensions"><code>Extensions</code></a>
is called <a href="../struct.Locale.html" title="struct icu_locale_core::Locale"><code>Locale</code></a>.</p>
<p>There are four types of extensions:</p>
<ul>
<li><a href="unicode/index.html" title="mod icu_locale_core::extensions::unicode"><code>Unicode Extensions</code></a> - marked as <code>u</code>.</li>
<li><a href="transform/index.html" title="mod icu_locale_core::extensions::transform"><code>Transform Extensions</code></a> - marked as <code>t</code>.</li>
<li><a href="private/index.html" title="mod icu_locale_core::extensions::private"><code>Private Use Extensions</code></a> - marked as <code>x</code>.</li>
<li><a href="other/index.html" title="mod icu_locale_core::extensions::other"><code>Other Extensions</code></a> - marked as any <code>a-z</code> except of <code>u</code>, <code>t</code> and <code>x</code>.</li>
</ul>
<p>One can think of extensions as a bag of extra information on top of basic 4 <a href="../subtags/index.html" title="mod icu_locale_core::subtags"><code>subtags</code></a>.</p>
<p>Notice: <code>Other</code> extension type is currently not supported.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>icu::locale::extensions::unicode::{Key, Value};
<span class="kw">use </span>icu::locale::Locale;
<span class="kw">let </span>loc: Locale = <span class="string">"en-US-u-ca-buddhist-t-en-us-h0-hybrid-x-foo"
</span>.parse()
.expect(<span class="string">"Failed to parse."</span>);
<span class="macro">assert_eq!</span>(loc.id.language, <span class="string">"en"</span>.parse().unwrap());
<span class="macro">assert_eq!</span>(loc.id.script, <span class="prelude-val">None</span>);
<span class="macro">assert_eq!</span>(loc.id.region, <span class="prelude-val">Some</span>(<span class="string">"US"</span>.parse().unwrap()));
<span class="macro">assert_eq!</span>(loc.id.variants.len(), <span class="number">0</span>);
<span class="kw">let </span>key: Key = <span class="string">"ca"</span>.parse().expect(<span class="string">"Parsing key failed."</span>);
<span class="kw">let </span>value: Value = <span class="string">"buddhist"</span>.parse().expect(<span class="string">"Parsing value failed."</span>);
<span class="macro">assert_eq!</span>(loc.extensions.unicode.keywords.get(<span class="kw-2">&amp;</span>key), <span class="prelude-val">Some</span>(<span class="kw-2">&amp;</span>value));</code></pre></div><h2 id="syntactic-vs-semantic-extension-handling"><a class="doc-anchor" href="#syntactic-vs-semantic-extension-handling">§</a>Syntactic vs Semantic Extension Handling</h2>
<p>This module is useful when you need to work with Locale extensions at a syntactic level,
perhaps for parsing or generating locale identifiers that include any syntactically valid
extensions.
For handling and validating known CLDR values with semantic meaning, see the
<a href="../preferences/extensions/index.html" title="mod icu_locale_core::preferences::extensions"><code>crate::preferences::extensions</code></a> module.</p>
</div></details><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="other/index.html" title="mod icu_locale_core::extensions::other">other</a></dt><dd>Other Use Extensions is a list of extensions other than unicode,
transform or private.</dd><dt><a class="mod" href="private/index.html" title="mod icu_locale_core::extensions::private">private</a></dt><dd>Private Use Extensions is a list of extensions intended for
private use.</dd><dt><a class="mod" href="transform/index.html" title="mod icu_locale_core::extensions::transform">transform</a></dt><dd>Transform Extensions provide information on content transformations in a given locale.</dd><dt><a class="mod" href="unicode/index.html" title="mod icu_locale_core::extensions::unicode">unicode</a></dt><dd>Unicode Extensions provide information about user preferences in a given locale.</dd></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Extensions.html" title="struct icu_locale_core::extensions::Extensions">Extensions</a></dt><dd>A map of extensions associated with a given <a href="../struct.Locale.html" title="struct icu_locale_core::Locale"><code>Locale</code></a>.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.ExtensionType.html" title="enum icu_locale_core::extensions::ExtensionType">Extension<wbr>Type</a></dt><dd>Defines the type of extension.</dd></dl></section></div></main></body></html>

View File

@@ -0,0 +1,10 @@
<!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="Other Use Extensions is a list of extensions other than unicode, transform or private."><title>icu_locale_core::extensions::other - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="icu_locale_core" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../../static.files/storage-e2aeef58.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module other</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../icu_locale_core/index.html">icu_<wbr>locale_<wbr>core</a><span class="version">2.1.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module other</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#examples" title="Examples">Examples</a></li></ul><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In icu_<wbr>locale_<wbr>core::<wbr>extensions</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">icu_locale_core</a>::<wbr><a href="../index.html">extensions</a></div><h1>Module <span>other</span>&nbsp;<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/icu_locale_core/extensions/other/mod.rs.html#5-260">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Other Use Extensions is a list of extensions other than unicode,
transform or private.</p>
<p>Those extensions are treated as a pass-through, and no Unicode related
behavior depends on them.</p>
<p>The main struct for this extension is <a href="struct.Other.html" title="struct icu_locale_core::extensions::other::Other"><code>Other</code></a> which is a list of <a href="../../subtags/struct.Subtag.html" title="struct icu_locale_core::subtags::Subtag"><code>Subtag</code></a>s.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>icu::locale::extensions::other::Other;
<span class="kw">use </span>icu::locale::Locale;
<span class="kw">let </span><span class="kw-2">mut </span>loc: Locale = <span class="string">"en-US-a-foo-faa"</span>.parse().expect(<span class="string">"Parsing failed."</span>);</code></pre></div></div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Other.html" title="struct icu_locale_core::extensions::other::Other">Other</a></dt><dd>A list of <a href="https://unicode.org/reports/tr35/#other_extensions"><code>Other Use Extensions</code></a> as defined in <a href="https://unicode.org/reports/tr35/#Unicode_locale_identifier"><code>Unicode Locale Identifier</code></a> specification.</dd></dl></section></div></main></body></html>

View File

@@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"struct":["Other"]};

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,18 @@
<!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="Private Use Extensions is a list of extensions intended for private use."><title>icu_locale_core::extensions::private - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="icu_locale_core" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../../static.files/storage-e2aeef58.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module private</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../icu_locale_core/index.html">icu_<wbr>locale_<wbr>core</a><span class="version">2.1.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module private</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#examples" title="Examples">Examples</a></li></ul><h3><a href="#macros">Module Items</a></h3><ul class="block"><li><a href="#macros" title="Macros">Macros</a></li><li><a href="#structs" title="Structs">Structs</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In icu_<wbr>locale_<wbr>core::<wbr>extensions</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">icu_locale_core</a>::<wbr><a href="../index.html">extensions</a></div><h1>Module <span>private</span>&nbsp;<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/icu_locale_core/extensions/private/mod.rs.html#5-257">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Private Use Extensions is a list of extensions intended for
private use.</p>
<p>Those extensions are treated as a pass-through, and no Unicode related
behavior depends on them.</p>
<p>The main struct for this extension is <a href="struct.Private.html" title="struct icu_locale_core::extensions::private::Private"><code>Private</code></a> which is a list of <a href="struct.Subtag.html" title="struct icu_locale_core::extensions::private::Subtag"><code>Subtag</code></a>s.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>icu::locale::extensions::private::subtag;
<span class="kw">use </span>icu::locale::{locale, Locale};
<span class="kw">let </span><span class="kw-2">mut </span>loc: Locale = <span class="string">"en-US-x-foo-faa"</span>.parse().expect(<span class="string">"Parsing failed."</span>);
<span class="macro">assert!</span>(loc.extensions.private.contains(<span class="kw-2">&amp;</span><span class="macro">subtag!</span>(<span class="string">"foo"</span>)));
<span class="macro">assert_eq!</span>(loc.extensions.private.iter().next(), <span class="prelude-val">Some</span>(<span class="kw-2">&amp;</span><span class="macro">subtag!</span>(<span class="string">"foo"</span>)));
loc.extensions.private.clear();
<span class="macro">assert!</span>(loc.extensions.private.is_empty());
<span class="macro">assert_eq!</span>(loc, <span class="macro">locale!</span>(<span class="string">"en-US"</span>));</code></pre></div></div></details><h2 id="macros" class="section-header">Macros<a href="#macros" class="anchor">§</a></h2><dl class="item-table"><dt><a class="macro" href="macro.subtag.html" title="macro icu_locale_core::extensions::private::subtag">subtag</a></dt><dd>A macro allowing for compile-time construction of valid <a href="struct.Subtag.html" title="struct icu_locale_core::extensions::private::Subtag"><code>Subtag</code></a> subtags.</dd></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Private.html" title="struct icu_locale_core::extensions::private::Private">Private</a></dt><dd>A list of <a href="https://unicode.org/reports/tr35/#pu_extensions"><code>Private Use Extensions</code></a> as defined in <a href="https://unicode.org/reports/tr35/#Unicode_locale_identifier"><code>Unicode Locale Identifier</code></a> specification.</dd><dt><a class="struct" href="struct.Subtag.html" title="struct icu_locale_core::extensions::private::Subtag">Subtag</a></dt><dd>A single item used in a list of <a href="struct.Private.html" title="struct icu_locale_core::extensions::private::Private"><code>Private</code></a> extensions.</dd></dl></section></div></main></body></html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=macro.subtag.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="macro.subtag.html">macro.subtag.html</a>...</p>
<script>location.replace("macro.subtag.html" + location.search + location.hash);</script>
</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="A macro allowing for compile-time construction of valid `Subtag` subtags."><title>subtag in icu_locale_core::extensions::private - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="icu_locale_core" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc macro"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">subtag</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../icu_locale_core/index.html">icu_<wbr>locale_<wbr>core</a><span class="version">2.1.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">subtag</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#examples" title="Examples">Examples</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In icu_<wbr>locale_<wbr>core::<wbr>extensions::<wbr>private</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">icu_locale_core</a>::<wbr><a href="../index.html">extensions</a>::<wbr><a href="index.html">private</a></div><h1>Macro <span class="macro">subtag</span>&nbsp;<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/icu_locale_core/extensions/private/other.rs.html#5-47">Source</a> </span></div><pre class="rust item-decl"><code>macro_rules! subtag {
($string:literal) =&gt; { ... };
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A macro allowing for compile-time construction of valid <a href="struct.Subtag.html" title="struct icu_locale_core::extensions::private::Subtag"><code>Subtag</code></a> subtags.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<p>Parsing errors dont have to be handled at runtime:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(
<span class="macro">icu_locale_core::extensions::private::subtag!</span>(<span class="string">"foo12"</span>),
<span class="string">"foo12"</span>.parse::&lt;icu_locale_core::extensions::private::Subtag&gt;().unwrap()
);</code></pre></div>
<p>Invalid input is a compile failure:</p>
<div class="example-wrap compile_fail"><a href="#" class="tooltip" title="This example deliberately fails to compile"></a><pre class="rust rust-example-rendered"><code><span class="macro">icu_locale_core::extensions::private::subtag!</span>(<span class="string">"toolooong"</span>);</code></pre></div></div></details></section></div></main></body></html>

View File

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

View File

@@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"macro":["subtag"],"struct":["Private","Subtag"]};

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 @@
window.SIDEBAR_ITEMS = {"enum":["ExtensionType"],"mod":["other","private","transform","unicode"],"struct":["Extensions"]};

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=../../../../icu_locale_core/extensions/transform/struct.Fields.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../icu_locale_core/extensions/transform/struct.Fields.html">../../../../icu_locale_core/extensions/transform/struct.Fields.html</a>...</p>
<script>location.replace("../../../../icu_locale_core/extensions/transform/struct.Fields.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,22 @@
<!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="Transform Extensions provide information on content transformations in a given locale."><title>icu_locale_core::extensions::transform - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="icu_locale_core" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../../static.files/storage-e2aeef58.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module transform</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../icu_locale_core/index.html">icu_<wbr>locale_<wbr>core</a><span class="version">2.1.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module transform</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#examples" title="Examples">Examples</a></li></ul><h3><a href="#macros">Module Items</a></h3><ul class="block"><li><a href="#macros" title="Macros">Macros</a></li><li><a href="#structs" title="Structs">Structs</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In icu_<wbr>locale_<wbr>core::<wbr>extensions</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">icu_locale_core</a>::<wbr><a href="../index.html">extensions</a></div><h1>Module <span>transform</span>&nbsp;<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/icu_locale_core/extensions/transform/mod.rs.html#5-336">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Transform Extensions provide information on content transformations in a given locale.</p>
<p>The main struct for this extension is <a href="struct.Transform.html" title="struct icu_locale_core::extensions::transform::Transform"><code>Transform</code></a> which contains <a href="struct.Fields.html" title="struct icu_locale_core::extensions::transform::Fields"><code>Fields</code></a> and an
optional <a href="../../struct.LanguageIdentifier.html" title="struct icu_locale_core::LanguageIdentifier"><code>LanguageIdentifier</code></a>.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>icu::locale::extensions::transform::{Fields, Key, Transform, Value};
<span class="kw">use </span>icu::locale::{LanguageIdentifier, Locale};
<span class="kw">let </span><span class="kw-2">mut </span>loc: Locale =
<span class="string">"en-US-t-es-ar-h0-hybrid"</span>.parse().expect(<span class="string">"Parsing failed."</span>);
<span class="kw">let </span>lang: LanguageIdentifier =
<span class="string">"es-AR"</span>.parse().expect(<span class="string">"Parsing LanguageIdentifier failed."</span>);
<span class="kw">let </span>key: Key = <span class="string">"h0"</span>.parse().expect(<span class="string">"Parsing key failed."</span>);
<span class="kw">let </span>value: Value = <span class="string">"hybrid"</span>.parse().expect(<span class="string">"Parsing value failed."</span>);
<span class="macro">assert_eq!</span>(loc.extensions.transform.lang, <span class="prelude-val">Some</span>(lang));
<span class="macro">assert!</span>(loc.extensions.transform.fields.contains_key(<span class="kw-2">&amp;</span>key));
<span class="macro">assert_eq!</span>(loc.extensions.transform.fields.get(<span class="kw-2">&amp;</span>key), <span class="prelude-val">Some</span>(<span class="kw-2">&amp;</span>value));
<span class="macro">assert_eq!</span>(<span class="kw-2">&amp;</span>loc.extensions.transform.to_string(), <span class="string">"t-es-ar-h0-hybrid"</span>);</code></pre></div></div></details><h2 id="macros" class="section-header">Macros<a href="#macros" class="anchor">§</a></h2><dl class="item-table"><dt><a class="macro" href="macro.key.html" title="macro icu_locale_core::extensions::transform::key">key</a></dt><dd>A macro allowing for compile-time construction of valid <a href="struct.Key.html" title="struct icu_locale_core::extensions::transform::Key"><code>Key</code></a> subtags.</dd></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Fields.html" title="struct icu_locale_core::extensions::transform::Fields">Fields</a></dt><dd>A list of <a href="struct.Key.html" title="struct icu_locale_core::extensions::transform::Key"><code>Key</code></a>-<a href="struct.Value.html" title="struct icu_locale_core::extensions::transform::Value"><code>Value</code></a> pairs representing functional information
about content transformations.</dd><dt><a class="struct" href="struct.Key.html" title="struct icu_locale_core::extensions::transform::Key">Key</a></dt><dd>A key used in a list of <a href="struct.Fields.html" title="struct icu_locale_core::extensions::transform::Fields"><code>Fields</code></a>.</dd><dt><a class="struct" href="struct.Transform.html" title="struct icu_locale_core::extensions::transform::Transform">Transform</a></dt><dd>A list of <a href="https://unicode.org/reports/tr35/#t_Extension"><code>Unicode BCP47 T Extensions</code></a> as defined in <a href="https://unicode.org/reports/tr35/#Unicode_locale_identifier"><code>Unicode Locale Identifier</code></a> specification.</dd><dt><a class="struct" href="struct.Value.html" title="struct icu_locale_core::extensions::transform::Value">Value</a></dt><dd>A value used in a list of <a href="struct.Fields.html" title="struct icu_locale_core::extensions::transform::Fields"><code>Fields</code></a>.</dd></dl></section></div></main></body></html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../icu_locale_core/extensions/transform/struct.Key.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../icu_locale_core/extensions/transform/struct.Key.html">../../../../icu_locale_core/extensions/transform/struct.Key.html</a>...</p>
<script>location.replace("../../../../icu_locale_core/extensions/transform/struct.Key.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=macro.key.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="macro.key.html">macro.key.html</a>...</p>
<script>location.replace("macro.key.html" + location.search + location.hash);</script>
</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="A macro allowing for compile-time construction of valid `Key` subtags."><title>key in icu_locale_core::extensions::transform - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="icu_locale_core" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc macro"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">key</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../icu_locale_core/index.html">icu_<wbr>locale_<wbr>core</a><span class="version">2.1.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">key</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#examples" title="Examples">Examples</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In icu_<wbr>locale_<wbr>core::<wbr>extensions::<wbr>transform</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">icu_locale_core</a>::<wbr><a href="../index.html">extensions</a>::<wbr><a href="index.html">transform</a></div><h1>Macro <span class="macro">key</span>&nbsp;<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/icu_locale_core/extensions/transform/key.rs.html#5-32">Source</a> </span></div><pre class="rust item-decl"><code>macro_rules! key {
($string:literal) =&gt; { ... };
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A macro allowing for compile-time construction of valid <a href="struct.Key.html" title="struct icu_locale_core::extensions::transform::Key"><code>Key</code></a> subtags.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<p>Parsing errors dont have to be handled at runtime:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(
<span class="macro">icu_locale_core::extensions::transform::key!</span>(<span class="string">"k0"</span>),
<span class="string">"k0"</span>.parse::&lt;icu_locale_core::extensions::transform::Key&gt;().unwrap()
);</code></pre></div>
<p>Invalid input is a compile failure:</p>
<div class="example-wrap compile_fail"><a href="#" class="tooltip" title="This example deliberately fails to compile"></a><pre class="rust rust-example-rendered"><code><span class="macro">icu_locale_core::extensions::transform::key!</span>(<span class="string">""</span>);</code></pre></div></div></details></section></div></main></body></html>

View File

@@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"macro":["key"],"struct":["Fields","Key","Transform","Value"]};

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=../../../../icu_locale_core/extensions/transform/struct.Value.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../icu_locale_core/extensions/transform/struct.Value.html">../../../../icu_locale_core/extensions/transform/struct.Value.html</a>...</p>
<script>location.replace("../../../../icu_locale_core/extensions/transform/struct.Value.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=../../../../icu_locale_core/extensions/unicode/struct.Attribute.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../icu_locale_core/extensions/unicode/struct.Attribute.html">../../../../icu_locale_core/extensions/unicode/struct.Attribute.html</a>...</p>
<script>location.replace("../../../../icu_locale_core/extensions/unicode/struct.Attribute.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=../../../../icu_locale_core/extensions/unicode/struct.Attributes.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../icu_locale_core/extensions/unicode/struct.Attributes.html">../../../../icu_locale_core/extensions/unicode/struct.Attributes.html</a>...</p>
<script>location.replace("../../../../icu_locale_core/extensions/unicode/struct.Attributes.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,19 @@
<!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="Unicode Extensions provide information about user preferences in a given locale."><title>icu_locale_core::extensions::unicode - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="icu_locale_core" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../../static.files/storage-e2aeef58.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module unicode</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../icu_locale_core/index.html">icu_<wbr>locale_<wbr>core</a><span class="version">2.1.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module unicode</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#examples" title="Examples">Examples</a></li></ul><h3><a href="#macros">Module Items</a></h3><ul class="block"><li><a href="#macros" title="Macros">Macros</a></li><li><a href="#structs" title="Structs">Structs</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In icu_<wbr>locale_<wbr>core::<wbr>extensions</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">icu_locale_core</a>::<wbr><a href="../index.html">extensions</a></div><h1>Module <span>unicode</span>&nbsp;<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/icu_locale_core/extensions/unicode/mod.rs.html#5-294">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Unicode Extensions provide information about user preferences in a given locale.</p>
<p>The main struct for this extension is <a href="struct.Unicode.html" title="struct icu_locale_core::extensions::unicode::Unicode"><code>Unicode</code></a> which contains <a href="struct.Keywords.html" title="struct icu_locale_core::extensions::unicode::Keywords"><code>Keywords</code></a> and
<a href="struct.Attributes.html" title="struct icu_locale_core::extensions::unicode::Attributes"><code>Attributes</code></a>.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>icu::locale::extensions::unicode::{attribute, key, value, Unicode};
<span class="kw">use </span>icu::locale::Locale;
<span class="kw">let </span>loc: Locale = <span class="string">"en-US-u-foobar-hc-h12"</span>.parse().expect(<span class="string">"Parsing failed."</span>);
<span class="macro">assert_eq!</span>(
loc.extensions.unicode.keywords.get(<span class="kw-2">&amp;</span><span class="macro">key!</span>(<span class="string">"hc"</span>)),
<span class="prelude-val">Some</span>(<span class="kw-2">&amp;</span><span class="macro">value!</span>(<span class="string">"h12"</span>))
);
<span class="macro">assert!</span>(loc
.extensions
.unicode
.attributes
.contains(<span class="kw-2">&amp;</span><span class="macro">attribute!</span>(<span class="string">"foobar"</span>)));</code></pre></div></div></details><h2 id="macros" class="section-header">Macros<a href="#macros" class="anchor">§</a></h2><dl class="item-table"><dt><a class="macro" href="macro.attribute.html" title="macro icu_locale_core::extensions::unicode::attribute">attribute</a></dt><dd>A macro allowing for compile-time construction of valid <a href="struct.Attribute.html" title="struct icu_locale_core::extensions::unicode::Attribute"><code>Attribute</code></a> subtags.</dd><dt><a class="macro" href="macro.key.html" title="macro icu_locale_core::extensions::unicode::key">key</a></dt><dd>A macro allowing for compile-time construction of valid <a href="struct.Key.html" title="struct icu_locale_core::extensions::unicode::Key"><code>Key</code></a> subtags.</dd><dt><a class="macro" href="macro.subdivision_suffix.html" title="macro icu_locale_core::extensions::unicode::subdivision_suffix">subdivision_<wbr>suffix</a></dt><dd>A macro allowing for compile-time construction of valid <a href="struct.SubdivisionSuffix.html" title="struct icu_locale_core::extensions::unicode::SubdivisionSuffix"><code>SubdivisionSuffix</code></a> subtags.</dd><dt><a class="macro" href="macro.value.html" title="macro icu_locale_core::extensions::unicode::value">value</a></dt><dd>A macro allowing for compile-time construction of valid Unicode <a href="struct.Value.html" title="struct icu_locale_core::extensions::unicode::Value"><code>Value</code></a> subtag.</dd></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Attribute.html" title="struct icu_locale_core::extensions::unicode::Attribute">Attribute</a></dt><dd>An attribute used in a set of <a href="struct.Attributes.html" title="struct icu_locale_core::extensions::unicode::Attributes"><code>Attributes</code></a>.</dd><dt><a class="struct" href="struct.Attributes.html" title="struct icu_locale_core::extensions::unicode::Attributes">Attributes</a></dt><dd>A set of <a href="struct.Attribute.html" title="struct icu_locale_core::extensions::unicode::Attribute"><code>Attribute</code></a> elements as defined in <a href="https://unicode.org/reports/tr35/tr35.html#u_Extension"><code>Unicode Extension Attributes</code></a>.</dd><dt><a class="struct" href="struct.Key.html" title="struct icu_locale_core::extensions::unicode::Key">Key</a></dt><dd>A key used in a list of <a href="struct.Keywords.html" title="struct icu_locale_core::extensions::unicode::Keywords"><code>Keywords</code></a>.</dd><dt><a class="struct" href="struct.Keywords.html" title="struct icu_locale_core::extensions::unicode::Keywords">Keywords</a></dt><dd>A list of <a href="struct.Key.html" title="struct icu_locale_core::extensions::unicode::Key"><code>Key</code></a>-<a href="struct.Value.html" title="struct icu_locale_core::extensions::unicode::Value"><code>Value</code></a> pairs representing functional information
about locales internationalization preferences.</dd><dt><a class="struct" href="struct.SubdivisionId.html" title="struct icu_locale_core::extensions::unicode::SubdivisionId">Subdivision<wbr>Id</a></dt><dd>A Subivision Id as defined in <a href="https://unicode.org/reports/tr35/tr35.html#unicode_subdivision_id"><code>Unicode Locale Identifier</code></a>.</dd><dt><a class="struct" href="struct.SubdivisionSuffix.html" title="struct icu_locale_core::extensions::unicode::SubdivisionSuffix">Subdivision<wbr>Suffix</a></dt><dd>A subdivision suffix used in <a href="struct.SubdivisionId.html" title="struct icu_locale_core::extensions::unicode::SubdivisionId"><code>SubdivisionId</code></a>.</dd><dt><a class="struct" href="struct.Unicode.html" title="struct icu_locale_core::extensions::unicode::Unicode">Unicode</a></dt><dd>Unicode Extensions provide information about user preferences in a given locale.</dd><dt><a class="struct" href="struct.Value.html" title="struct icu_locale_core::extensions::unicode::Value">Value</a></dt><dd>A value used in a list of <a href="struct.Keywords.html" title="struct icu_locale_core::extensions::unicode::Keywords"><code>Keywords</code></a>.</dd></dl></section></div></main></body></html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../icu_locale_core/extensions/unicode/struct.Key.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../icu_locale_core/extensions/unicode/struct.Key.html">../../../../icu_locale_core/extensions/unicode/struct.Key.html</a>...</p>
<script>location.replace("../../../../icu_locale_core/extensions/unicode/struct.Key.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=../../../../icu_locale_core/extensions/unicode/struct.Keywords.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../icu_locale_core/extensions/unicode/struct.Keywords.html">../../../../icu_locale_core/extensions/unicode/struct.Keywords.html</a>...</p>
<script>location.replace("../../../../icu_locale_core/extensions/unicode/struct.Keywords.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=macro.attribute.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="macro.attribute.html">macro.attribute.html</a>...</p>
<script>location.replace("macro.attribute.html" + location.search + location.hash);</script>
</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="A macro allowing for compile-time construction of valid `Attribute` subtags."><title>attribute in icu_locale_core::extensions::unicode - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="icu_locale_core" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc macro"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">attribute</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../icu_locale_core/index.html">icu_<wbr>locale_<wbr>core</a><span class="version">2.1.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">attribute</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#examples" title="Examples">Examples</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In icu_<wbr>locale_<wbr>core::<wbr>extensions::<wbr>unicode</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">icu_locale_core</a>::<wbr><a href="../index.html">extensions</a>::<wbr><a href="index.html">unicode</a></div><h1>Macro <span class="macro">attribute</span>&nbsp;<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/icu_locale_core/extensions/unicode/attribute.rs.html#5-34">Source</a> </span></div><pre class="rust item-decl"><code>macro_rules! attribute {
($string:literal) =&gt; { ... };
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A macro allowing for compile-time construction of valid <a href="struct.Attribute.html" title="struct icu_locale_core::extensions::unicode::Attribute"><code>Attribute</code></a> subtags.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<p>Parsing errors dont have to be handled at runtime:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(
<span class="macro">icu_locale_core::extensions::unicode::attribute!</span>(<span class="string">"foo12"</span>),
<span class="string">"foo12"</span>.parse::&lt;icu_locale_core::extensions::unicode::Attribute&gt;().unwrap()
);</code></pre></div>
<p>Invalid input is a compile failure:</p>
<div class="example-wrap compile_fail"><a href="#" class="tooltip" title="This example deliberately fails to compile"></a><pre class="rust rust-example-rendered"><code><span class="macro">icu_locale_core::extensions::unicode::attribute!</span>(<span class="string">"no"</span>);</code></pre></div></div></details></section></div></main></body></html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=macro.key.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="macro.key.html">macro.key.html</a>...</p>
<script>location.replace("macro.key.html" + location.search + location.hash);</script>
</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="A macro allowing for compile-time construction of valid `Key` subtags."><title>key in icu_locale_core::extensions::unicode - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="icu_locale_core" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc macro"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">key</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../icu_locale_core/index.html">icu_<wbr>locale_<wbr>core</a><span class="version">2.1.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">key</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#examples" title="Examples">Examples</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In icu_<wbr>locale_<wbr>core::<wbr>extensions::<wbr>unicode</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">icu_locale_core</a>::<wbr><a href="../index.html">extensions</a>::<wbr><a href="index.html">unicode</a></div><h1>Macro <span class="macro">key</span>&nbsp;<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/icu_locale_core/extensions/unicode/key.rs.html#5-32">Source</a> </span></div><pre class="rust item-decl"><code>macro_rules! key {
($string:literal) =&gt; { ... };
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A macro allowing for compile-time construction of valid <a href="struct.Key.html" title="struct icu_locale_core::extensions::unicode::Key"><code>Key</code></a> subtags.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<p>Parsing errors dont have to be handled at runtime:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(
<span class="macro">icu_locale_core::extensions::unicode::key!</span>(<span class="string">"ca"</span>),
<span class="string">"ca"</span>.parse::&lt;icu_locale_core::extensions::unicode::Key&gt;().unwrap()
);</code></pre></div>
<p>Invalid input is a compile failure:</p>
<div class="example-wrap compile_fail"><a href="#" class="tooltip" title="This example deliberately fails to compile"></a><pre class="rust rust-example-rendered"><code><span class="macro">icu_locale_core::extensions::unicode::key!</span>(<span class="string">"a"</span>);</code></pre></div></div></details></section></div></main></body></html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=macro.subdivision_suffix.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="macro.subdivision_suffix.html">macro.subdivision_suffix.html</a>...</p>
<script>location.replace("macro.subdivision_suffix.html" + location.search + location.hash);</script>
</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="A macro allowing for compile-time construction of valid `SubdivisionSuffix` subtags."><title>subdivision_suffix in icu_locale_core::extensions::unicode - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="icu_locale_core" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc macro"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">subdivision_suffix</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../icu_locale_core/index.html">icu_<wbr>locale_<wbr>core</a><span class="version">2.1.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">subdivision_<wbr>suffix</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#examples" title="Examples">Examples</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In icu_<wbr>locale_<wbr>core::<wbr>extensions::<wbr>unicode</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">icu_locale_core</a>::<wbr><a href="../index.html">extensions</a>::<wbr><a href="index.html">unicode</a></div><h1>Macro <span class="macro">subdivision_<wbr>suffix</span>&nbsp;<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/icu_locale_core/extensions/unicode/subdivision.rs.html#10-47">Source</a> </span></div><pre class="rust item-decl"><code>macro_rules! subdivision_suffix {
($string:literal) =&gt; { ... };
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A macro allowing for compile-time construction of valid <a href="struct.SubdivisionSuffix.html" title="struct icu_locale_core::extensions::unicode::SubdivisionSuffix"><code>SubdivisionSuffix</code></a> subtags.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<p>Parsing errors dont have to be handled at runtime:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(
<span class="macro">icu_locale_core::extensions::unicode::subdivision_suffix!</span>(<span class="string">"sct"</span>),
<span class="string">"sct"</span>.parse::&lt;icu_locale_core::extensions::unicode::SubdivisionSuffix&gt;().unwrap()
);</code></pre></div>
<p>Invalid input is a compile failure:</p>
<div class="example-wrap compile_fail"><a href="#" class="tooltip" title="This example deliberately fails to compile"></a><pre class="rust rust-example-rendered"><code><span class="macro">icu_locale_core::extensions::unicode::subdivision_suffix!</span>(<span class="string">"toolooong"</span>);</code></pre></div></div></details></section></div></main></body></html>

View File

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

View File

@@ -0,0 +1,14 @@
<!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="A macro allowing for compile-time construction of valid Unicode `Value` subtag."><title>value in icu_locale_core::extensions::unicode - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="icu_locale_core" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc macro"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">value</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../icu_locale_core/index.html">icu_<wbr>locale_<wbr>core</a><span class="version">2.1.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">value</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#examples" title="Examples">Examples</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In icu_<wbr>locale_<wbr>core::<wbr>extensions::<wbr>unicode</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">icu_locale_core</a>::<wbr><a href="../index.html">extensions</a>::<wbr><a href="index.html">unicode</a></div><h1>Macro <span class="macro">value</span>&nbsp;<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/icu_locale_core/extensions/unicode/value.rs.html#364-375">Source</a> </span></div><pre class="rust item-decl"><code>macro_rules! value {
($value:literal) =&gt; { ... };
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A macro allowing for compile-time construction of valid Unicode <a href="struct.Value.html" title="struct icu_locale_core::extensions::unicode::Value"><code>Value</code></a> subtag.</p>
<p>The macro only supports single-subtag values.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>icu::locale::extensions::unicode::{key, value};
<span class="kw">use </span>icu::locale::Locale;
<span class="kw">let </span>loc: Locale = <span class="string">"de-u-ca-buddhist"</span>.parse().unwrap();
<span class="macro">assert_eq!</span>(
loc.extensions.unicode.keywords.get(<span class="kw-2">&amp;</span><span class="macro">key!</span>(<span class="string">"ca"</span>)),
<span class="prelude-val">Some</span>(<span class="kw-2">&amp;</span><span class="macro">value!</span>(<span class="string">"buddhist"</span>))
);</code></pre></div></div></details></section></div></main></body></html>

View File

@@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"macro":["attribute","key","subdivision_suffix","value"],"struct":["Attribute","Attributes","Key","Keywords","SubdivisionId","SubdivisionSuffix","Unicode","Value"]};

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=../../../../icu_locale_core/extensions/unicode/struct.SubdivisionId.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../icu_locale_core/extensions/unicode/struct.SubdivisionId.html">../../../../icu_locale_core/extensions/unicode/struct.SubdivisionId.html</a>...</p>
<script>location.replace("../../../../icu_locale_core/extensions/unicode/struct.SubdivisionId.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=../../../../icu_locale_core/extensions/unicode/struct.SubdivisionSuffix.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../icu_locale_core/extensions/unicode/struct.SubdivisionSuffix.html">../../../../icu_locale_core/extensions/unicode/struct.SubdivisionSuffix.html</a>...</p>
<script>location.replace("../../../../icu_locale_core/extensions/unicode/struct.SubdivisionSuffix.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=../../../../icu_locale_core/extensions/unicode/struct.Value.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../icu_locale_core/extensions/unicode/struct.Value.html">../../../../icu_locale_core/extensions/unicode/struct.Value.html</a>...</p>
<script>location.replace("../../../../icu_locale_core/extensions/unicode/struct.Value.html" + location.search + location.hash);</script>
</body>
</html>