Files
GopherGate/target/doc/icu_collections/codepointtrie/trait.TrieValue.html
2026-02-26 12:00:21 -05:00

27 lines
25 KiB
HTML

<!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 trait representing the values stored in the data array of a `CodePointTrie`. This trait is used as a type parameter in constructing a `CodePointTrie`."><title>TrieValue in icu_collections::codepointtrie - 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_collections" 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 trait"><!--[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="#">TrieValue</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../icu_collections/index.html">icu_<wbr>collections</a><span class="version">2.1.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Trie<wbr>Value</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.TryFromU32Error" title="TryFromU32Error">TryFromU32Error</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.to_u32" title="to_u32">to_u32</a></li><li><a href="#tymethod.try_from_u32" title="try_from_u32">try_from_u32</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-TrieValue-for-char" title="char">char</a></li><li><a href="#impl-TrieValue-for-i8" title="i8">i8</a></li><li><a href="#impl-TrieValue-for-i16" title="i16">i16</a></li><li><a href="#impl-TrieValue-for-i32" title="i32">i32</a></li><li><a href="#impl-TrieValue-for-u8" title="u8">u8</a></li><li><a href="#impl-TrieValue-for-u16" title="u16">u16</a></li><li><a href="#impl-TrieValue-for-u32" title="u32">u32</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><a href="index.html">In icu_<wbr>collections::<wbr>codepointtrie</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_collections</a>::<wbr><a href="index.html">codepointtrie</a></div><h1>Trait <span class="trait">Trie<wbr>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_collections/codepointtrie/cptrie.rs.html#63-82">Source</a> </span></div><pre class="rust item-decl"><code>pub trait TrieValue:
<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>
+ <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>
+ <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>
+ <a class="trait" href="../../zerovec/ule/trait.AsULE.html" title="trait zerovec::ule::AsULE">AsULE</a>
+ 'static {
type <a href="#associatedtype.TryFromU32Error" class="associatedtype">TryFromU32Error</a>: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a>;
// Required methods
fn <a href="#tymethod.try_from_u32" class="fn">try_from_u32</a>(i: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="associatedtype" href="trait.TrieValue.html#associatedtype.TryFromU32Error" title="type icu_collections::codepointtrie::TrieValue::TryFromU32Error">TryFromU32Error</a>&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.to_u32" class="fn">to_u32</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u32.html">u32</a>;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A trait representing the values stored in the data array of a <a href="struct.CodePointTrie.html" title="struct icu_collections::codepointtrie::CodePointTrie"><code>CodePointTrie</code></a>.
This trait is used as a type parameter in constructing a <code>CodePointTrie</code>.</p>
<p>This trait can be implemented on anything that can be represented as a u32s worth of data.</p>
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.TryFromU32Error" class="method"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#69">Source</a><h4 class="code-header">type <a href="#associatedtype.TryFromU32Error" class="associatedtype">TryFromU32Error</a>: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a></h4></section></summary><div class="docblock"><p>Last-resort fallback value to return if we cannot read data from the trie.</p>
<p>In most cases, the error value is read from the last element of the <code>data</code> array,
this value is used for empty codepointtrie arrays
Error type when converting from a u32 to this <code>TrieValue</code>.</p>
</div></details></div><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.try_from_u32" class="method"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#73">Source</a><h4 class="code-header">fn <a href="#tymethod.try_from_u32" class="fn">try_from_u32</a>(i: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="associatedtype" href="trait.TrieValue.html#associatedtype.TryFromU32Error" title="type icu_collections::codepointtrie::TrieValue::TryFromU32Error">TryFromU32Error</a>&gt;</h4></section></summary><div class="docblock"><p>A parsing function that is primarily motivated by deserialization contexts.
When the serialization type width is smaller than 32 bits, then it is expected
that the call site will widen the value to a <code>u32</code> first.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.to_u32" class="method"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#81">Source</a><h4 class="code-header">fn <a href="#tymethod.to_u32" class="fn">to_u32</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u32.html">u32</a></h4></section></summary><div class="docblock"><p>A method for converting back to a <code>u32</code> that can roundtrip through
<a href="trait.TrieValue.html#tymethod.try_from_u32"><code>Self::try_from_u32()</code></a>. The default implementation of this trait
method panics in debug mode and returns 0 in release mode.</p>
<p>This method is allowed to have GIGO behavior when fed a value that has
no corresponding <code>u32</code> (since such values cannot be stored in the trie)</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.93.1/reference/items/traits.html#dyn-compatibility">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-TrieValue-for-char" class="impl"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#107">Source</a><a href="#impl-TrieValue-for-char" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TrieValue.html" title="trait icu_collections::codepointtrie::TrieValue">TrieValue</a> for <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.char.html">char</a></h3></section></summary><div class="impl-items"><section id="associatedtype.TryFromU32Error-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#107">Source</a><a href="#associatedtype.TryFromU32Error-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.TryFromU32Error" class="associatedtype">TryFromU32Error</a> = <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/char/convert/struct.CharTryFromError.html" title="struct core::char::convert::CharTryFromError">CharTryFromError</a></h4></section><section id="method.try_from_u32" class="method trait-impl"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#107">Source</a><a href="#method.try_from_u32" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.try_from_u32" class="fn">try_from_u32</a>(i: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="associatedtype" href="trait.TrieValue.html#associatedtype.TryFromU32Error" title="type icu_collections::codepointtrie::TrieValue::TryFromU32Error">TryFromU32Error</a>&gt;</h4></section><section id="method.to_u32" class="method trait-impl"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#107">Source</a><a href="#method.to_u32" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.to_u32" class="fn">to_u32</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u32.html">u32</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TrieValue-for-i8" class="impl"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#104">Source</a><a href="#impl-TrieValue-for-i8" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TrieValue.html" title="trait icu_collections::codepointtrie::TrieValue">TrieValue</a> for <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.i8.html">i8</a></h3></section></summary><div class="impl-items"><section id="associatedtype.TryFromU32Error-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#104">Source</a><a href="#associatedtype.TryFromU32Error-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.TryFromU32Error" class="associatedtype">TryFromU32Error</a> = <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/num/error/struct.TryFromIntError.html" title="struct core::num::error::TryFromIntError">TryFromIntError</a></h4></section><section id="method.try_from_u32-1" class="method trait-impl"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#104">Source</a><a href="#method.try_from_u32-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.try_from_u32" class="fn">try_from_u32</a>(i: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="associatedtype" href="trait.TrieValue.html#associatedtype.TryFromU32Error" title="type icu_collections::codepointtrie::TrieValue::TryFromU32Error">TryFromU32Error</a>&gt;</h4></section><section id="method.to_u32-1" class="method trait-impl"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#104">Source</a><a href="#method.to_u32-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.to_u32" class="fn">to_u32</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u32.html">u32</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TrieValue-for-i16" class="impl"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#105">Source</a><a href="#impl-TrieValue-for-i16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TrieValue.html" title="trait icu_collections::codepointtrie::TrieValue">TrieValue</a> for <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.i16.html">i16</a></h3></section></summary><div class="impl-items"><section id="associatedtype.TryFromU32Error-3" class="associatedtype trait-impl"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#105">Source</a><a href="#associatedtype.TryFromU32Error-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.TryFromU32Error" class="associatedtype">TryFromU32Error</a> = <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/num/error/struct.TryFromIntError.html" title="struct core::num::error::TryFromIntError">TryFromIntError</a></h4></section><section id="method.try_from_u32-2" class="method trait-impl"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#105">Source</a><a href="#method.try_from_u32-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.try_from_u32" class="fn">try_from_u32</a>(i: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="associatedtype" href="trait.TrieValue.html#associatedtype.TryFromU32Error" title="type icu_collections::codepointtrie::TrieValue::TryFromU32Error">TryFromU32Error</a>&gt;</h4></section><section id="method.to_u32-2" class="method trait-impl"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#105">Source</a><a href="#method.to_u32-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.to_u32" class="fn">to_u32</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u32.html">u32</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TrieValue-for-i32" class="impl"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#106">Source</a><a href="#impl-TrieValue-for-i32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TrieValue.html" title="trait icu_collections::codepointtrie::TrieValue">TrieValue</a> for <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.i32.html">i32</a></h3></section></summary><div class="impl-items"><section id="associatedtype.TryFromU32Error-4" class="associatedtype trait-impl"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#106">Source</a><a href="#associatedtype.TryFromU32Error-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.TryFromU32Error" class="associatedtype">TryFromU32Error</a> = <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/num/error/struct.TryFromIntError.html" title="struct core::num::error::TryFromIntError">TryFromIntError</a></h4></section><section id="method.try_from_u32-3" class="method trait-impl"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#106">Source</a><a href="#method.try_from_u32-3" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.try_from_u32" class="fn">try_from_u32</a>(i: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="associatedtype" href="trait.TrieValue.html#associatedtype.TryFromU32Error" title="type icu_collections::codepointtrie::TrieValue::TryFromU32Error">TryFromU32Error</a>&gt;</h4></section><section id="method.to_u32-3" class="method trait-impl"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#106">Source</a><a href="#method.to_u32-3" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.to_u32" class="fn">to_u32</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u32.html">u32</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TrieValue-for-u8" class="impl"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#101">Source</a><a href="#impl-TrieValue-for-u8" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TrieValue.html" title="trait icu_collections::codepointtrie::TrieValue">TrieValue</a> for <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a></h3></section></summary><div class="impl-items"><section id="associatedtype.TryFromU32Error-5" class="associatedtype trait-impl"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#101">Source</a><a href="#associatedtype.TryFromU32Error-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.TryFromU32Error" class="associatedtype">TryFromU32Error</a> = <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/num/error/struct.TryFromIntError.html" title="struct core::num::error::TryFromIntError">TryFromIntError</a></h4></section><section id="method.try_from_u32-4" class="method trait-impl"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#101">Source</a><a href="#method.try_from_u32-4" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.try_from_u32" class="fn">try_from_u32</a>(i: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="associatedtype" href="trait.TrieValue.html#associatedtype.TryFromU32Error" title="type icu_collections::codepointtrie::TrieValue::TryFromU32Error">TryFromU32Error</a>&gt;</h4></section><section id="method.to_u32-4" class="method trait-impl"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#101">Source</a><a href="#method.to_u32-4" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.to_u32" class="fn">to_u32</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u32.html">u32</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TrieValue-for-u16" class="impl"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#102">Source</a><a href="#impl-TrieValue-for-u16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TrieValue.html" title="trait icu_collections::codepointtrie::TrieValue">TrieValue</a> for <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u16.html">u16</a></h3></section></summary><div class="impl-items"><section id="associatedtype.TryFromU32Error-6" class="associatedtype trait-impl"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#102">Source</a><a href="#associatedtype.TryFromU32Error-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.TryFromU32Error" class="associatedtype">TryFromU32Error</a> = <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/num/error/struct.TryFromIntError.html" title="struct core::num::error::TryFromIntError">TryFromIntError</a></h4></section><section id="method.try_from_u32-5" class="method trait-impl"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#102">Source</a><a href="#method.try_from_u32-5" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.try_from_u32" class="fn">try_from_u32</a>(i: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="associatedtype" href="trait.TrieValue.html#associatedtype.TryFromU32Error" title="type icu_collections::codepointtrie::TrieValue::TryFromU32Error">TryFromU32Error</a>&gt;</h4></section><section id="method.to_u32-5" class="method trait-impl"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#102">Source</a><a href="#method.to_u32-5" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.to_u32" class="fn">to_u32</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u32.html">u32</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TrieValue-for-u32" class="impl"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#103">Source</a><a href="#impl-TrieValue-for-u32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TrieValue.html" title="trait icu_collections::codepointtrie::TrieValue">TrieValue</a> for <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u32.html">u32</a></h3></section></summary><div class="impl-items"><section id="associatedtype.TryFromU32Error-7" class="associatedtype trait-impl"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#103">Source</a><a href="#associatedtype.TryFromU32Error-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.TryFromU32Error" class="associatedtype">TryFromU32Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section><section id="method.try_from_u32-6" class="method trait-impl"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#103">Source</a><a href="#method.try_from_u32-6" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.try_from_u32" class="fn">try_from_u32</a>(i: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="associatedtype" href="trait.TrieValue.html#associatedtype.TryFromU32Error" title="type icu_collections::codepointtrie::TrieValue::TryFromU32Error">TryFromU32Error</a>&gt;</h4></section><section id="method.to_u32-6" class="method trait-impl"><a class="src rightside" href="../../src/icu_collections/codepointtrie/cptrie.rs.html#103">Source</a><a href="#method.to_u32-6" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.to_u32" class="fn">to_u32</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u32.html">u32</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/icu_collections/codepointtrie/cptrie/trait.TrieValue.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html>