Files
rust-gpu/api/raw_string/index.html
github-merge-queue[bot] a4e5fdd119 Deploying to gh-pages from @ 8494942c0b ๐Ÿš€
2026-04-13 16:52:47 +00:00

6 lines
4.9 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="`RawString` and `RawStr` are the equivalents of `String` and `str`, or `OsString` and `OsStr`, but without any guarantees about the encoding."><title>raw_string - 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-17e0aaed.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="raw_string" data-themes="" data-resource-suffix="" data-rustdoc-version="1.96.0-nightly (02c7f9bec 2026-04-10)" data-channel="nightly" data-search-js="search-b5634cc7.js" data-stringdex-js="stringdex-2da4960a.js" data-settings-js="settings-170eb4bf.js" ><script src="../static.files/storage-41dd4d93.js"></script><script defer src="../crates.js"></script><script defer src="../static.files/main-5013f961.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-f7c3ffd8.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 crate"><a class="skip-main-content" href="#main-content">Skip to main content</a><!--[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="#">Crate raw_string</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../raw_string/index.html">raw_<wbr>string</a><span class="version">0.3.5</span></h2></div><div class="sidebar-elems"><ul class="block"><li><a id="all-types" href="all.html">All Items</a></li></ul><section id="rustdoc-toc"><h3><a href="#modules">Crate 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="#traits" title="Traits">Traits</a></li></ul></section><div id="rustdoc-modnav"></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content" tabindex="-1"><div class="main-heading"><h1>Crate <span>raw_<wbr>string</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/raw_string/lib.rs.html#1-18">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p><code>RawString</code> and <code>RawStr</code> are the equivalents of <code>String</code> and
<code>str</code>, or <code>OsString</code> and <code>OsStr</code>, but without any guarantees
about the encoding.</p>
<p>They are useful in all places where you would otherwise use
<code>Vec&lt;u8&gt;</code> and <code>[u8]</code> to represent your strings.</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="unix/index.html" title="mod raw_string::unix">unix</a></dt><dd>Conversions only available on unix.</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.RawStr.html" title="struct raw_string::RawStr">RawStr</a></dt><dd>A <code>str</code> with unchecked contents.</dd><dt><a class="struct" href="struct.RawString.html" title="struct raw_string::RawString">RawString</a></dt><dd>A <code>String</code> with unchecked contents.</dd><dt><a class="struct" href="struct.Utf8Chunk.html" title="struct raw_string::Utf8Chunk">Utf8<wbr>Chunk</a></dt><dd>A chunk of valid UTF-8, possibly followed by a broken character encoding.</dd><dt><a class="struct" href="struct.Utf8ChunksIter.html" title="struct raw_string::Utf8ChunksIter">Utf8<wbr>Chunks<wbr>Iter</a></dt><dd>An iterator over chunks of valid UTF-8 in a RawStr.</dd></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">ยง</a></h2><dl class="item-table"><dt><a class="trait" href="trait.RawStrIndex.html" title="trait raw_string::RawStrIndex">RawStr<wbr>Index</a></dt><dd>The equivalent of <code>SliceIndex</code> for <code>RawStr</code>.</dd></dl></section></div></main></body></html>