You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport" content="width=device-width, initial-scale=1.0"><metaname="generator" content="rustdoc"><metaname="description" content="Source of the Rust file `src/as_bytes.rs`."><title>as_bytes.rs - source</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><linkrel="stylesheet" href="../../static.files/normalize-9960930a.css"><linkrel="stylesheet" href="../../static.files/rustdoc-46132b98.css"><metaname="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="triemap" data-themes="" data-resource-suffix="" data-rustdoc-version="1.85.1 (4eb161250 2025-03-15)" data-channel="1.85.1" data-search-js="search-75f5ac3e.js" data-settings-js="settings-0f613d39.js" ><scriptsrc="../../static.files/storage-59e33391.js"></script><scriptdefersrc="../../static.files/src-script-56102188.js"></script><scriptdefersrc="../../src-files.js"></script><scriptdefersrc="../../static.files/main-5f194d8c.js"></script><noscript><linkrel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><linkrel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><linkrel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><bodyclass="rustdoc src"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="sidebar"><divclass="src-sidebar-title"><h2>Files</h2></div></nav><divclass="sidebar-resizer"></div><main><rustdoc-search></rustdoc-search><sectionid="main-content" class="content"><divclass="main-heading"><h1><divclass="sub-heading">triemap/</div>as_bytes.rs</h1><rustdoc-toolbar></rustdoc-toolbar></div><divclass="example-wrap"><divdata-nosnippet><preclass="src-line-numbers">
2
+
<ahref="#1" id="1">1</a>
3
+
<ahref="#2" id="2">2</a>
4
+
<ahref="#3" id="3">3</a>
5
+
<ahref="#4" id="4">4</a>
6
+
<ahref="#5" id="5">5</a>
7
+
<ahref="#6" id="6">6</a>
8
+
<ahref="#7" id="7">7</a>
9
+
<ahref="#8" id="8">8</a>
10
+
<ahref="#9" id="9">9</a>
11
+
<ahref="#10" id="10">10</a>
12
+
<ahref="#11" id="11">11</a>
13
+
<ahref="#12" id="12">12</a>
14
+
<ahref="#13" id="13">13</a>
15
+
<ahref="#14" id="14">14</a>
16
+
<ahref="#15" id="15">15</a>
17
+
<ahref="#16" id="16">16</a>
18
+
<ahref="#17" id="17">17</a>
19
+
<ahref="#18" id="18">18</a>
20
+
<ahref="#19" id="19">19</a>
21
+
<ahref="#20" id="20">20</a>
22
+
<ahref="#21" id="21">21</a>
23
+
<ahref="#22" id="22">22</a>
24
+
<ahref="#23" id="23">23</a>
25
+
<ahref="#24" id="24">24</a>
26
+
<ahref="#25" id="25">25</a>
27
+
<ahref="#26" id="26">26</a>
28
+
<ahref="#27" id="27">27</a>
29
+
<ahref="#28" id="28">28</a>
30
+
<ahref="#29" id="29">29</a>
31
+
<ahref="#30" id="30">30</a>
32
+
<ahref="#31" id="31">31</a>
33
+
<ahref="#32" id="32">32</a>
34
+
<ahref="#33" id="33">33</a>
35
+
<ahref="#34" id="34">34</a>
36
+
<ahref="#35" id="35">35</a>
37
+
<ahref="#36" id="36">36</a>
38
+
<ahref="#37" id="37">37</a>
39
+
<ahref="#38" id="38">38</a>
40
+
<ahref="#39" id="39">39</a>
41
+
<ahref="#40" id="40">40</a>
42
+
<ahref="#41" id="41">41</a>
43
+
<ahref="#42" id="42">42</a>
44
+
<ahref="#43" id="43">43</a>
45
+
<ahref="#44" id="44">44</a>
46
+
<ahref="#45" id="45">45</a>
47
+
<ahref="#46" id="46">46</a>
48
+
<ahref="#47" id="47">47</a>
49
+
<ahref="#48" id="48">48</a></pre></div><preclass="rust"><code><spanclass="doccomment">/// The `AsBytes` trait allows a type to be used as a key in a `TrieMap`.
50
+
///
51
+
/// It provides a method to convert the type to a byte slice.
52
+
///
53
+
</span><spanclass="kw">pub trait </span>AsBytes {
54
+
<spanclass="doccomment">/// Converts the value to a byte slice.
0 commit comments