Initial docs commit
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -0,0 +1,33 @@
|
||||
<!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="Result of a (potentially partial) decode or encode operation with replacement."><meta name="keywords" content="rust, rustlang, rust-lang, CoderResult"><title>encoding_rs::CoderResult - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class="location">Enum CoderResult</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.InputEmpty">InputEmpty</a><a href="#variant.OutputFull">OutputFull</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Debug">Debug</a><a href="#impl-Eq">Eq</a><a href="#impl-PartialEq%3CCoderResult%3E">PartialEq<CoderResult></a><a href="#impl-StructuralEq">StructuralEq</a><a href="#impl-StructuralPartialEq">StructuralPartialEq</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="CoderResult" data-ty="enum" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Enum <a href="index.html">encoding_rs</a>::<wbr><a class="enum" href="">CoderResult</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#3482-3496" title="goto source code">[src]</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust enum"><span class="docblock attributes top-attr">#[must_use]</span>pub enum CoderResult {
|
||||
InputEmpty,
|
||||
OutputFull,
|
||||
}</pre></div><div class="docblock"><p>Result of a (potentially partial) decode or encode operation with
|
||||
replacement.</p>
|
||||
</div><h2 id="variants" class="variants small-section-header">
|
||||
Variants<a href="#variants" class="anchor"></a></h2>
|
||||
<div id="variant.InputEmpty" class="variant small-section-header"><a href="#variant.InputEmpty" class="anchor field"></a><code>InputEmpty</code></div><div class="docblock"><p>The input was exhausted.</p>
|
||||
<p>If this result was returned from a call where <code>last</code> was <code>true</code>, the
|
||||
conversion process has completed. Otherwise, the caller should call a
|
||||
decode or encode method again with more input.</p>
|
||||
</div><div id="variant.OutputFull" class="variant small-section-header"><a href="#variant.OutputFull" class="anchor field"></a><code>OutputFull</code></div><div class="docblock"><p>The converter cannot produce another unit of output, because the output
|
||||
buffer does not have enough space left.</p>
|
||||
<p>The caller must provide more output space upon the next call and re-push
|
||||
the remaining input to the converter.</p>
|
||||
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-Debug" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../encoding_rs/enum.CoderResult.html" title="enum encoding_rs::CoderResult">CoderResult</a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../src/encoding_rs/lib.rs.html#3481" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../src/encoding_rs/lib.rs.html#3481" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id="impl-Eq" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="enum" href="../encoding_rs/enum.CoderResult.html" title="enum encoding_rs::CoderResult">CoderResult</a></code><a href="#impl-Eq" class="anchor"></a><a class="srclink" href="../src/encoding_rs/lib.rs.html#3481" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-PartialEq%3CCoderResult%3E" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="enum" href="../encoding_rs/enum.CoderResult.html" title="enum encoding_rs::CoderResult">CoderResult</a>> for <a class="enum" href="../encoding_rs/enum.CoderResult.html" title="enum encoding_rs::CoderResult">CoderResult</a></code><a href="#impl-PartialEq%3CCoderResult%3E" class="anchor"></a><a class="srclink" href="../src/encoding_rs/lib.rs.html#3481" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.eq" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="enum" href="../encoding_rs/enum.CoderResult.html" title="enum encoding_rs::CoderResult">CoderResult</a>) -> bool</code><a class="srclink" href="../src/encoding_rs/lib.rs.html#3481" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
|
||||
by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||||
</div><h4 id="method.ne" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>pub fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: &Rhs) -> bool</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#213" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>
|
||||
</div></div><h3 id="impl-StructuralEq" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html" title="trait core::marker::StructuralEq">StructuralEq</a> for <a class="enum" href="../encoding_rs/enum.CoderResult.html" title="enum encoding_rs::CoderResult">CoderResult</a></code><a href="#impl-StructuralEq" class="anchor"></a><a class="srclink" href="../src/encoding_rs/lib.rs.html#3481" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-StructuralPartialEq" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="enum" href="../encoding_rs/enum.CoderResult.html" title="enum encoding_rs::CoderResult">CoderResult</a></code><a href="#impl-StructuralPartialEq" class="anchor"></a><a class="srclink" href="../src/encoding_rs/lib.rs.html#3481" title="goto source code">[src]</a></h3><div class="impl-items"></div></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><h3 id="impl-Send" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="../encoding_rs/enum.CoderResult.html" title="enum encoding_rs::CoderResult">CoderResult</a></code><a href="#impl-Send" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Sync" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="../encoding_rs/enum.CoderResult.html" title="enum encoding_rs::CoderResult">CoderResult</a></code><a href="#impl-Sync" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Unpin" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="enum" href="../encoding_rs/enum.CoderResult.html" title="enum encoding_rs::CoderResult">CoderResult</a></code><a href="#impl-Unpin" class="anchor"></a></h3><div class="impl-items"></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><h3 id="impl-Any" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#131-135" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.type_id" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#132" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id="impl-Borrow%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Borrow%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#207-211" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> &T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#208" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id="impl-BorrowMut%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-218" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow_mut" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> &mut T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#215" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id="impl-From%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href="#impl-From%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#545-549" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -> T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#546" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-Into%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href="#impl-Into%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#534-541" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> U</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#538" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-TryFrom%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href="#impl-TryFrom%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#582-591" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id="method.try_from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fnname">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#588" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-TryInto%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href="#impl-TryInto%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#568-577" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error-1" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id="method.try_into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fnname">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#574" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,46 @@
|
||||
<!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="Result of a (potentially partial) decode operation without replacement."><meta name="keywords" content="rust, rustlang, rust-lang, DecoderResult"><title>encoding_rs::DecoderResult - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class="location">Enum DecoderResult</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.InputEmpty">InputEmpty</a><a href="#variant.Malformed">Malformed</a><a href="#variant.OutputFull">OutputFull</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Debug">Debug</a><a href="#impl-Eq">Eq</a><a href="#impl-PartialEq%3CDecoderResult%3E">PartialEq<DecoderResult></a><a href="#impl-StructuralEq">StructuralEq</a><a href="#impl-StructuralPartialEq">StructuralPartialEq</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="DecoderResult" data-ty="enum" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Enum <a href="index.html">encoding_rs</a>::<wbr><a class="enum" href="">DecoderResult</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#3501-3533" title="goto source code">[src]</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust enum"><span class="docblock attributes top-attr">#[must_use]</span>pub enum DecoderResult {
|
||||
InputEmpty,
|
||||
OutputFull,
|
||||
Malformed(u8, u8),
|
||||
}</pre></div><div class="docblock"><p>Result of a (potentially partial) decode operation without replacement.</p>
|
||||
</div><h2 id="variants" class="variants small-section-header">
|
||||
Variants<a href="#variants" class="anchor"></a></h2>
|
||||
<div id="variant.InputEmpty" class="variant small-section-header"><a href="#variant.InputEmpty" class="anchor field"></a><code>InputEmpty</code></div><div class="docblock"><p>The input was exhausted.</p>
|
||||
<p>If this result was returned from a call where <code>last</code> was <code>true</code>, the
|
||||
decoding process has completed. Otherwise, the caller should call a
|
||||
decode method again with more input.</p>
|
||||
</div><div id="variant.OutputFull" class="variant small-section-header"><a href="#variant.OutputFull" class="anchor field"></a><code>OutputFull</code></div><div class="docblock"><p>The decoder cannot produce another unit of output, because the output
|
||||
buffer does not have enough space left.</p>
|
||||
<p>The caller must provide more output space upon the next call and re-push
|
||||
the remaining input to the decoder.</p>
|
||||
</div><div id="variant.Malformed" class="variant small-section-header"><a href="#variant.Malformed" class="anchor field"></a><code>Malformed(u8, u8)</code></div><div class="docblock"><p>The decoder encountered a malformed byte sequence.</p>
|
||||
<p>The caller must either treat this as a fatal error or must append one
|
||||
REPLACEMENT CHARACTER (U+FFFD) to the output and then re-push the
|
||||
the remaining input to the decoder.</p>
|
||||
<p>The first wrapped integer indicates the length of the malformed byte
|
||||
sequence. The second wrapped integer indicates the number of bytes
|
||||
that were consumed after the malformed sequence. If the second
|
||||
integer is zero, the last byte that was consumed is the last byte of
|
||||
the malformed sequence. Note that the malformed bytes may have been part
|
||||
of an earlier input buffer.</p>
|
||||
<p>The first wrapped integer can have values 1, 2, 3 or 4. The second
|
||||
wrapped integer can have values 0, 1, 2 or 3. The worst-case sum
|
||||
of the two is 6, which happens with ISO-2022-JP.</p>
|
||||
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-Debug" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../encoding_rs/enum.DecoderResult.html" title="enum encoding_rs::DecoderResult">DecoderResult</a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../src/encoding_rs/lib.rs.html#3500" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../src/encoding_rs/lib.rs.html#3500" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id="impl-Eq" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="enum" href="../encoding_rs/enum.DecoderResult.html" title="enum encoding_rs::DecoderResult">DecoderResult</a></code><a href="#impl-Eq" class="anchor"></a><a class="srclink" href="../src/encoding_rs/lib.rs.html#3500" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-PartialEq%3CDecoderResult%3E" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="enum" href="../encoding_rs/enum.DecoderResult.html" title="enum encoding_rs::DecoderResult">DecoderResult</a>> for <a class="enum" href="../encoding_rs/enum.DecoderResult.html" title="enum encoding_rs::DecoderResult">DecoderResult</a></code><a href="#impl-PartialEq%3CDecoderResult%3E" class="anchor"></a><a class="srclink" href="../src/encoding_rs/lib.rs.html#3500" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.eq" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="enum" href="../encoding_rs/enum.DecoderResult.html" title="enum encoding_rs::DecoderResult">DecoderResult</a>) -> bool</code><a class="srclink" href="../src/encoding_rs/lib.rs.html#3500" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
|
||||
by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||||
</div><h4 id="method.ne" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: &<a class="enum" href="../encoding_rs/enum.DecoderResult.html" title="enum encoding_rs::DecoderResult">DecoderResult</a>) -> bool</code><a class="srclink" href="../src/encoding_rs/lib.rs.html#3500" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>
|
||||
</div></div><h3 id="impl-StructuralEq" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html" title="trait core::marker::StructuralEq">StructuralEq</a> for <a class="enum" href="../encoding_rs/enum.DecoderResult.html" title="enum encoding_rs::DecoderResult">DecoderResult</a></code><a href="#impl-StructuralEq" class="anchor"></a><a class="srclink" href="../src/encoding_rs/lib.rs.html#3500" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-StructuralPartialEq" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="enum" href="../encoding_rs/enum.DecoderResult.html" title="enum encoding_rs::DecoderResult">DecoderResult</a></code><a href="#impl-StructuralPartialEq" class="anchor"></a><a class="srclink" href="../src/encoding_rs/lib.rs.html#3500" title="goto source code">[src]</a></h3><div class="impl-items"></div></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><h3 id="impl-Send" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="../encoding_rs/enum.DecoderResult.html" title="enum encoding_rs::DecoderResult">DecoderResult</a></code><a href="#impl-Send" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Sync" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="../encoding_rs/enum.DecoderResult.html" title="enum encoding_rs::DecoderResult">DecoderResult</a></code><a href="#impl-Sync" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Unpin" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="enum" href="../encoding_rs/enum.DecoderResult.html" title="enum encoding_rs::DecoderResult">DecoderResult</a></code><a href="#impl-Unpin" class="anchor"></a></h3><div class="impl-items"></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><h3 id="impl-Any" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#131-135" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.type_id" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#132" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id="impl-Borrow%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Borrow%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#207-211" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> &T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#208" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id="impl-BorrowMut%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-218" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow_mut" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> &mut T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#215" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id="impl-From%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href="#impl-From%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#545-549" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -> T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#546" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-Into%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href="#impl-Into%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#534-541" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> U</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#538" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-TryFrom%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href="#impl-TryFrom%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#582-591" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id="method.try_from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fnname">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#588" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-TryInto%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href="#impl-TryInto%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#568-577" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error-1" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id="method.try_into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fnname">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#574" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,37 @@
|
||||
<!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="Result of a (potentially partial) encode operation without replacement."><meta name="keywords" content="rust, rustlang, rust-lang, EncoderResult"><title>encoding_rs::EncoderResult - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class="location">Enum EncoderResult</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.InputEmpty">InputEmpty</a><a href="#variant.OutputFull">OutputFull</a><a href="#variant.Unmappable">Unmappable</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Debug">Debug</a><a href="#impl-Eq">Eq</a><a href="#impl-PartialEq%3CEncoderResult%3E">PartialEq<EncoderResult></a><a href="#impl-StructuralEq">StructuralEq</a><a href="#impl-StructuralPartialEq">StructuralPartialEq</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="EncoderResult" data-ty="enum" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Enum <a href="index.html">encoding_rs</a>::<wbr><a class="enum" href="">EncoderResult</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#4265-4286" title="goto source code">[src]</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust enum"><span class="docblock attributes top-attr">#[must_use]</span>pub enum EncoderResult {
|
||||
InputEmpty,
|
||||
OutputFull,
|
||||
Unmappable(char),
|
||||
}</pre></div><div class="docblock"><p>Result of a (potentially partial) encode operation without replacement.</p>
|
||||
</div><h2 id="variants" class="variants small-section-header">
|
||||
Variants<a href="#variants" class="anchor"></a></h2>
|
||||
<div id="variant.InputEmpty" class="variant small-section-header"><a href="#variant.InputEmpty" class="anchor field"></a><code>InputEmpty</code></div><div class="docblock"><p>The input was exhausted.</p>
|
||||
<p>If this result was returned from a call where <code>last</code> was <code>true</code>, the
|
||||
decoding process has completed. Otherwise, the caller should call a
|
||||
decode method again with more input.</p>
|
||||
</div><div id="variant.OutputFull" class="variant small-section-header"><a href="#variant.OutputFull" class="anchor field"></a><code>OutputFull</code></div><div class="docblock"><p>The encoder cannot produce another unit of output, because the output
|
||||
buffer does not have enough space left.</p>
|
||||
<p>The caller must provide more output space upon the next call and re-push
|
||||
the remaining input to the decoder.</p>
|
||||
</div><div id="variant.Unmappable" class="variant small-section-header"><a href="#variant.Unmappable" class="anchor field"></a><code>Unmappable(char)</code></div><div class="docblock"><p>The encoder encountered an unmappable character.</p>
|
||||
<p>The caller must either treat this as a fatal error or must append
|
||||
a placeholder to the output and then re-push the remaining input to the
|
||||
encoder.</p>
|
||||
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-Debug" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../encoding_rs/enum.EncoderResult.html" title="enum encoding_rs::EncoderResult">EncoderResult</a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../src/encoding_rs/lib.rs.html#4264" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../src/encoding_rs/lib.rs.html#4264" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id="impl-Eq" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="enum" href="../encoding_rs/enum.EncoderResult.html" title="enum encoding_rs::EncoderResult">EncoderResult</a></code><a href="#impl-Eq" class="anchor"></a><a class="srclink" href="../src/encoding_rs/lib.rs.html#4264" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-PartialEq%3CEncoderResult%3E" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="enum" href="../encoding_rs/enum.EncoderResult.html" title="enum encoding_rs::EncoderResult">EncoderResult</a>> for <a class="enum" href="../encoding_rs/enum.EncoderResult.html" title="enum encoding_rs::EncoderResult">EncoderResult</a></code><a href="#impl-PartialEq%3CEncoderResult%3E" class="anchor"></a><a class="srclink" href="../src/encoding_rs/lib.rs.html#4264" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.eq" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="enum" href="../encoding_rs/enum.EncoderResult.html" title="enum encoding_rs::EncoderResult">EncoderResult</a>) -> bool</code><a class="srclink" href="../src/encoding_rs/lib.rs.html#4264" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
|
||||
by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||||
</div><h4 id="method.ne" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: &<a class="enum" href="../encoding_rs/enum.EncoderResult.html" title="enum encoding_rs::EncoderResult">EncoderResult</a>) -> bool</code><a class="srclink" href="../src/encoding_rs/lib.rs.html#4264" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>
|
||||
</div></div><h3 id="impl-StructuralEq" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html" title="trait core::marker::StructuralEq">StructuralEq</a> for <a class="enum" href="../encoding_rs/enum.EncoderResult.html" title="enum encoding_rs::EncoderResult">EncoderResult</a></code><a href="#impl-StructuralEq" class="anchor"></a><a class="srclink" href="../src/encoding_rs/lib.rs.html#4264" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-StructuralPartialEq" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="enum" href="../encoding_rs/enum.EncoderResult.html" title="enum encoding_rs::EncoderResult">EncoderResult</a></code><a href="#impl-StructuralPartialEq" class="anchor"></a><a class="srclink" href="../src/encoding_rs/lib.rs.html#4264" title="goto source code">[src]</a></h3><div class="impl-items"></div></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><h3 id="impl-Send" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="../encoding_rs/enum.EncoderResult.html" title="enum encoding_rs::EncoderResult">EncoderResult</a></code><a href="#impl-Send" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Sync" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="../encoding_rs/enum.EncoderResult.html" title="enum encoding_rs::EncoderResult">EncoderResult</a></code><a href="#impl-Sync" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Unpin" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="enum" href="../encoding_rs/enum.EncoderResult.html" title="enum encoding_rs::EncoderResult">EncoderResult</a></code><a href="#impl-Unpin" class="anchor"></a></h3><div class="impl-items"></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><h3 id="impl-Any" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#131-135" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.type_id" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#132" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id="impl-Borrow%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Borrow%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#207-211" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> &T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#208" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id="impl-BorrowMut%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-218" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow_mut" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> &mut T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#215" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id="impl-From%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href="#impl-From%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#545-549" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -> T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#546" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-Into%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href="#impl-Into%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#534-541" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> U</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#538" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-TryFrom%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href="#impl-TryFrom%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#582-591" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id="method.try_from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fnname">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#588" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-TryInto%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href="#impl-TryInto%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#568-577" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error-1" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id="method.try_into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fnname">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#574" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,675 @@
|
||||
<!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="encoding_rs is a Gecko-oriented Free Software / Open Source implementation of the Encoding Standard in Rust. Gecko-oriented means that converting to and from UTF-16 is supported in addition to converting to and from UTF-8, that the performance and streamability goals are browser-oriented, and that FFI-friendliness is a goal."><meta name="keywords" content="rust, rustlang, rust-lang, encoding_rs"><title>encoding_rs - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class="location">Crate encoding_rs</p><div class="block version"><p>Version 0.8.28</p></div><div class="sidebar-elems"><a id="all-types" href="all.html"><p>See all encoding_rs's items</p></a><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#statics">Statics</a></li></ul></div><p class="location"></p><div id="sidebar-vars" data-name="encoding_rs" data-ty="mod" data-relpath="../"></div></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Crate <a class="mod" href="">encoding_rs</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#10-6050" title="goto source code">[src]</a></span></h1><div class="docblock"><p>encoding_rs is a Gecko-oriented Free Software / Open Source implementation
|
||||
of the <a href="https://encoding.spec.whatwg.org/">Encoding Standard</a> in Rust.
|
||||
Gecko-oriented means that converting to and from UTF-16 is supported in
|
||||
addition to converting to and from UTF-8, that the performance and
|
||||
streamability goals are browser-oriented, and that FFI-friendliness is a
|
||||
goal.</p>
|
||||
<p>Additionally, the <code>mem</code> module provides functions that are useful for
|
||||
applications that need to be able to deal with legacy in-memory
|
||||
representations of Unicode.</p>
|
||||
<p>For expectation setting, please be sure to read the sections
|
||||
<a href="#utf-16le-utf-16be-and-unicode-encoding-schemes"><em>UTF-16LE, UTF-16BE and Unicode Encoding Schemes</em></a>,
|
||||
<a href="#iso-8859-1"><em>ISO-8859-1</em></a> and <a href="#web--browser-focus"><em>Web / Browser Focus</em></a> below.</p>
|
||||
<p>There is a <a href="https://hsivonen.fi/encoding_rs/">long-form write-up</a> about the
|
||||
design and internals of the crate.</p>
|
||||
<h1 id="availability" class="section-header"><a href="#availability">Availability</a></h1>
|
||||
<p>The code is available under the
|
||||
<a href="https://www.apache.org/licenses/LICENSE-2.0">Apache license, Version 2.0</a>
|
||||
or the <a href="https://opensource.org/licenses/MIT">MIT license</a>, at your option.
|
||||
See the
|
||||
<a href="https://github.com/hsivonen/encoding_rs/blob/master/COPYRIGHT"><code>COPYRIGHT</code></a>
|
||||
file for details.
|
||||
The <a href="https://github.com/hsivonen/encoding_rs">repository is on GitHub</a>. The
|
||||
<a href="https://crates.io/crates/encoding_rs">crate is available on crates.io</a>.</p>
|
||||
<h1 id="integration-with-stdio" class="section-header"><a href="#integration-with-stdio">Integration with <code>std::io</code></a></h1>
|
||||
<p>This crate doesn’t implement traits from <code>std::io</code>. However, for the case of
|
||||
wrapping a <code>std::io::Read</code> in a decoder that implements <code>std::io::Read</code> and
|
||||
presents the data from the wrapped <code>std::io::Read</code> as UTF-8 is addressed by
|
||||
the <a href="https://docs.rs/encoding_rs_io/"><code>encoding_rs_io</code></a> crate.</p>
|
||||
<h1 id="examples" class="section-header"><a href="#examples">Examples</a></h1>
|
||||
<p>Example programs:</p>
|
||||
<ul>
|
||||
<li><a href="https://github.com/hsivonen/recode_rs">Rust</a></li>
|
||||
<li><a href="https://github.com/hsivonen/recode_c">C</a></li>
|
||||
<li><a href="https://github.com/hsivonen/recode_cpp">C++</a></li>
|
||||
</ul>
|
||||
<p>Decode using the non-streaming API:</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||||
<span class="kw">use</span> <span class="ident">encoding_rs</span>::<span class="kw-2">*</span>;
|
||||
|
||||
<span class="kw">let</span> <span class="ident">expectation</span> <span class="op">=</span> <span class="string">"\u{30CF}\u{30ED}\u{30FC}\u{30FB}\u{30EF}\u{30FC}\u{30EB}\u{30C9}"</span>;
|
||||
<span class="kw">let</span> <span class="ident">bytes</span> <span class="op">=</span> <span class="string">b"\x83n\x83\x8D\x81[\x81E\x83\x8F\x81[\x83\x8B\x83h"</span>;
|
||||
|
||||
<span class="kw">let</span> (<span class="ident">cow</span>, <span class="ident">encoding_used</span>, <span class="ident">had_errors</span>) <span class="op">=</span> <span class="ident">SHIFT_JIS</span>.<span class="ident">decode</span>(<span class="ident">bytes</span>);
|
||||
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="kw-2">&</span><span class="ident">cow</span>[..], <span class="ident">expectation</span>);
|
||||
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">encoding_used</span>, <span class="ident">SHIFT_JIS</span>);
|
||||
<span class="macro">assert</span><span class="macro">!</span>(<span class="op">!</span><span class="ident">had_errors</span>);</pre></div>
|
||||
<p>Decode using the streaming API with minimal <code>unsafe</code>:</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||||
<span class="kw">use</span> <span class="ident">encoding_rs</span>::<span class="kw-2">*</span>;
|
||||
|
||||
<span class="kw">let</span> <span class="ident">expectation</span> <span class="op">=</span> <span class="string">"\u{30CF}\u{30ED}\u{30FC}\u{30FB}\u{30EF}\u{30FC}\u{30EB}\u{30C9}"</span>;
|
||||
|
||||
<span class="comment">// Use an array of byte slices to demonstrate content arriving piece by</span>
|
||||
<span class="comment">// piece from the network.</span>
|
||||
<span class="kw">let</span> <span class="ident">bytes</span>: [<span class="kw-2">&</span><span class="lifetime">'static</span> [<span class="ident">u8</span>]; <span class="number">4</span>] <span class="op">=</span> [<span class="string">b"\x83"</span>,
|
||||
<span class="string">b"n\x83\x8D\x81"</span>,
|
||||
<span class="string">b"[\x81E\x83\x8F\x81[\x83"</span>,
|
||||
<span class="string">b"\x8B\x83h"</span>];
|
||||
|
||||
<span class="comment">// Very short output buffer to demonstrate the output buffer getting full.</span>
|
||||
<span class="comment">// Normally, you'd use something like `[0u8; 2048]`.</span>
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">buffer_bytes</span> <span class="op">=</span> [<span class="number">0u8</span>; <span class="number">8</span>];
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">buffer</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">str</span> <span class="op">=</span> <span class="ident">std</span>::<span class="ident">str</span>::<span class="ident">from_utf8_mut</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">buffer_bytes</span>[..]).<span class="ident">unwrap</span>();
|
||||
|
||||
<span class="comment">// How many bytes in the buffer currently hold significant data.</span>
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">bytes_in_buffer</span> <span class="op">=</span> <span class="number">0usize</span>;
|
||||
|
||||
<span class="comment">// Collect the output to a string for demonstration purposes.</span>
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">output</span> <span class="op">=</span> <span class="ident">String</span>::<span class="ident">new</span>();
|
||||
|
||||
<span class="comment">// The `Decoder`</span>
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">decoder</span> <span class="op">=</span> <span class="ident">SHIFT_JIS</span>.<span class="ident">new_decoder</span>();
|
||||
|
||||
<span class="comment">// Track whether we see errors.</span>
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">total_had_errors</span> <span class="op">=</span> <span class="bool-val">false</span>;
|
||||
|
||||
<span class="comment">// Decode using a fixed-size intermediate buffer (for demonstrating the</span>
|
||||
<span class="comment">// use of a fixed-size buffer; normally when the output of an incremental</span>
|
||||
<span class="comment">// decode goes to a `String` one would use `Decoder.decode_to_string()` to</span>
|
||||
<span class="comment">// avoid the intermediate buffer).</span>
|
||||
<span class="kw">for</span> <span class="ident">input</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">bytes</span>[..] {
|
||||
<span class="comment">// The number of bytes already read from current `input` in total.</span>
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">total_read_from_current_input</span> <span class="op">=</span> <span class="number">0usize</span>;
|
||||
|
||||
<span class="kw">loop</span> {
|
||||
<span class="kw">let</span> (<span class="ident">result</span>, <span class="ident">read</span>, <span class="ident">written</span>, <span class="ident">had_errors</span>) <span class="op">=</span>
|
||||
<span class="ident">decoder</span>.<span class="ident">decode_to_str</span>(<span class="kw-2">&</span><span class="ident">input</span>[<span class="ident">total_read_from_current_input</span>..],
|
||||
<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">buffer</span>[<span class="ident">bytes_in_buffer</span>..],
|
||||
<span class="bool-val">false</span>);
|
||||
<span class="ident">total_read_from_current_input</span> <span class="op">+</span><span class="op">=</span> <span class="ident">read</span>;
|
||||
<span class="ident">bytes_in_buffer</span> <span class="op">+</span><span class="op">=</span> <span class="ident">written</span>;
|
||||
<span class="ident">total_had_errors</span> <span class="op">|</span><span class="op">=</span> <span class="ident">had_errors</span>;
|
||||
<span class="kw">match</span> <span class="ident">result</span> {
|
||||
<span class="ident">CoderResult</span>::<span class="ident">InputEmpty</span> <span class="op">=</span><span class="op">></span> {
|
||||
<span class="comment">// We have consumed the current input buffer. Break out of</span>
|
||||
<span class="comment">// the inner loop to get the next input buffer from the</span>
|
||||
<span class="comment">// outer loop.</span>
|
||||
<span class="kw">break</span>;
|
||||
},
|
||||
<span class="ident">CoderResult</span>::<span class="ident">OutputFull</span> <span class="op">=</span><span class="op">></span> {
|
||||
<span class="comment">// Write the current buffer out and consider the buffer</span>
|
||||
<span class="comment">// empty.</span>
|
||||
<span class="ident">output</span>.<span class="ident">push_str</span>(<span class="kw-2">&</span><span class="ident">buffer</span>[..<span class="ident">bytes_in_buffer</span>]);
|
||||
<span class="ident">bytes_in_buffer</span> <span class="op">=</span> <span class="number">0usize</span>;
|
||||
<span class="kw">continue</span>;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<span class="comment">// Process EOF</span>
|
||||
<span class="kw">loop</span> {
|
||||
<span class="kw">let</span> (<span class="ident">result</span>, <span class="kw">_</span>, <span class="ident">written</span>, <span class="ident">had_errors</span>) <span class="op">=</span>
|
||||
<span class="ident">decoder</span>.<span class="ident">decode_to_str</span>(<span class="string">b""</span>,
|
||||
<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">buffer</span>[<span class="ident">bytes_in_buffer</span>..],
|
||||
<span class="bool-val">true</span>);
|
||||
<span class="ident">bytes_in_buffer</span> <span class="op">+</span><span class="op">=</span> <span class="ident">written</span>;
|
||||
<span class="ident">total_had_errors</span> <span class="op">|</span><span class="op">=</span> <span class="ident">had_errors</span>;
|
||||
<span class="comment">// Write the current buffer out and consider the buffer empty.</span>
|
||||
<span class="comment">// Need to do this here for both `match` arms, because we exit the</span>
|
||||
<span class="comment">// loop on `CoderResult::InputEmpty`.</span>
|
||||
<span class="ident">output</span>.<span class="ident">push_str</span>(<span class="kw-2">&</span><span class="ident">buffer</span>[..<span class="ident">bytes_in_buffer</span>]);
|
||||
<span class="ident">bytes_in_buffer</span> <span class="op">=</span> <span class="number">0usize</span>;
|
||||
<span class="kw">match</span> <span class="ident">result</span> {
|
||||
<span class="ident">CoderResult</span>::<span class="ident">InputEmpty</span> <span class="op">=</span><span class="op">></span> {
|
||||
<span class="comment">// Done!</span>
|
||||
<span class="kw">break</span>;
|
||||
},
|
||||
<span class="ident">CoderResult</span>::<span class="ident">OutputFull</span> <span class="op">=</span><span class="op">></span> {
|
||||
<span class="kw">continue</span>;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="kw-2">&</span><span class="ident">output</span>[..], <span class="ident">expectation</span>);
|
||||
<span class="macro">assert</span><span class="macro">!</span>(<span class="op">!</span><span class="ident">total_had_errors</span>);</pre></div>
|
||||
<h2 id="utf-16le-utf-16be-and-unicode-encoding-schemes" class="section-header"><a href="#utf-16le-utf-16be-and-unicode-encoding-schemes">UTF-16LE, UTF-16BE and Unicode Encoding Schemes</a></h2>
|
||||
<p>The Encoding Standard doesn’t specify encoders for UTF-16LE and UTF-16BE,
|
||||
<strong>so this crate does not provide encoders for those encodings</strong>!
|
||||
Along with the replacement encoding, their <em>output encoding</em> is UTF-8,
|
||||
so you get an UTF-8 encoder if you request an encoder for them.</p>
|
||||
<p>Additionally, the Encoding Standard factors BOM handling into wrapper
|
||||
algorithms so that BOM handling isn’t part of the definition of the
|
||||
encodings themselves. The Unicode <em>encoding schemes</em> in the Unicode
|
||||
Standard define BOM handling or lack thereof as part of the encoding
|
||||
scheme.</p>
|
||||
<p>When used with the <code>_without_bom_handling</code> entry points, the UTF-16LE
|
||||
and UTF-16BE <em>encodings</em> match the same-named <em>encoding schemes</em> from
|
||||
the Unicode Standard.</p>
|
||||
<p>When used with the <code>_with_bom_removal</code> entry points, the UTF-8
|
||||
<em>encoding</em> matches the UTF-8 <em>encoding scheme</em> from the Unicode
|
||||
Standard.</p>
|
||||
<p>This crate does not provide a mode that matches the UTF-16 <em>encoding
|
||||
scheme</em> from the Unicode Stardard. The UTF-16BE encoding used with
|
||||
the entry points without <code>_bom_</code> qualifiers is the closest match,
|
||||
but in that case, the UTF-8 BOM triggers UTF-8 decoding, which is
|
||||
not part of the behavior of the UTF-16 <em>encoding scheme</em> per the
|
||||
Unicode Standard.</p>
|
||||
<p>The UTF-32 family of Unicode encoding schemes is not supported
|
||||
by this crate. The Encoding Standard doesn’t define any UTF-32
|
||||
family encodings, since they aren’t necessary for consuming Web
|
||||
content.</p>
|
||||
<h2 id="iso-8859-1" class="section-header"><a href="#iso-8859-1">ISO-8859-1</a></h2>
|
||||
<p>ISO-8859-1 does not exist as a distinct encoding from windows-1252 in
|
||||
the Encoding Standard. Therefore, an encoding that maps the unsigned
|
||||
byte value to the same Unicode scalar value is not available via
|
||||
<code>Encoding</code> in this crate.</p>
|
||||
<p>However, the functions whose name starts with <code>convert</code> and contains
|
||||
<code>latin1</code> in the <code>mem</code> module support such conversions, which are known as
|
||||
<a href="https://infra.spec.whatwg.org/#isomorphic-decode"><em>isomorphic decode</em></a>
|
||||
and <a href="https://infra.spec.whatwg.org/#isomorphic-encode"><em>isomorphic encode</em></a>
|
||||
in the <a href="https://infra.spec.whatwg.org/">Infra Standard</a>.</p>
|
||||
<h2 id="web--browser-focus" class="section-header"><a href="#web--browser-focus">Web / Browser Focus</a></h2>
|
||||
<p>Both in terms of scope and performance, the focus is on the Web. For scope,
|
||||
this means that encoding_rs implements the Encoding Standard fully and
|
||||
doesn’t implement encodings that are not specified in the Encoding
|
||||
Standard. For performance, this means that decoding performance is
|
||||
important as well as performance for encoding into UTF-8 or encoding the
|
||||
Basic Latin range (ASCII) into legacy encodings. Non-Basic Latin needs to
|
||||
be encoded into legacy encodings in only two places in the Web platform: in
|
||||
the query part of URLs, in which case it’s a matter of relatively rare
|
||||
error handling, and in form submission, in which case the user action and
|
||||
networking tend to hide the performance of the encoder.</p>
|
||||
<p>Deemphasizing performance of encoding non-Basic Latin text into legacy
|
||||
encodings enables smaller code size thanks to the encoder side using the
|
||||
decode-optimized data tables without having encode-optimized data tables at
|
||||
all. Even in decoders, smaller lookup table size is preferred over avoiding
|
||||
multiplication operations.</p>
|
||||
<p>Additionally, performance is a non-goal for the ASCII-incompatible
|
||||
ISO-2022-JP encoding, which are rarely used on the Web. Instead of
|
||||
performance, the decoder for ISO-2022-JP optimizes for ease/clarity
|
||||
of implementation.</p>
|
||||
<p>Despite the browser focus, the hope is that non-browser applications
|
||||
that wish to consume Web content or submit Web forms in a Web-compatible
|
||||
way will find encoding_rs useful. While encoding_rs does not try to match
|
||||
Windows behavior, many of the encodings are close enough to legacy
|
||||
encodings implemented by Windows that applications that need to consume
|
||||
data in legacy Windows encodins may find encoding_rs useful. The
|
||||
<a href="https://crates.io/crates/codepage">codepage</a> crate maps from Windows
|
||||
code page identifiers onto encoding_rs <code>Encoding</code>s and vice versa.</p>
|
||||
<p>For decoding email, UTF-7 support is needed (unfortunately) in additition
|
||||
to the encodings defined in the Encoding Standard. The
|
||||
<a href="https://crates.io/crates/charset">charset</a> wraps encoding_rs and adds
|
||||
UTF-7 decoding for email purposes.</p>
|
||||
<p>For single-byte DOS encodings beyond the ones supported by the Encoding
|
||||
Standard, there is the <a href="https://crates.io/crates/oem_cp"><code>oem_cp</code></a> crate.</p>
|
||||
<h1 id="preparing-text-for-the-encoders" class="section-header"><a href="#preparing-text-for-the-encoders">Preparing Text for the Encoders</a></h1>
|
||||
<p>Normalizing text into Unicode Normalization Form C prior to encoding text
|
||||
into a legacy encoding minimizes unmappable characters. Text can be
|
||||
normalized to Unicode Normalization Form C using the
|
||||
<a href="https://crates.io/crates/unic-normal"><code>unic-normal</code></a> crate.</p>
|
||||
<p>The exception is windows-1258, which after normalizing to Unicode
|
||||
Normalization Form C requires tone marks to be decomposed in order to
|
||||
minimize unmappable characters. Vietnamese tone marks can be decomposed
|
||||
using the <a href="https://crates.io/crates/detone"><code>detone</code></a> crate.</p>
|
||||
<h1 id="streaming--non-streaming-rust--cc" class="section-header"><a href="#streaming--non-streaming-rust--cc">Streaming & Non-Streaming; Rust & C/C++</a></h1>
|
||||
<p>The API in Rust has two modes of operation: streaming and non-streaming.
|
||||
The streaming API is the foundation of the implementation and should be
|
||||
used when processing data that arrives piecemeal from an i/o stream. The
|
||||
streaming API has an FFI wrapper (as a <a href="https://github.com/hsivonen/encoding_c">separate crate</a>) that exposes it
|
||||
to C callers. The non-streaming part of the API is for Rust callers only and
|
||||
is smart about borrowing instead of copying when possible. When
|
||||
streamability is not needed, the non-streaming API should be preferrer in
|
||||
order to avoid copying data when a borrow suffices.</p>
|
||||
<p>There is no analogous C API exposed via FFI, mainly because C doesn’t have
|
||||
standard types for growable byte buffers and Unicode strings that know
|
||||
their length.</p>
|
||||
<p>The C API (header file generated at <code>target/include/encoding_rs.h</code> when
|
||||
building encoding_rs) can, in turn, be wrapped for use from C++. Such a
|
||||
C++ wrapper can re-create the non-streaming API in C++ for C++ callers.
|
||||
The C binding comes with a <a href="https://github.com/hsivonen/encoding_c/blob/master/include/encoding_rs_cpp.h">C++14 wrapper</a> that uses standard library +
|
||||
<a href="https://github.com/Microsoft/GSL/">GSL</a> types and that recreates the non-streaming API in C++ on top of
|
||||
the streaming API. A C++ wrapper with XPCOM/MFBT types is being developed
|
||||
as part of Mozilla <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=encoding_rs">bug 1261841</a>.</p>
|
||||
<p>The <code>Encoding</code> type is common to both the streaming and non-streaming
|
||||
modes. In the streaming mode, decoding operations are performed with a
|
||||
<code>Decoder</code> and encoding operations with an <code>Encoder</code> object obtained via
|
||||
<code>Encoding</code>. In the non-streaming mode, decoding and encoding operations are
|
||||
performed using methods on <code>Encoding</code> objects themselves, so the <code>Decoder</code>
|
||||
and <code>Encoder</code> objects are not used at all.</p>
|
||||
<h1 id="memory-management" class="section-header"><a href="#memory-management">Memory management</a></h1>
|
||||
<p>The non-streaming mode never performs heap allocations (even the methods
|
||||
that write into a <code>Vec<u8></code> or a <code>String</code> by taking them as arguments do
|
||||
not reallocate the backing buffer of the <code>Vec<u8></code> or the <code>String</code>). That
|
||||
is, the non-streaming mode uses caller-allocated buffers exclusively.</p>
|
||||
<p>The methods of the streaming mode that return a <code>Vec<u8></code> or a <code>String</code>
|
||||
perform heap allocations but only to allocate the backing buffer of the
|
||||
<code>Vec<u8></code> or the <code>String</code>.</p>
|
||||
<p><code>Encoding</code> is always statically allocated. <code>Decoder</code> and <code>Encoder</code> need no
|
||||
<code>Drop</code> cleanup.</p>
|
||||
<h1 id="buffer-reading-and-writing-behavior" class="section-header"><a href="#buffer-reading-and-writing-behavior">Buffer reading and writing behavior</a></h1>
|
||||
<p>Based on experience gained with the <code>java.nio.charset</code> encoding converter
|
||||
API and with the Gecko uconv encoding converter API, the buffer reading
|
||||
and writing behaviors of encoding_rs are asymmetric: input buffers are
|
||||
fully drained but output buffers are not always fully filled.</p>
|
||||
<p>When reading from an input buffer, encoding_rs always consumes all input
|
||||
up to the next error or to the end of the buffer. In particular, when
|
||||
decoding, even if the input buffer ends in the middle of a byte sequence
|
||||
for a character, the decoder consumes all input. This has the benefit that
|
||||
the caller of the API can always fill the next buffer from the start from
|
||||
whatever source the bytes come from and never has to first copy the last
|
||||
bytes of the previous buffer to the start of the next buffer. However, when
|
||||
encoding, the UTF-8 input buffers have to end at a character boundary, which
|
||||
is a requirement for the Rust <code>str</code> type anyway, and UTF-16 input buffer
|
||||
boundaries falling in the middle of a surrogate pair result in both
|
||||
suggorates being treated individually as unpaired surrogates.</p>
|
||||
<p>Additionally, decoders guarantee that they can be fed even one byte at a
|
||||
time and encoders guarantee that they can be fed even one code point at a
|
||||
time. This has the benefit of not placing restrictions on the size of
|
||||
chunks the content arrives e.g. from network.</p>
|
||||
<p>When writing into an output buffer, encoding_rs makes sure that the code
|
||||
unit sequence for a character is never split across output buffer
|
||||
boundaries. This may result in wasted space at the end of an output buffer,
|
||||
but the advantages are that the output side of both decoders and encoders
|
||||
is greatly simplified compared to designs that attempt to fill output
|
||||
buffers exactly even when that entails splitting a code unit sequence and
|
||||
when encoding_rs methods return to the caller, the output produces thus
|
||||
far is always valid taken as whole. (In the case of encoding to ISO-2022-JP,
|
||||
the output needs to be considered as a whole, because the latest output
|
||||
buffer taken alone might not be valid taken alone if the transition away
|
||||
from the ASCII state occurred in an earlier output buffer. However, since
|
||||
the ISO-2022-JP decoder doesn’t treat streams that don’t end in the ASCII
|
||||
state as being in error despite the encoder generating a transition to the
|
||||
ASCII state at the end, the claim about the partial output taken as a whole
|
||||
being valid is true even for ISO-2022-JP.)</p>
|
||||
<h1 id="error-reporting" class="section-header"><a href="#error-reporting">Error Reporting</a></h1>
|
||||
<p>Based on experience gained with the <code>java.nio.charset</code> encoding converter
|
||||
API and with the Gecko uconv encoding converter API, the error reporting
|
||||
behaviors of encoding_rs are asymmetric: decoder errors include offsets
|
||||
that leave it up to the caller to extract the erroneous bytes from the
|
||||
input stream if the caller wishes to do so but encoder errors provide the
|
||||
code point associated with the error without requiring the caller to
|
||||
extract it from the input on its own.</p>
|
||||
<p>On the encoder side, an error is always triggered by the most recently
|
||||
pushed Unicode scalar, which makes it simple to pass the <code>char</code> to the
|
||||
caller. Also, it’s very typical for the caller to wish to do something with
|
||||
this data: generate a numeric escape for the character. Additionally, the
|
||||
ISO-2022-JP encoder reports U+FFFD instead of the actual input character in
|
||||
certain cases, so requiring the caller to extract the character from the
|
||||
input buffer would require the caller to handle ISO-2022-JP details.
|
||||
Furthermore, requiring the caller to extract the character from the input
|
||||
buffer would require the caller to implement UTF-8 or UTF-16 math, which is
|
||||
the job of an encoding conversion library.</p>
|
||||
<p>On the decoder side, errors are triggered in more complex ways. For
|
||||
example, when decoding the sequence ESC, ‘$’, <em>buffer boundary</em>, ‘A’ as
|
||||
ISO-2022-JP, the ESC byte is in error, but this is discovered only after
|
||||
the buffer boundary when processing ‘A’. Thus, the bytes in error might not
|
||||
be the ones most recently pushed to the decoder and the error might not even
|
||||
be in the current buffer.</p>
|
||||
<p>Some encoding conversion APIs address the problem by not acknowledging
|
||||
trailing bytes of an input buffer as consumed if it’s still possible for
|
||||
future bytes to cause the trailing bytes to be in error. This way, error
|
||||
reporting can always refer to the most recently pushed buffer. This has the
|
||||
problem that the caller of the API has to copy the unconsumed trailing
|
||||
bytes to the start of the next buffer before being able to fill the rest
|
||||
of the next buffer. This is annoying, error-prone and inefficient.</p>
|
||||
<p>A possible solution would be making the decoder remember recently consumed
|
||||
bytes in order to be able to include a copy of the erroneous bytes when
|
||||
reporting an error. This has two problem: First, callers a rarely
|
||||
interested in the erroneous bytes, so attempts to identify them are most
|
||||
often just overhead anyway. Second, the rare applications that are
|
||||
interested typically care about the location of the error in the input
|
||||
stream.</p>
|
||||
<p>To keep the API convenient for common uses and the overhead low while making
|
||||
it possible to develop applications, such as HTML validators, that care
|
||||
about which bytes were in error, encoding_rs reports the length of the
|
||||
erroneous sequence and the number of bytes consumed after the erroneous
|
||||
sequence. As long as the caller doesn’t discard the 6 most recent bytes,
|
||||
this makes it possible for callers that care about the erroneous bytes to
|
||||
locate them.</p>
|
||||
<h1 id="no-convenience-api-for-custom-replacements" class="section-header"><a href="#no-convenience-api-for-custom-replacements">No Convenience API for Custom Replacements</a></h1>
|
||||
<p>The Web Platform and, therefore, the Encoding Standard supports only one
|
||||
error recovery mode for decoders and only one error recovery mode for
|
||||
encoders. The supported error recovery mode for decoders is emitting the
|
||||
REPLACEMENT CHARACTER on error. The supported error recovery mode for
|
||||
encoders is emitting an HTML decimal numeric character reference for
|
||||
unmappable characters.</p>
|
||||
<p>Since encoding_rs is Web-focused, these are the only error recovery modes
|
||||
for which convenient support is provided. Moreover, on the decoder side,
|
||||
there aren’t really good alternatives for emitting the REPLACEMENT CHARACTER
|
||||
on error (other than treating errors as fatal). In particular, simply
|
||||
ignoring errors is a
|
||||
<a href="http://www.unicode.org/reports/tr36/#Substituting_for_Ill_Formed_Subsequences">security problem</a>,
|
||||
so it would be a bad idea for encoding_rs to provide a mode that encouraged
|
||||
callers to ignore errors.</p>
|
||||
<p>On the encoder side, there are plausible alternatives for HTML decimal
|
||||
numeric character references. For example, when outputting CSS, CSS-style
|
||||
escapes would seem to make sense. However, instead of facilitating the
|
||||
output of CSS, JS, etc. in non-UTF-8 encodings, encoding_rs takes the design
|
||||
position that you shouldn’t generate output in encodings other than UTF-8,
|
||||
except where backward compatibility with interacting with the legacy Web
|
||||
requires it. The legacy Web requires it only when parsing the query strings
|
||||
of URLs and when submitting forms, and those two both use HTML decimal
|
||||
numeric character references.</p>
|
||||
<p>While encoding_rs doesn’t make encoder replacements other than HTML decimal
|
||||
numeric character references easy, it does make them <em>possible</em>.
|
||||
<code>encode_from_utf8()</code>, which emits HTML decimal numeric character references
|
||||
for unmappable characters, is implemented on top of
|
||||
<code>encode_from_utf8_without_replacement()</code>. Applications that really, really
|
||||
want other replacement schemes for unmappable characters can likewise
|
||||
implement them on top of <code>encode_from_utf8_without_replacement()</code>.</p>
|
||||
<h1 id="no-extensibility-by-design" class="section-header"><a href="#no-extensibility-by-design">No Extensibility by Design</a></h1>
|
||||
<p>The set of encodings supported by encoding_rs is not extensible by design.
|
||||
That is, <code>Encoding</code>, <code>Decoder</code> and <code>Encoder</code> are intentionally <code>struct</code>s
|
||||
rather than <code>trait</code>s. encoding_rs takes the design position that all future
|
||||
text interchange should be done using UTF-8, which can represent all of
|
||||
Unicode. (It is, in fact, the only encoding supported by the Encoding
|
||||
Standard and encoding_rs that can represent all of Unicode and that has
|
||||
encoder support. UTF-16LE and UTF-16BE don’t have encoder support, and
|
||||
gb18030 cannot encode U+E5E5.) The other encodings are supported merely for
|
||||
legacy compatibility and not due to non-UTF-8 encodings having benefits
|
||||
other than being able to consume legacy content.</p>
|
||||
<p>Considering that UTF-8 can represent all of Unicode and is already supported
|
||||
by all Web browsers, introducing a new encoding wouldn’t add to the
|
||||
expressiveness but would add to compatibility problems. In that sense,
|
||||
adding new encodings to the Web Platform doesn’t make sense, and, in fact,
|
||||
post-UTF-8 attempts at encodings, such as BOCU-1, have been rejected from
|
||||
the Web Platform. On the other hand, the set of legacy encodings that must
|
||||
be supported for a Web browser to be able to be successful is not going to
|
||||
expand. Empirically, the set of encodings specified in the Encoding Standard
|
||||
is already sufficient and the set of legacy encodings won’t grow
|
||||
retroactively.</p>
|
||||
<p>Since extensibility doesn’t make sense considering the Web focus of
|
||||
encoding_rs and adding encodings to Web clients would be actively harmful,
|
||||
it makes sense to make the set of encodings that encoding_rs supports
|
||||
non-extensible and to take the (admittedly small) benefits arising from
|
||||
that, such as the size of <code>Decoder</code> and <code>Encoder</code> objects being known ahead
|
||||
of time, which enables stack allocation thereof.</p>
|
||||
<p>This does have downsides for applications that might want to put encoding_rs
|
||||
to non-Web uses if those non-Web uses involve legacy encodings that aren’t
|
||||
needed for Web uses. The needs of such applications should not complicate
|
||||
encoding_rs itself, though. It is up to those applications to provide a
|
||||
framework that delegates the operations with encodings that encoding_rs
|
||||
supports to encoding_rs and operations with other encodings to something
|
||||
else (as opposed to encoding_rs itself providing an extensibility
|
||||
framework).</p>
|
||||
<h1 id="panics" class="section-header"><a href="#panics">Panics</a></h1>
|
||||
<p>Methods in encoding_rs can panic if the API is used against the requirements
|
||||
stated in the documentation, if a state that’s supposed to be impossible
|
||||
is reached due to an internal bug or on integer overflow. When used
|
||||
according to documentation with buffer sizes that stay below integer
|
||||
overflow, in the absence of internal bugs, encoding_rs does not panic.</p>
|
||||
<p>Panics arising from API misuse aren’t documented beyond this on individual
|
||||
methods.</p>
|
||||
<h1 id="at-risk-parts-of-the-api" class="section-header"><a href="#at-risk-parts-of-the-api">At-Risk Parts of the API</a></h1>
|
||||
<p>The foreseeable source of partially backward-incompatible API change is the
|
||||
way the instances of <code>Encoding</code> are made available.</p>
|
||||
<p>If Rust changes to allow the entries of <code>[&'static Encoding; N]</code> to be
|
||||
initialized with <code>static</code>s of type <code>&'static Encoding</code>, the non-reference
|
||||
<code>FOO_INIT</code> public <code>Encoding</code> instances will be removed from the public API.</p>
|
||||
<p>If Rust changes to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique when the constant is used in different crates, the reference-typed
|
||||
<code>static</code>s for the encoding instances will be changed from <code>static</code> to
|
||||
<code>const</code> and the non-reference-typed <code>_INIT</code> instances will be removed.</p>
|
||||
<h1 id="mapping-spec-concepts-onto-the-api" class="section-header"><a href="#mapping-spec-concepts-onto-the-api">Mapping Spec Concepts onto the API</a></h1><table>
|
||||
<thead>
|
||||
<tr><th>Spec Concept</th><th>Streaming</th><th>Non-Streaming</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td><a href="https://encoding.spec.whatwg.org/#encoding">encoding</a></td><td><code>&'static Encoding</code></td><td><code>&'static Encoding</code></td></tr>
|
||||
<tr><td><a href="https://encoding.spec.whatwg.org/#utf-8">UTF-8 encoding</a></td><td><code>UTF_8</code></td><td><code>UTF_8</code></td></tr>
|
||||
<tr><td><a href="https://encoding.spec.whatwg.org/#concept-encoding-get">get an encoding</a></td><td><code>Encoding::for_label(<var>label</var>)</code></td><td><code>Encoding::for_label(<var>label</var>)</code></td></tr>
|
||||
<tr><td><a href="https://encoding.spec.whatwg.org/#name">name</a></td><td><code><var>encoding</var>.name()</code></td><td><code><var>encoding</var>.name()</code></td></tr>
|
||||
<tr><td><a href="https://encoding.spec.whatwg.org/#get-an-output-encoding">get an output encoding</a></td><td><code><var>encoding</var>.output_encoding()</code></td><td><code><var>encoding</var>.output_encoding()</code></td></tr>
|
||||
<tr><td><a href="https://encoding.spec.whatwg.org/#decode">decode</a></td><td><code>let d = <var>encoding</var>.new_decoder();<br>let res = d.decode_to_<var>*</var>(<var>src</var>, <var>dst</var>, false);<br>// …</br>let last_res = d.decode_to_<var>*</var>(<var>src</var>, <var>dst</var>, true);</code></td><td><code><var>encoding</var>.decode(<var>src</var>)</code></td></tr>
|
||||
<tr><td><a href="https://encoding.spec.whatwg.org/#utf-8-decode">UTF-8 decode</a></td><td><code>let d = UTF_8.new_decoder_with_bom_removal();<br>let res = d.decode_to_<var>*</var>(<var>src</var>, <var>dst</var>, false);<br>// …</br>let last_res = d.decode_to_<var>*</var>(<var>src</var>, <var>dst</var>, true);</code></td><td><code>UTF_8.decode_with_bom_removal(<var>src</var>)</code></td></tr>
|
||||
<tr><td><a href="https://encoding.spec.whatwg.org/#utf-8-decode-without-bom">UTF-8 decode without BOM</a></td><td><code>let d = UTF_8.new_decoder_without_bom_handling();<br>let res = d.decode_to_<var>*</var>(<var>src</var>, <var>dst</var>, false);<br>// …</br>let last_res = d.decode_to_<var>*</var>(<var>src</var>, <var>dst</var>, true);</code></td><td><code>UTF_8.decode_without_bom_handling(<var>src</var>)</code></td></tr>
|
||||
<tr><td><a href="https://encoding.spec.whatwg.org/#utf-8-decode-without-bom-or-fail">UTF-8 decode without BOM or fail</a></td><td><code>let d = UTF_8.new_decoder_without_bom_handling();<br>let res = d.decode_to_<var>*</var>_without_replacement(<var>src</var>, <var>dst</var>, false);<br>// … (fail if malformed)</br>let last_res = d.decode_to_<var>*</var>_without_replacement(<var>src</var>, <var>dst</var>, true);<br>// (fail if malformed)</code></td><td><code>UTF_8.decode_without_bom_handling_and_without_replacement(<var>src</var>)</code></td></tr>
|
||||
<tr><td><a href="https://encoding.spec.whatwg.org/#encode">encode</a></td><td><code>let e = <var>encoding</var>.new_encoder();<br>let res = e.encode_to_<var>*</var>(<var>src</var>, <var>dst</var>, false);<br>// …</br>let last_res = e.encode_to_<var>*</var>(<var>src</var>, <var>dst</var>, true);</code></td><td><code><var>encoding</var>.encode(<var>src</var>)</code></td></tr>
|
||||
<tr><td><a href="https://encoding.spec.whatwg.org/#utf-8-encode">UTF-8 encode</a></td><td>Use the UTF-8 nature of Rust strings directly:<br><code><var>write</var>(<var>src</var>.as_bytes());<br>// refill src<br><var>write</var>(<var>src</var>.as_bytes());<br>// refill src<br><var>write</var>(<var>src</var>.as_bytes());<br>// …</code></td><td>Use the UTF-8 nature of Rust strings directly:<br><code><var>src</var>.as_bytes()</code></td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h1 id="compatibility-with-the-rust-encoding-api" class="section-header"><a href="#compatibility-with-the-rust-encoding-api">Compatibility with the rust-encoding API</a></h1>
|
||||
<p>The crate
|
||||
<a href="https://github.com/hsivonen/encoding_rs_compat/">encoding_rs_compat</a>
|
||||
is a drop-in replacement for rust-encoding 0.2.32 that implements (most of)
|
||||
the API of rust-encoding 0.2.32 on top of encoding_rs.</p>
|
||||
<h1 id="mapping-rust-encoding-concepts-to-encoding_rs-concepts" class="section-header"><a href="#mapping-rust-encoding-concepts-to-encoding_rs-concepts">Mapping rust-encoding concepts to encoding_rs concepts</a></h1>
|
||||
<p>The following table provides a mapping from rust-encoding constructs to
|
||||
encoding_rs ones.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>rust-encoding</th><th>encoding_rs</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td><code>encoding::EncodingRef</code></td><td><code>&'static encoding_rs::Encoding</code></td></tr>
|
||||
<tr><td><code>encoding::all::<var>WINDOWS_31J</var></code> (not based on the WHATWG name for some encodings)</td><td><code>encoding_rs::<var>SHIFT_JIS</var></code> (always the WHATWG name uppercased and hyphens replaced with underscores)</td></tr>
|
||||
<tr><td><code>encoding::all::ERROR</code></td><td>Not available because not in the Encoding Standard</td></tr>
|
||||
<tr><td><code>encoding::all::ASCII</code></td><td>Not available because not in the Encoding Standard</td></tr>
|
||||
<tr><td><code>encoding::all::ISO_8859_1</code></td><td>Not available because not in the Encoding Standard</td></tr>
|
||||
<tr><td><code>encoding::all::HZ</code></td><td>Not available because not in the Encoding Standard</td></tr>
|
||||
<tr><td><code>encoding::label::encoding_from_whatwg_label(<var>string</var>)</code></td><td><code>encoding_rs::Encoding::for_label(<var>string</var>)</code></td></tr>
|
||||
<tr><td><code><var>enc</var>.whatwg_name()</code> (always lower case)</td><td><code><var>enc</var>.name()</code> (potentially mixed case)</td></tr>
|
||||
<tr><td><code><var>enc</var>.name()</code></td><td>Not available because not in the Encoding Standard</td></tr>
|
||||
<tr><td><code>encoding::decode(<var>bytes</var>, encoding::DecoderTrap::Replace, <var>enc</var>)</code></td><td><code><var>enc</var>.decode(<var>bytes</var>)</code></td></tr>
|
||||
<tr><td><code><var>enc</var>.decode(<var>bytes</var>, encoding::DecoderTrap::Replace)</code></td><td><code><var>enc</var>.decode_without_bom_handling(<var>bytes</var>)</code></td></tr>
|
||||
<tr><td><code><var>enc</var>.encode(<var>string</var>, encoding::EncoderTrap::NcrEscape)</code></td><td><code><var>enc</var>.encode(<var>string</var>)</code></td></tr>
|
||||
<tr><td><code><var>enc</var>.raw_decoder()</code></td><td><code><var>enc</var>.new_decoder_without_bom_handling()</code></td></tr>
|
||||
<tr><td><code><var>enc</var>.raw_encoder()</code></td><td><code><var>enc</var>.new_encoder()</code></td></tr>
|
||||
<tr><td><code>encoding::RawDecoder</code></td><td><code>encoding_rs::Decoder</code></td></tr>
|
||||
<tr><td><code>encoding::RawEncoder</code></td><td><code>encoding_rs::Encoder</code></td></tr>
|
||||
<tr><td><code><var>raw_decoder</var>.raw_feed(<var>src</var>, <var>dst_string</var>)</code></td><td><code><var>dst_string</var>.reserve(<var>decoder</var>.max_utf8_buffer_length_without_replacement(<var>src</var>.len()));<br><var>decoder</var>.decode_to_string_without_replacement(<var>src</var>, <var>dst_string</var>, false)</code></td></tr>
|
||||
<tr><td><code><var>raw_encoder</var>.raw_feed(<var>src</var>, <var>dst_vec</var>)</code></td><td><code><var>dst_vec</var>.reserve(<var>encoder</var>.max_buffer_length_from_utf8_without_replacement(<var>src</var>.len()));<br><var>encoder</var>.encode_from_utf8_to_vec_without_replacement(<var>src</var>, <var>dst_vec</var>, false)</code></td></tr>
|
||||
<tr><td><code><var>raw_decoder</var>.raw_finish(<var>dst</var>)</code></td><td><code><var>dst_string</var>.reserve(<var>decoder</var>.max_utf8_buffer_length_without_replacement(0));<br><var>decoder</var>.decode_to_string_without_replacement(b"", <var>dst</var>, true)</code></td></tr>
|
||||
<tr><td><code><var>raw_encoder</var>.raw_finish(<var>dst</var>)</code></td><td><code><var>dst_vec</var>.reserve(<var>encoder</var>.max_buffer_length_from_utf8_without_replacement(0));<br><var>encoder</var>.encode_from_utf8_to_vec_without_replacement("", <var>dst</var>, true)</code></td></tr>
|
||||
<tr><td><code>encoding::DecoderTrap::Strict</code></td><td><code>decode*</code> methods that have <code>_without_replacement</code> in their name (and treating the `Malformed` result as fatal).</td></tr>
|
||||
<tr><td><code>encoding::DecoderTrap::Replace</code></td><td><code>decode*</code> methods that <i>do not</i> have <code>_without_replacement</code> in their name.</td></tr>
|
||||
<tr><td><code>encoding::DecoderTrap::Ignore</code></td><td>It is a bad idea to ignore errors due to security issues, but this could be implemented using <code>decode*</code> methods that have <code>_without_replacement</code> in their name.</td></tr>
|
||||
<tr><td><code>encoding::DecoderTrap::Call(DecoderTrapFunc)</code></td><td>Can be implemented using <code>decode*</code> methods that have <code>_without_replacement</code> in their name.</td></tr>
|
||||
<tr><td><code>encoding::EncoderTrap::Strict</code></td><td><code>encode*</code> methods that have <code>_without_replacement</code> in their name (and treating the `Unmappable` result as fatal).</td></tr>
|
||||
<tr><td><code>encoding::EncoderTrap::Replace</code></td><td>Can be implemented using <code>encode*</code> methods that have <code>_without_replacement</code> in their name.</td></tr>
|
||||
<tr><td><code>encoding::EncoderTrap::Ignore</code></td><td>It is a bad idea to ignore errors due to security issues, but this could be implemented using <code>encode*</code> methods that have <code>_without_replacement</code> in their name.</td></tr>
|
||||
<tr><td><code>encoding::EncoderTrap::NcrEscape</code></td><td><code>encode*</code> methods that <i>do not</i> have <code>_without_replacement</code> in their name.</td></tr>
|
||||
<tr><td><code>encoding::EncoderTrap::Call(EncoderTrapFunc)</code></td><td>Can be implemented using <code>encode*</code> methods that have <code>_without_replacement</code> in their name.</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h1 id="relationship-with-windows-code-pages" class="section-header"><a href="#relationship-with-windows-code-pages">Relationship with Windows Code Pages</a></h1>
|
||||
<p>Despite the Web and browser focus, the encodings defined by the Encoding
|
||||
Standard and implemented by this crate may be useful for decoding legacy
|
||||
data that uses Windows code pages. The following table names the single-byte
|
||||
encodings
|
||||
that have a closely related Windows code page, the number of the closest
|
||||
code page, a column indicating whether Windows maps unassigned code points
|
||||
to the Unicode Private Use Area instead of U+FFFD and a remark number
|
||||
indicating remarks in the list after the table.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>Encoding</th><th>Code Page</th><th>PUA</th><th>Remarks</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td>Shift_JIS</td><td>932</td><td></td><td></td></tr>
|
||||
<tr><td>GBK</td><td>936</td><td></td><td></td></tr>
|
||||
<tr><td>EUC-KR</td><td>949</td><td></td><td></td></tr>
|
||||
<tr><td>Big5</td><td>950</td><td></td><td></td></tr>
|
||||
<tr><td>IBM866</td><td>866</td><td></td><td></td></tr>
|
||||
<tr><td>windows-874</td><td>874</td><td>•</td><td></td></tr>
|
||||
<tr><td>UTF-16LE</td><td>1200</td><td></td><td></td></tr>
|
||||
<tr><td>UTF-16BE</td><td>1201</td><td></td><td></td></tr>
|
||||
<tr><td>windows-1250</td><td>1250</td><td></td><td></td></tr>
|
||||
<tr><td>windows-1251</td><td>1251</td><td></td><td></td></tr>
|
||||
<tr><td>windows-1252</td><td>1252</td><td></td><td></td></tr>
|
||||
<tr><td>windows-1253</td><td>1253</td><td>•</td><td></td></tr>
|
||||
<tr><td>windows-1254</td><td>1254</td><td></td><td></td></tr>
|
||||
<tr><td>windows-1255</td><td>1255</td><td>•</td><td></td></tr>
|
||||
<tr><td>windows-1256</td><td>1256</td><td></td><td></td></tr>
|
||||
<tr><td>windows-1257</td><td>1257</td><td>•</td><td></td></tr>
|
||||
<tr><td>windows-1258</td><td>1258</td><td></td><td></td></tr>
|
||||
<tr><td>macintosh</td><td>10000</td><td></td><td>1</td></tr>
|
||||
<tr><td>x-mac-cyrillic</td><td>10017</td><td></td><td>2</td></tr>
|
||||
<tr><td>KOI8-R</td><td>20866</td><td></td><td></td></tr>
|
||||
<tr><td>EUC-JP</td><td>20932</td><td></td><td></td></tr>
|
||||
<tr><td>KOI8-U</td><td>21866</td><td></td><td></td></tr>
|
||||
<tr><td>ISO-8859-2</td><td>28592</td><td></td><td></td></tr>
|
||||
<tr><td>ISO-8859-3</td><td>28593</td><td></td><td></td></tr>
|
||||
<tr><td>ISO-8859-4</td><td>28594</td><td></td><td></td></tr>
|
||||
<tr><td>ISO-8859-5</td><td>28595</td><td></td><td></td></tr>
|
||||
<tr><td>ISO-8859-6</td><td>28596</td><td>•</td><td></td></tr>
|
||||
<tr><td>ISO-8859-7</td><td>28597</td><td>•</td><td>3</td></tr>
|
||||
<tr><td>ISO-8859-8</td><td>28598</td><td>•</td><td>4</td></tr>
|
||||
<tr><td>ISO-8859-13</td><td>28603</td><td>•</td><td></td></tr>
|
||||
<tr><td>ISO-8859-15</td><td>28605</td><td></td><td></td></tr>
|
||||
<tr><td>ISO-8859-8-I</td><td>38598</td><td></td><td>5</td></tr>
|
||||
<tr><td>ISO-2022-JP</td><td>50220</td><td></td><td></td></tr>
|
||||
<tr><td>gb18030</td><td>54936</td><td></td><td></td></tr>
|
||||
<tr><td>UTF-8</td><td>65001</td><td></td><td></td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<ol>
|
||||
<li>Windows decodes 0xBD to U+2126 OHM SIGN instead of U+03A9 GREEK CAPITAL LETTER OMEGA.</li>
|
||||
<li>Windows decodes 0xFF to U+00A4 CURRENCY SIGN instead of U+20AC EURO SIGN.</li>
|
||||
<li>Windows decodes the currency signs at 0xA4 and 0xA5 as well as 0xAA,
|
||||
which should be U+037A GREEK YPOGEGRAMMENI, to PUA code points. Windows
|
||||
decodes 0xA1 to U+02BD MODIFIER LETTER REVERSED COMMA instead of U+2018
|
||||
LEFT SINGLE QUOTATION MARK and 0xA2 to U+02BC MODIFIER LETTER APOSTROPHE
|
||||
instead of U+2019 RIGHT SINGLE QUOTATION MARK.</li>
|
||||
<li>Windows decodes 0xAF to OVERLINE instead of MACRON and 0xFE and 0xFD to PUA instead
|
||||
of LRM and RLM.</li>
|
||||
<li>Remarks from the previous item apply.</li>
|
||||
</ol>
|
||||
<p>The differences between this crate and Windows in the case of multibyte encodings
|
||||
are not yet fully documented here. The lack of remarks above should not be taken
|
||||
as indication of lack of differences.</p>
|
||||
<h1 id="notable-differences-from-iana-naming" class="section-header"><a href="#notable-differences-from-iana-naming">Notable Differences from IANA Naming</a></h1>
|
||||
<p>In some cases, the Encoding Standard specifies the popular unextended encoding
|
||||
name where in IANA terms one of the other labels would be more precise considering
|
||||
the extensions that the Encoding Standard has unified into the encoding.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>Encoding</th><th>IANA</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td>Big5</td><td>Big5-HKSCS</td></tr>
|
||||
<tr><td>EUC-KR</td><td>windows-949</td></tr>
|
||||
<tr><td>Shift_JIS</td><td>windows-31j</td></tr>
|
||||
<tr><td>x-mac-cyrillic</td><td>x-mac-ukrainian</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>In other cases where the Encoding Standard unifies unextended and extended
|
||||
variants of an encoding, the encoding gets the name of the extended
|
||||
variant.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>IANA</th><th>Unified into Encoding</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td>ISO-8859-1</td><td>windows-1252</td></tr>
|
||||
<tr><td>ISO-8859-9</td><td>windows-1254</td></tr>
|
||||
<tr><td>TIS-620</td><td>windows-874</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>See the section <a href="#utf-16le-utf-16be-and-unicode-encoding-schemes"><em>UTF-16LE, UTF-16BE and Unicode Encoding Schemes</em></a>
|
||||
for discussion about the UTF-16 family.</p>
|
||||
</div><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
|
||||
<table><tr class="module-item"><td><a class="mod" href="mem/index.html" title="encoding_rs::mem mod">mem</a></td><td class="docblock-short"><p>Functions for converting between different in-RAM representations of text
|
||||
and for quickly checking if the Unicode Bidirectional Algorithm can be
|
||||
avoided.</p>
|
||||
</td></tr></table><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<table><tr class="module-item"><td><a class="struct" href="struct.Decoder.html" title="encoding_rs::Decoder struct">Decoder</a></td><td class="docblock-short"><p>A converter that decodes a byte stream into Unicode according to a
|
||||
character encoding in a streaming (incremental) manner.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.Encoder.html" title="encoding_rs::Encoder struct">Encoder</a></td><td class="docblock-short"><p>A converter that encodes a Unicode stream into bytes according to a
|
||||
character encoding in a streaming (incremental) manner.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.Encoding.html" title="encoding_rs::Encoding struct">Encoding</a></td><td class="docblock-short"><p>An encoding as defined in the <a href="https://encoding.spec.whatwg.org/">Encoding Standard</a>.</p>
|
||||
</td></tr></table><h2 id="enums" class="section-header"><a href="#enums">Enums</a></h2>
|
||||
<table><tr class="module-item"><td><a class="enum" href="enum.CoderResult.html" title="encoding_rs::CoderResult enum">CoderResult</a></td><td class="docblock-short"><p>Result of a (potentially partial) decode or encode operation with
|
||||
replacement.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="enum" href="enum.DecoderResult.html" title="encoding_rs::DecoderResult enum">DecoderResult</a></td><td class="docblock-short"><p>Result of a (potentially partial) decode operation without replacement.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="enum" href="enum.EncoderResult.html" title="encoding_rs::EncoderResult enum">EncoderResult</a></td><td class="docblock-short"><p>Result of a (potentially partial) encode operation without replacement.</p>
|
||||
</td></tr></table><h2 id="statics" class="section-header"><a href="#statics">Statics</a></h2>
|
||||
<table><tr class="module-item"><td><a class="static" href="static.BIG5.html" title="encoding_rs::BIG5 static">BIG5</a></td><td class="docblock-short"><p>The Big5 encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.BIG5_INIT.html" title="encoding_rs::BIG5_INIT static">BIG5_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.BIG5.html">Big5</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.EUC_JP.html" title="encoding_rs::EUC_JP static">EUC_JP</a></td><td class="docblock-short"><p>The EUC-JP encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.EUC_JP_INIT.html" title="encoding_rs::EUC_JP_INIT static">EUC_JP_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.EUC_JP.html">EUC-JP</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.EUC_KR.html" title="encoding_rs::EUC_KR static">EUC_KR</a></td><td class="docblock-short"><p>The EUC-KR encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.EUC_KR_INIT.html" title="encoding_rs::EUC_KR_INIT static">EUC_KR_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.EUC_KR.html">EUC-KR</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.GB18030.html" title="encoding_rs::GB18030 static">GB18030</a></td><td class="docblock-short"><p>The gb18030 encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.GB18030_INIT.html" title="encoding_rs::GB18030_INIT static">GB18030_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.GB18030.html">gb18030</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.GBK.html" title="encoding_rs::GBK static">GBK</a></td><td class="docblock-short"><p>The GBK encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.GBK_INIT.html" title="encoding_rs::GBK_INIT static">GBK_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.GBK.html">GBK</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.IBM866.html" title="encoding_rs::IBM866 static">IBM866</a></td><td class="docblock-short"><p>The IBM866 encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.IBM866_INIT.html" title="encoding_rs::IBM866_INIT static">IBM866_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.IBM866.html">IBM866</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.ISO_2022_JP.html" title="encoding_rs::ISO_2022_JP static">ISO_2022_JP</a></td><td class="docblock-short"><p>The ISO-2022-JP encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.ISO_2022_JP_INIT.html" title="encoding_rs::ISO_2022_JP_INIT static">ISO_2022_JP_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.ISO_2022_JP.html">ISO-2022-JP</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.ISO_8859_2.html" title="encoding_rs::ISO_8859_2 static">ISO_8859_2</a></td><td class="docblock-short"><p>The ISO-8859-2 encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.ISO_8859_2_INIT.html" title="encoding_rs::ISO_8859_2_INIT static">ISO_8859_2_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.ISO_8859_2.html">ISO-8859-2</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.ISO_8859_3.html" title="encoding_rs::ISO_8859_3 static">ISO_8859_3</a></td><td class="docblock-short"><p>The ISO-8859-3 encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.ISO_8859_3_INIT.html" title="encoding_rs::ISO_8859_3_INIT static">ISO_8859_3_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.ISO_8859_3.html">ISO-8859-3</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.ISO_8859_4.html" title="encoding_rs::ISO_8859_4 static">ISO_8859_4</a></td><td class="docblock-short"><p>The ISO-8859-4 encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.ISO_8859_4_INIT.html" title="encoding_rs::ISO_8859_4_INIT static">ISO_8859_4_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.ISO_8859_4.html">ISO-8859-4</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.ISO_8859_5.html" title="encoding_rs::ISO_8859_5 static">ISO_8859_5</a></td><td class="docblock-short"><p>The ISO-8859-5 encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.ISO_8859_5_INIT.html" title="encoding_rs::ISO_8859_5_INIT static">ISO_8859_5_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.ISO_8859_5.html">ISO-8859-5</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.ISO_8859_6.html" title="encoding_rs::ISO_8859_6 static">ISO_8859_6</a></td><td class="docblock-short"><p>The ISO-8859-6 encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.ISO_8859_6_INIT.html" title="encoding_rs::ISO_8859_6_INIT static">ISO_8859_6_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.ISO_8859_6.html">ISO-8859-6</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.ISO_8859_7.html" title="encoding_rs::ISO_8859_7 static">ISO_8859_7</a></td><td class="docblock-short"><p>The ISO-8859-7 encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.ISO_8859_7_INIT.html" title="encoding_rs::ISO_8859_7_INIT static">ISO_8859_7_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.ISO_8859_7.html">ISO-8859-7</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.ISO_8859_8.html" title="encoding_rs::ISO_8859_8 static">ISO_8859_8</a></td><td class="docblock-short"><p>The ISO-8859-8 encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.ISO_8859_8_I.html" title="encoding_rs::ISO_8859_8_I static">ISO_8859_8_I</a></td><td class="docblock-short"><p>The ISO-8859-8-I encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.ISO_8859_8_INIT.html" title="encoding_rs::ISO_8859_8_INIT static">ISO_8859_8_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.ISO_8859_8.html">ISO-8859-8</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.ISO_8859_8_I_INIT.html" title="encoding_rs::ISO_8859_8_I_INIT static">ISO_8859_8_I_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.ISO_8859_8_I.html">ISO-8859-8-I</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.ISO_8859_10.html" title="encoding_rs::ISO_8859_10 static">ISO_8859_10</a></td><td class="docblock-short"><p>The ISO-8859-10 encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.ISO_8859_10_INIT.html" title="encoding_rs::ISO_8859_10_INIT static">ISO_8859_10_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.ISO_8859_10.html">ISO-8859-10</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.ISO_8859_13.html" title="encoding_rs::ISO_8859_13 static">ISO_8859_13</a></td><td class="docblock-short"><p>The ISO-8859-13 encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.ISO_8859_13_INIT.html" title="encoding_rs::ISO_8859_13_INIT static">ISO_8859_13_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.ISO_8859_13.html">ISO-8859-13</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.ISO_8859_14.html" title="encoding_rs::ISO_8859_14 static">ISO_8859_14</a></td><td class="docblock-short"><p>The ISO-8859-14 encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.ISO_8859_14_INIT.html" title="encoding_rs::ISO_8859_14_INIT static">ISO_8859_14_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.ISO_8859_14.html">ISO-8859-14</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.ISO_8859_15.html" title="encoding_rs::ISO_8859_15 static">ISO_8859_15</a></td><td class="docblock-short"><p>The ISO-8859-15 encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.ISO_8859_15_INIT.html" title="encoding_rs::ISO_8859_15_INIT static">ISO_8859_15_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.ISO_8859_15.html">ISO-8859-15</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.ISO_8859_16.html" title="encoding_rs::ISO_8859_16 static">ISO_8859_16</a></td><td class="docblock-short"><p>The ISO-8859-16 encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.ISO_8859_16_INIT.html" title="encoding_rs::ISO_8859_16_INIT static">ISO_8859_16_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.ISO_8859_16.html">ISO-8859-16</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.KOI8_R.html" title="encoding_rs::KOI8_R static">KOI8_R</a></td><td class="docblock-short"><p>The KOI8-R encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.KOI8_R_INIT.html" title="encoding_rs::KOI8_R_INIT static">KOI8_R_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.KOI8_R.html">KOI8-R</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.KOI8_U.html" title="encoding_rs::KOI8_U static">KOI8_U</a></td><td class="docblock-short"><p>The KOI8-U encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.KOI8_U_INIT.html" title="encoding_rs::KOI8_U_INIT static">KOI8_U_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.KOI8_U.html">KOI8-U</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.MACINTOSH.html" title="encoding_rs::MACINTOSH static">MACINTOSH</a></td><td class="docblock-short"><p>The macintosh encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.MACINTOSH_INIT.html" title="encoding_rs::MACINTOSH_INIT static">MACINTOSH_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.MACINTOSH.html">macintosh</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.REPLACEMENT.html" title="encoding_rs::REPLACEMENT static">REPLACEMENT</a></td><td class="docblock-short"><p>The replacement encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.REPLACEMENT_INIT.html" title="encoding_rs::REPLACEMENT_INIT static">REPLACEMENT_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.REPLACEMENT.html">replacement</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.SHIFT_JIS.html" title="encoding_rs::SHIFT_JIS static">SHIFT_JIS</a></td><td class="docblock-short"><p>The Shift_JIS encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.SHIFT_JIS_INIT.html" title="encoding_rs::SHIFT_JIS_INIT static">SHIFT_JIS_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.SHIFT_JIS.html">Shift_JIS</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.UTF_8.html" title="encoding_rs::UTF_8 static">UTF_8</a></td><td class="docblock-short"><p>The UTF-8 encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.UTF_8_INIT.html" title="encoding_rs::UTF_8_INIT static">UTF_8_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.UTF_8.html">UTF-8</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.UTF_16BE.html" title="encoding_rs::UTF_16BE static">UTF_16BE</a></td><td class="docblock-short"><p>The UTF-16BE encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.UTF_16BE_INIT.html" title="encoding_rs::UTF_16BE_INIT static">UTF_16BE_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.UTF_16BE.html">UTF-16BE</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.UTF_16LE.html" title="encoding_rs::UTF_16LE static">UTF_16LE</a></td><td class="docblock-short"><p>The UTF-16LE encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.UTF_16LE_INIT.html" title="encoding_rs::UTF_16LE_INIT static">UTF_16LE_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.UTF_16LE.html">UTF-16LE</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.WINDOWS_874.html" title="encoding_rs::WINDOWS_874 static">WINDOWS_874</a></td><td class="docblock-short"><p>The windows-874 encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.WINDOWS_874_INIT.html" title="encoding_rs::WINDOWS_874_INIT static">WINDOWS_874_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.WINDOWS_874.html">windows-874</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.WINDOWS_1250.html" title="encoding_rs::WINDOWS_1250 static">WINDOWS_1250</a></td><td class="docblock-short"><p>The windows-1250 encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.WINDOWS_1250_INIT.html" title="encoding_rs::WINDOWS_1250_INIT static">WINDOWS_1250_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.WINDOWS_1250.html">windows-1250</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.WINDOWS_1251.html" title="encoding_rs::WINDOWS_1251 static">WINDOWS_1251</a></td><td class="docblock-short"><p>The windows-1251 encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.WINDOWS_1251_INIT.html" title="encoding_rs::WINDOWS_1251_INIT static">WINDOWS_1251_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.WINDOWS_1251.html">windows-1251</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.WINDOWS_1252.html" title="encoding_rs::WINDOWS_1252 static">WINDOWS_1252</a></td><td class="docblock-short"><p>The windows-1252 encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.WINDOWS_1252_INIT.html" title="encoding_rs::WINDOWS_1252_INIT static">WINDOWS_1252_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.WINDOWS_1252.html">windows-1252</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.WINDOWS_1253.html" title="encoding_rs::WINDOWS_1253 static">WINDOWS_1253</a></td><td class="docblock-short"><p>The windows-1253 encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.WINDOWS_1253_INIT.html" title="encoding_rs::WINDOWS_1253_INIT static">WINDOWS_1253_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.WINDOWS_1253.html">windows-1253</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.WINDOWS_1254.html" title="encoding_rs::WINDOWS_1254 static">WINDOWS_1254</a></td><td class="docblock-short"><p>The windows-1254 encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.WINDOWS_1254_INIT.html" title="encoding_rs::WINDOWS_1254_INIT static">WINDOWS_1254_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.WINDOWS_1254.html">windows-1254</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.WINDOWS_1255.html" title="encoding_rs::WINDOWS_1255 static">WINDOWS_1255</a></td><td class="docblock-short"><p>The windows-1255 encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.WINDOWS_1255_INIT.html" title="encoding_rs::WINDOWS_1255_INIT static">WINDOWS_1255_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.WINDOWS_1255.html">windows-1255</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.WINDOWS_1256.html" title="encoding_rs::WINDOWS_1256 static">WINDOWS_1256</a></td><td class="docblock-short"><p>The windows-1256 encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.WINDOWS_1256_INIT.html" title="encoding_rs::WINDOWS_1256_INIT static">WINDOWS_1256_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.WINDOWS_1256.html">windows-1256</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.WINDOWS_1257.html" title="encoding_rs::WINDOWS_1257 static">WINDOWS_1257</a></td><td class="docblock-short"><p>The windows-1257 encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.WINDOWS_1257_INIT.html" title="encoding_rs::WINDOWS_1257_INIT static">WINDOWS_1257_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.WINDOWS_1257.html">windows-1257</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.WINDOWS_1258.html" title="encoding_rs::WINDOWS_1258 static">WINDOWS_1258</a></td><td class="docblock-short"><p>The windows-1258 encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.WINDOWS_1258_INIT.html" title="encoding_rs::WINDOWS_1258_INIT static">WINDOWS_1258_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.WINDOWS_1258.html">windows-1258</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.X_MAC_CYRILLIC.html" title="encoding_rs::X_MAC_CYRILLIC static">X_MAC_CYRILLIC</a></td><td class="docblock-short"><p>The x-mac-cyrillic encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.X_MAC_CYRILLIC_INIT.html" title="encoding_rs::X_MAC_CYRILLIC_INIT static">X_MAC_CYRILLIC_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.X_MAC_CYRILLIC.html">x-mac-cyrillic</a> encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.X_USER_DEFINED.html" title="encoding_rs::X_USER_DEFINED static">X_USER_DEFINED</a></td><td class="docblock-short"><p>The x-user-defined encoding.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="static" href="static.X_USER_DEFINED_INIT.html" title="encoding_rs::X_USER_DEFINED_INIT static">X_USER_DEFINED_INIT</a></td><td class="docblock-short"><p>The initializer for the <a href="static.X_USER_DEFINED.html">x-user-defined</a> encoding.</p>
|
||||
</td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,32 @@
|
||||
<!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="Classification of text as Latin1 (all code points are below U+0100), left-to-right with some non-Latin1 characters or as containing at least some right-to-left characters."><meta name="keywords" content="rust, rustlang, rust-lang, Latin1Bidi"><title>encoding_rs::mem::Latin1Bidi - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Enum Latin1Bidi</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.Bidi">Bidi</a><a href="#variant.Latin1">Latin1</a><a href="#variant.LeftToRight">LeftToRight</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Debug">Debug</a><a href="#impl-Eq">Eq</a><a href="#impl-PartialEq%3CLatin1Bidi%3E">PartialEq<Latin1Bidi></a><a href="#impl-StructuralEq">StructuralEq</a><a href="#impl-StructuralPartialEq">StructuralPartialEq</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="Latin1Bidi" data-ty="enum" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Enum <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="enum" href="">Latin1Bidi</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#68-76" title="goto source code">[src]</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust enum"><span class="docblock attributes top-attr">#[must_use]
|
||||
#[repr(C)]</span>pub enum Latin1Bidi {
|
||||
Latin1,
|
||||
LeftToRight,
|
||||
Bidi,
|
||||
}</pre></div><div class="docblock"><p>Classification of text as Latin1 (all code points are below U+0100),
|
||||
left-to-right with some non-Latin1 characters or as containing at least
|
||||
some right-to-left characters.</p>
|
||||
</div><h2 id="variants" class="variants small-section-header">
|
||||
Variants<a href="#variants" class="anchor"></a></h2>
|
||||
<div id="variant.Latin1" class="variant small-section-header"><a href="#variant.Latin1" class="anchor field"></a><code>Latin1</code></div><div class="docblock"><p>Every character is below U+0100.</p>
|
||||
</div><div id="variant.LeftToRight" class="variant small-section-header"><a href="#variant.LeftToRight" class="anchor field"></a><code>LeftToRight</code></div><div class="docblock"><p>There is at least one character that’s U+0100 or higher, but there
|
||||
are no right-to-left characters.</p>
|
||||
</div><div id="variant.Bidi" class="variant small-section-header"><a href="#variant.Bidi" class="anchor field"></a><code>Bidi</code></div><div class="docblock"><p>There is at least one right-to-left character.</p>
|
||||
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-Debug" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../../encoding_rs/mem/enum.Latin1Bidi.html" title="enum encoding_rs::mem::Latin1Bidi">Latin1Bidi</a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../../src/encoding_rs/mem.rs.html#66" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../../src/encoding_rs/mem.rs.html#66" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id="impl-Eq" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="enum" href="../../encoding_rs/mem/enum.Latin1Bidi.html" title="enum encoding_rs::mem::Latin1Bidi">Latin1Bidi</a></code><a href="#impl-Eq" class="anchor"></a><a class="srclink" href="../../src/encoding_rs/mem.rs.html#66" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-PartialEq%3CLatin1Bidi%3E" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="enum" href="../../encoding_rs/mem/enum.Latin1Bidi.html" title="enum encoding_rs::mem::Latin1Bidi">Latin1Bidi</a>> for <a class="enum" href="../../encoding_rs/mem/enum.Latin1Bidi.html" title="enum encoding_rs::mem::Latin1Bidi">Latin1Bidi</a></code><a href="#impl-PartialEq%3CLatin1Bidi%3E" class="anchor"></a><a class="srclink" href="../../src/encoding_rs/mem.rs.html#66" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.eq" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="enum" href="../../encoding_rs/mem/enum.Latin1Bidi.html" title="enum encoding_rs::mem::Latin1Bidi">Latin1Bidi</a>) -> bool</code><a class="srclink" href="../../src/encoding_rs/mem.rs.html#66" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
|
||||
by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||||
</div><h4 id="method.ne" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>pub fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: &Rhs) -> bool</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#213" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>
|
||||
</div></div><h3 id="impl-StructuralEq" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html" title="trait core::marker::StructuralEq">StructuralEq</a> for <a class="enum" href="../../encoding_rs/mem/enum.Latin1Bidi.html" title="enum encoding_rs::mem::Latin1Bidi">Latin1Bidi</a></code><a href="#impl-StructuralEq" class="anchor"></a><a class="srclink" href="../../src/encoding_rs/mem.rs.html#66" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-StructuralPartialEq" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="enum" href="../../encoding_rs/mem/enum.Latin1Bidi.html" title="enum encoding_rs::mem::Latin1Bidi">Latin1Bidi</a></code><a href="#impl-StructuralPartialEq" class="anchor"></a><a class="srclink" href="../../src/encoding_rs/mem.rs.html#66" title="goto source code">[src]</a></h3><div class="impl-items"></div></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><h3 id="impl-Send" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="../../encoding_rs/mem/enum.Latin1Bidi.html" title="enum encoding_rs::mem::Latin1Bidi">Latin1Bidi</a></code><a href="#impl-Send" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Sync" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="../../encoding_rs/mem/enum.Latin1Bidi.html" title="enum encoding_rs::mem::Latin1Bidi">Latin1Bidi</a></code><a href="#impl-Sync" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Unpin" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="enum" href="../../encoding_rs/mem/enum.Latin1Bidi.html" title="enum encoding_rs::mem::Latin1Bidi">Latin1Bidi</a></code><a href="#impl-Unpin" class="anchor"></a></h3><div class="impl-items"></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><h3 id="impl-Any" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#131-135" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.type_id" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#132" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id="impl-Borrow%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Borrow%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#207-211" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> &T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#208" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id="impl-BorrowMut%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-218" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow_mut" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> &mut T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#215" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id="impl-From%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href="#impl-From%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#545-549" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -> T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#546" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-Into%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href="#impl-Into%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#534-541" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> U</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#538" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-TryFrom%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href="#impl-TryFrom%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#582-591" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id="method.try_from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fnname">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#588" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-TryInto%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href="#impl-TryInto%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#568-577" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error-1" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id="method.try_into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fnname">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#574" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,11 @@
|
||||
<!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="Checks whether a valid UTF-8 buffer contains code points that trigger right-to-left processing or is all-Latin1."><meta name="keywords" content="rust, rustlang, rust-lang, check_str_for_latin1_and_bidi"><title>encoding_rs::mem::check_str_for_latin1_and_bidi - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="check_str_for_latin1_and_bidi" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">check_str_for_latin1_and_bidi</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#1438-1450" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn check_str_for_latin1_and_bidi(buffer: &str) -> <a class="enum" href="../../encoding_rs/mem/enum.Latin1Bidi.html" title="enum encoding_rs::mem::Latin1Bidi">Latin1Bidi</a></pre><div class="docblock"><p>Checks whether a valid UTF-8 buffer contains code points
|
||||
that trigger right-to-left processing or is all-Latin1.</p>
|
||||
<p>Possibly more efficient than performing the checks separately.</p>
|
||||
<p>Returns <code>Latin1Bidi::Latin1</code> if <code>is_str_latin1()</code> would return <code>true</code>.
|
||||
Otherwise, returns <code>Latin1Bidi::Bidi</code> if <code>is_str_bidi()</code> would return
|
||||
<code>true</code>. Otherwise, returns <code>Latin1Bidi::LeftToRight</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,11 @@
|
||||
<!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="Checks whether a potentially invalid UTF-16 buffer contains code points that trigger right-to-left processing or is all-Latin1."><meta name="keywords" content="rust, rustlang, rust-lang, check_utf16_for_latin1_and_bidi"><title>encoding_rs::mem::check_utf16_for_latin1_and_bidi - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="check_utf16_for_latin1_and_bidi" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">check_utf16_for_latin1_and_bidi</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#1460-1462" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn check_utf16_for_latin1_and_bidi(buffer: &[u16]) -> <a class="enum" href="../../encoding_rs/mem/enum.Latin1Bidi.html" title="enum encoding_rs::mem::Latin1Bidi">Latin1Bidi</a></pre><div class="docblock"><p>Checks whether a potentially invalid UTF-16 buffer contains code points
|
||||
that trigger right-to-left processing or is all-Latin1.</p>
|
||||
<p>Possibly more efficient than performing the checks separately.</p>
|
||||
<p>Returns <code>Latin1Bidi::Latin1</code> if <code>is_utf16_latin1()</code> would return <code>true</code>.
|
||||
Otherwise, returns <code>Latin1Bidi::Bidi</code> if <code>is_utf16_bidi()</code> would return
|
||||
<code>true</code>. Otherwise, returns <code>Latin1Bidi::LeftToRight</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,11 @@
|
||||
<!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="Checks whether a potentially invalid UTF-8 buffer contains code points that trigger right-to-left processing or is all-Latin1."><meta name="keywords" content="rust, rustlang, rust-lang, check_utf8_for_latin1_and_bidi"><title>encoding_rs::mem::check_utf8_for_latin1_and_bidi - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="check_utf8_for_latin1_and_bidi" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">check_utf8_for_latin1_and_bidi</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#1418-1428" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn check_utf8_for_latin1_and_bidi(buffer: &[u8]) -> <a class="enum" href="../../encoding_rs/mem/enum.Latin1Bidi.html" title="enum encoding_rs::mem::Latin1Bidi">Latin1Bidi</a></pre><div class="docblock"><p>Checks whether a potentially invalid UTF-8 buffer contains code points
|
||||
that trigger right-to-left processing or is all-Latin1.</p>
|
||||
<p>Possibly more efficient than performing the checks separately.</p>
|
||||
<p>Returns <code>Latin1Bidi::Latin1</code> if <code>is_utf8_latin1()</code> would return <code>true</code>.
|
||||
Otherwise, returns <code>Latin1Bidi::Bidi</code> if <code>is_utf8_bidi()</code> would return
|
||||
<code>true</code>. Otherwise, returns <code>Latin1Bidi::LeftToRight</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -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="Converts bytes whose unsigned value is interpreted as Unicode code point (i.e. U+0000 to U+00FF, inclusive) to UTF-8 such that the validity of the output is signaled using the Rust type system."><meta name="keywords" content="rust, rustlang, rust-lang, convert_latin1_to_str"><title>encoding_rs::mem::convert_latin1_to_str - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="convert_latin1_to_str" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">convert_latin1_to_str</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#1880-1888" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn convert_latin1_to_str(src: &[u8], dst: &mut str) -> usize</pre><div class="docblock"><p>Converts bytes whose unsigned value is interpreted as Unicode code point
|
||||
(i.e. U+0000 to U+00FF, inclusive) to UTF-8 such that the validity of the
|
||||
output is signaled using the Rust type system.</p>
|
||||
<p>The length of the destination buffer must be at least the length of the
|
||||
source buffer times two.</p>
|
||||
<p>Returns the number of bytes written.</p>
|
||||
<h1 id="panics" class="section-header"><a href="#panics">Panics</a></h1>
|
||||
<p>Panics if the destination buffer is shorter than stated above.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,11 @@
|
||||
<!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="Converts bytes whose unsigned value is interpreted as Unicode code point (i.e. U+0000 to U+00FF, inclusive) to UTF-8 such that the validity of the output is signaled using the Rust type system with potentially insufficient output space."><meta name="keywords" content="rust, rustlang, rust-lang, convert_latin1_to_str_partial"><title>encoding_rs::mem::convert_latin1_to_str_partial - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="convert_latin1_to_str_partial" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">convert_latin1_to_str_partial</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#1850-1865" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn convert_latin1_to_str_partial(<br> src: &[u8], <br> dst: &mut str<br>) -> (usize, usize)</pre><div class="docblock"><p>Converts bytes whose unsigned value is interpreted as Unicode code point
|
||||
(i.e. U+0000 to U+00FF, inclusive) to UTF-8 such that the validity of the
|
||||
output is signaled using the Rust type system with potentially insufficient
|
||||
output space.</p>
|
||||
<p>Returns the number of bytes read and the number of bytes written.</p>
|
||||
<p>If the output isn’t large enough, not all input is consumed.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,12 @@
|
||||
<!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="Converts bytes whose unsigned value is interpreted as Unicode code point (i.e. U+0000 to U+00FF, inclusive) to UTF-16."><meta name="keywords" content="rust, rustlang, rust-lang, convert_latin1_to_utf16"><title>encoding_rs::mem::convert_latin1_to_utf16 - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="convert_latin1_to_utf16" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">convert_latin1_to_utf16</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#1749-1760" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn convert_latin1_to_utf16(src: &[u8], dst: &mut [u16])</pre><div class="docblock"><p>Converts bytes whose unsigned value is interpreted as Unicode code point
|
||||
(i.e. U+0000 to U+00FF, inclusive) to UTF-16.</p>
|
||||
<p>The length of the destination buffer must be at least the length of the
|
||||
source buffer.</p>
|
||||
<p>The number of <code>u16</code>s written equals the length of the source buffer.</p>
|
||||
<h1 id="panics" class="section-header"><a href="#panics">Panics</a></h1>
|
||||
<p>Panics if the destination buffer is shorter than stated above.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,17 @@
|
||||
<!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="Converts bytes whose unsigned value is interpreted as Unicode code point (i.e. U+0000 to U+00FF, inclusive) to UTF-8."><meta name="keywords" content="rust, rustlang, rust-lang, convert_latin1_to_utf8"><title>encoding_rs::mem::convert_latin1_to_utf8 - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="convert_latin1_to_utf8" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">convert_latin1_to_utf8</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#1831-1839" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn convert_latin1_to_utf8(src: &[u8], dst: &mut [u8]) -> usize</pre><div class="docblock"><p>Converts bytes whose unsigned value is interpreted as Unicode code point
|
||||
(i.e. U+0000 to U+00FF, inclusive) to UTF-8.</p>
|
||||
<p>The length of the destination buffer must be at least the length of the
|
||||
source buffer times two.</p>
|
||||
<p>Returns the number of bytes written.</p>
|
||||
<h1 id="panics" class="section-header"><a href="#panics">Panics</a></h1>
|
||||
<p>Panics if the destination buffer is shorter than stated above.</p>
|
||||
<h1 id="safety" class="section-header"><a href="#safety">Safety</a></h1>
|
||||
<p>Note that this function may write garbage beyond the number of bytes
|
||||
indicated by the return value, so using a <code>&mut str</code> interpreted as
|
||||
<code>&mut [u8]</code> as the destination is not safe. If you want to convert into
|
||||
a <code>&mut str</code>, use <code>convert_utf16_to_str()</code> instead of this function.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -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="Converts bytes whose unsigned value is interpreted as Unicode code point (i.e. U+0000 to U+00FF, inclusive) to UTF-8 with potentially insufficient output space."><meta name="keywords" content="rust, rustlang, rust-lang, convert_latin1_to_utf8_partial"><title>encoding_rs::mem::convert_latin1_to_utf8_partial - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="convert_latin1_to_utf8_partial" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">convert_latin1_to_utf8_partial</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#1775-1810" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn convert_latin1_to_utf8_partial(<br> src: &[u8], <br> dst: &mut [u8]<br>) -> (usize, usize)</pre><div class="docblock"><p>Converts bytes whose unsigned value is interpreted as Unicode code point
|
||||
(i.e. U+0000 to U+00FF, inclusive) to UTF-8 with potentially insufficient
|
||||
output space.</p>
|
||||
<p>Returns the number of bytes read and the number of bytes written.</p>
|
||||
<p>If the output isn’t large enough, not all input is consumed.</p>
|
||||
<h1 id="safety" class="section-header"><a href="#safety">Safety</a></h1>
|
||||
<p>If you want to convert into a <code>&mut str</code>, use
|
||||
<code>convert_utf16_to_str_partial()</code> instead of using this function
|
||||
together with the <code>unsafe</code> method <code>as_bytes_mut()</code> on <code>&mut str</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,11 @@
|
||||
<!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="Converts valid UTF-8 to valid UTF-16."><meta name="keywords" content="rust, rustlang, rust-lang, convert_str_to_utf16"><title>encoding_rs::mem::convert_str_to_utf16 - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="convert_str_to_utf16" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">convert_str_to_utf16</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#1514-1599" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn convert_str_to_utf16(src: &str, dst: &mut [u16]) -> usize</pre><div class="docblock"><p>Converts valid UTF-8 to valid UTF-16.</p>
|
||||
<p>The length of the destination buffer must be at least the length of the
|
||||
source buffer.</p>
|
||||
<p>Returns the number of <code>u16</code>s written.</p>
|
||||
<h1 id="panics" class="section-header"><a href="#panics">Panics</a></h1>
|
||||
<p>Panics if the destination buffer is shorter than stated above.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -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="If the input is valid UTF-16 representing only Unicode code points from U+0000 to U+00FF, inclusive, converts the input into output that represents the value of each code point as the unsigned byte value of each output byte."><meta name="keywords" content="rust, rustlang, rust-lang, convert_utf16_to_latin1_lossy"><title>encoding_rs::mem::convert_utf16_to_latin1_lossy - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="convert_utf16_to_latin1_lossy" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">convert_utf16_to_latin1_lossy</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#1975-1984" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn convert_utf16_to_latin1_lossy(src: &[u16], dst: &mut [u8])</pre><div class="docblock"><p>If the input is valid UTF-16 representing only Unicode code points from
|
||||
U+0000 to U+00FF, inclusive, converts the input into output that
|
||||
represents the value of each code point as the unsigned byte value of
|
||||
each output byte.</p>
|
||||
<p>If the input does not fulfill the condition stated above, does something
|
||||
that is memory-safe without any promises about any properties of the
|
||||
output and will probably assert in debug builds in future versions.
|
||||
In particular, callers shouldn’t assume the output to be the same across
|
||||
crate versions or CPU architectures and should not assume that non-ASCII
|
||||
input can’t map to ASCII output.</p>
|
||||
<p>The length of the destination buffer must be at least the length of the
|
||||
source buffer.</p>
|
||||
<p>The number of bytes written equals the length of the source buffer.</p>
|
||||
<h1 id="panics" class="section-header"><a href="#panics">Panics</a></h1>
|
||||
<p>Panics if the destination buffer is shorter than stated above.</p>
|
||||
<p>(Probably in future versions if debug assertions are enabled (and not
|
||||
fuzzing) and the input is not in the range U+0000 to U+00FF, inclusive.)</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -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="Converts potentially-invalid UTF-16 to valid UTF-8 with errors replaced with the REPLACEMENT CHARACTER such that the validity of the output is signaled using the Rust type system."><meta name="keywords" content="rust, rustlang, rust-lang, convert_utf16_to_str"><title>encoding_rs::mem::convert_utf16_to_str - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="convert_utf16_to_str" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">convert_utf16_to_str</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#1731-1736" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn convert_utf16_to_str(src: &[u16], dst: &mut str) -> usize</pre><div class="docblock"><p>Converts potentially-invalid UTF-16 to valid UTF-8 with errors replaced
|
||||
with the REPLACEMENT CHARACTER such that the validity of the output is
|
||||
signaled using the Rust type system.</p>
|
||||
<p>The length of the destination buffer must be at least the length of the
|
||||
source buffer times three.</p>
|
||||
<p>Returns the number of bytes written.</p>
|
||||
<h1 id="panics" class="section-header"><a href="#panics">Panics</a></h1>
|
||||
<p>Panics if the destination buffer is shorter than stated above.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="Converts potentially-invalid UTF-16 to valid UTF-8 with errors replaced with the REPLACEMENT CHARACTER such that the validity of the output is signaled using the Rust type system with potentially insufficient output space."><meta name="keywords" content="rust, rustlang, rust-lang, convert_utf16_to_str_partial"><title>encoding_rs::mem::convert_utf16_to_str_partial - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="convert_utf16_to_str_partial" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">convert_utf16_to_str_partial</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#1706-1716" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn convert_utf16_to_str_partial(<br> src: &[u16], <br> dst: &mut str<br>) -> (usize, usize)</pre><div class="docblock"><p>Converts potentially-invalid UTF-16 to valid UTF-8 with errors replaced
|
||||
with the REPLACEMENT CHARACTER such that the validity of the output is
|
||||
signaled using the Rust type system with potentially insufficient output
|
||||
space.</p>
|
||||
<p>Returns the number of code units read and the number of bytes written.</p>
|
||||
<p>Not all code units are read if there isn’t enough output space.</p>
|
||||
<p>Note that this method isn’t designed for general streamability but for
|
||||
not allocating memory for the worst case up front. Specifically,
|
||||
if the input starts with or ends with an unpaired surrogate, those are
|
||||
replaced with the REPLACEMENT CHARACTER.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,16 @@
|
||||
<!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="Converts potentially-invalid UTF-16 to valid UTF-8 with errors replaced with the REPLACEMENT CHARACTER."><meta name="keywords" content="rust, rustlang, rust-lang, convert_utf16_to_utf8"><title>encoding_rs::mem::convert_utf16_to_utf8 - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="convert_utf16_to_utf8" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">convert_utf16_to_utf8</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#1686-1691" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn convert_utf16_to_utf8(src: &[u16], dst: &mut [u8]) -> usize</pre><div class="docblock"><p>Converts potentially-invalid UTF-16 to valid UTF-8 with errors replaced
|
||||
with the REPLACEMENT CHARACTER.</p>
|
||||
<p>The length of the destination buffer must be at least the length of the
|
||||
source buffer times three.</p>
|
||||
<p>Returns the number of bytes written.</p>
|
||||
<h1 id="panics" class="section-header"><a href="#panics">Panics</a></h1>
|
||||
<p>Panics if the destination buffer is shorter than stated above.</p>
|
||||
<h1 id="safety" class="section-header"><a href="#safety">Safety</a></h1>
|
||||
<p>If you want to convert into a <code>&mut str</code>, use <code>convert_utf16_to_str()</code>
|
||||
instead of using this function together with the <code>unsafe</code> method
|
||||
<code>as_bytes_mut()</code> on <code>&mut str</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,23 @@
|
||||
<!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="Converts potentially-invalid UTF-16 to valid UTF-8 with errors replaced with the REPLACEMENT CHARACTER with potentially insufficient output space."><meta name="keywords" content="rust, rustlang, rust-lang, convert_utf16_to_utf8_partial"><title>encoding_rs::mem::convert_utf16_to_utf8_partial - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="convert_utf16_to_utf8_partial" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">convert_utf16_to_utf8_partial</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#1651-1666" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn convert_utf16_to_utf8_partial(<br> src: &[u16], <br> dst: &mut [u8]<br>) -> (usize, usize)</pre><div class="docblock"><p>Converts potentially-invalid UTF-16 to valid UTF-8 with errors replaced
|
||||
with the REPLACEMENT CHARACTER with potentially insufficient output
|
||||
space.</p>
|
||||
<p>Returns the number of code units read and the number of bytes written.</p>
|
||||
<p>Guarantees that the bytes in the destination beyond the number of
|
||||
bytes claimed as written by the second item of the return tuple
|
||||
are left unmodified.</p>
|
||||
<p>Not all code units are read if there isn’t enough output space.</p>
|
||||
<p>Note that this method isn’t designed for general streamability but for
|
||||
not allocating memory for the worst case up front. Specifically,
|
||||
if the input starts with or ends with an unpaired surrogate, those are
|
||||
replaced with the REPLACEMENT CHARACTER.</p>
|
||||
<p>Matches the semantics of <code>TextEncoder.encodeInto()</code> from the
|
||||
Encoding Standard.</p>
|
||||
<h1 id="safety" class="section-header"><a href="#safety">Safety</a></h1>
|
||||
<p>If you want to convert into a <code>&mut str</code>, use
|
||||
<code>convert_utf16_to_str_partial()</code> instead of using this function
|
||||
together with the <code>unsafe</code> method <code>as_bytes_mut()</code> on <code>&mut str</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -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="If the input is valid UTF-8 representing only Unicode code points from U+0000 to U+00FF, inclusive, converts the input into output that represents the value of each code point as the unsigned byte value of each output byte."><meta name="keywords" content="rust, rustlang, rust-lang, convert_utf8_to_latin1_lossy"><title>encoding_rs::mem::convert_utf8_to_latin1_lossy - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="convert_utf8_to_latin1_lossy" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">convert_utf8_to_latin1_lossy</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#1913-1950" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn convert_utf8_to_latin1_lossy(src: &[u8], dst: &mut [u8]) -> usize</pre><div class="docblock"><p>If the input is valid UTF-8 representing only Unicode code points from
|
||||
U+0000 to U+00FF, inclusive, converts the input into output that
|
||||
represents the value of each code point as the unsigned byte value of
|
||||
each output byte.</p>
|
||||
<p>If the input does not fulfill the condition stated above, this function
|
||||
panics if debug assertions are enabled (and fuzzing isn’t) and otherwise
|
||||
does something that is memory-safe without any promises about any
|
||||
properties of the output. In particular, callers shouldn’t assume the
|
||||
output to be the same across crate versions or CPU architectures and
|
||||
should not assume that non-ASCII input can’t map to ASCII output.</p>
|
||||
<p>The length of the destination buffer must be at least the length of the
|
||||
source buffer.</p>
|
||||
<p>Returns the number of bytes written.</p>
|
||||
<h1 id="panics" class="section-header"><a href="#panics">Panics</a></h1>
|
||||
<p>Panics if the destination buffer is shorter than stated above.</p>
|
||||
<p>If debug assertions are enabled (and not fuzzing) and the input is
|
||||
not in the range U+0000 to U+00FF, inclusive.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,12 @@
|
||||
<!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="Converts potentially-invalid UTF-8 to valid UTF-16 with errors replaced with the REPLACEMENT CHARACTER."><meta name="keywords" content="rust, rustlang, rust-lang, convert_utf8_to_utf16"><title>encoding_rs::mem::convert_utf8_to_utf16 - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="convert_utf8_to_utf16" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">convert_utf8_to_utf16</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#1475-1502" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn convert_utf8_to_utf16(src: &[u8], dst: &mut [u16]) -> usize</pre><div class="docblock"><p>Converts potentially-invalid UTF-8 to valid UTF-16 with errors replaced
|
||||
with the REPLACEMENT CHARACTER.</p>
|
||||
<p>The length of the destination buffer must be at least the length of the
|
||||
source buffer <em>plus one</em>.</p>
|
||||
<p>Returns the number of <code>u16</code>s written.</p>
|
||||
<h1 id="panics" class="section-header"><a href="#panics">Panics</a></h1>
|
||||
<p>Panics if the destination buffer is shorter than stated above.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,12 @@
|
||||
<!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="Converts potentially-invalid UTF-8 to valid UTF-16 signaling on error."><meta name="keywords" content="rust, rustlang, rust-lang, convert_utf8_to_utf16_without_replacement"><title>encoding_rs::mem::convert_utf8_to_utf16_without_replacement - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="convert_utf8_to_utf16_without_replacement" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">convert_utf8_to_utf16_without_replacement</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#1613-1623" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn convert_utf8_to_utf16_without_replacement(<br> src: &[u8], <br> dst: &mut [u16]<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><usize></pre><div class="docblock"><p>Converts potentially-invalid UTF-8 to valid UTF-16 signaling on error.</p>
|
||||
<p>The length of the destination buffer must be at least the length of the
|
||||
source buffer.</p>
|
||||
<p>Returns the number of <code>u16</code>s written or <code>None</code> if the input was invalid.</p>
|
||||
<p>When the input was invalid, some output may have been written.</p>
|
||||
<h1 id="panics" class="section-header"><a href="#panics">Panics</a></h1>
|
||||
<p>Panics if the destination buffer is shorter than stated above.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,12 @@
|
||||
<!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="Copies ASCII from source to destination up to the first non-ASCII byte (or the end of the input if it is ASCII in its entirety)."><meta name="keywords" content="rust, rustlang, rust-lang, copy_ascii_to_ascii"><title>encoding_rs::mem::copy_ascii_to_ascii - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="copy_ascii_to_ascii" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">copy_ascii_to_ascii</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#2089-2101" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn copy_ascii_to_ascii(src: &[u8], dst: &mut [u8]) -> usize</pre><div class="docblock"><p>Copies ASCII from source to destination up to the first non-ASCII byte
|
||||
(or the end of the input if it is ASCII in its entirety).</p>
|
||||
<p>The length of the destination buffer must be at least the length of the
|
||||
source buffer.</p>
|
||||
<p>Returns the number of bytes written.</p>
|
||||
<h1 id="panics" class="section-header"><a href="#panics">Panics</a></h1>
|
||||
<p>Panics if the destination buffer is shorter than stated above.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -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="Copies ASCII from source to destination zero-extending it to UTF-16 up to the first non-ASCII byte (or the end of the input if it is ASCII in its entirety)."><meta name="keywords" content="rust, rustlang, rust-lang, copy_ascii_to_basic_latin"><title>encoding_rs::mem::copy_ascii_to_basic_latin - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="copy_ascii_to_basic_latin" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">copy_ascii_to_basic_latin</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#2115-2127" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn copy_ascii_to_basic_latin(src: &[u8], dst: &mut [u16]) -> usize</pre><div class="docblock"><p>Copies ASCII from source to destination zero-extending it to UTF-16 up to
|
||||
the first non-ASCII byte (or the end of the input if it is ASCII in its
|
||||
entirety).</p>
|
||||
<p>The length of the destination buffer must be at least the length of the
|
||||
source buffer.</p>
|
||||
<p>Returns the number of <code>u16</code>s written.</p>
|
||||
<h1 id="panics" class="section-header"><a href="#panics">Panics</a></h1>
|
||||
<p>Panics if the destination buffer is shorter than stated above.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -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="Copies Basic Latin from source to destination narrowing it to ASCII up to the first non-Basic Latin code unit (or the end of the input if it is Basic Latin in its entirety)."><meta name="keywords" content="rust, rustlang, rust-lang, copy_basic_latin_to_ascii"><title>encoding_rs::mem::copy_basic_latin_to_ascii - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="copy_basic_latin_to_ascii" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">copy_basic_latin_to_ascii</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#2141-2153" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn copy_basic_latin_to_ascii(src: &[u16], dst: &mut [u8]) -> usize</pre><div class="docblock"><p>Copies Basic Latin from source to destination narrowing it to ASCII up to
|
||||
the first non-Basic Latin code unit (or the end of the input if it is
|
||||
Basic Latin in its entirety).</p>
|
||||
<p>The length of the destination buffer must be at least the length of the
|
||||
source buffer.</p>
|
||||
<p>Returns the number of bytes written.</p>
|
||||
<h1 id="panics" class="section-header"><a href="#panics">Panics</a></h1>
|
||||
<p>Panics if the destination buffer is shorter than stated above.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,9 @@
|
||||
<!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="Converts bytes whose unsigned value is interpreted as Unicode code point (i.e. U+0000 to U+00FF, inclusive) to UTF-8."><meta name="keywords" content="rust, rustlang, rust-lang, decode_latin1"><title>encoding_rs::mem::decode_latin1 - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="decode_latin1" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">decode_latin1</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#1991-2009" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn decode_latin1<'a>(bytes: &'a [u8]) -> <a class="enum" href="https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a><'a, str></pre><div class="docblock"><p>Converts bytes whose unsigned value is interpreted as Unicode code point
|
||||
(i.e. U+0000 to U+00FF, inclusive) to UTF-8.</p>
|
||||
<p>Borrows if input is ASCII-only. Performs a single heap allocation
|
||||
otherwise.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,17 @@
|
||||
<!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="If the input is valid UTF-8 representing only Unicode code points from U+0000 to U+00FF, inclusive, converts the input into output that represents the value of each code point as the unsigned byte value of each output byte."><meta name="keywords" content="rust, rustlang, rust-lang, encode_latin1_lossy"><title>encoding_rs::mem::encode_latin1_lossy - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="encode_latin1_lossy" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">encode_latin1_lossy</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#2025-2043" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn encode_latin1_lossy<'a>(string: &'a str) -> <a class="enum" href="https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a><'a, [u8]></pre><div class="docblock"><p>If the input is valid UTF-8 representing only Unicode code points from
|
||||
U+0000 to U+00FF, inclusive, converts the input into output that
|
||||
represents the value of each code point as the unsigned byte value of
|
||||
each output byte.</p>
|
||||
<p>If the input does not fulfill the condition stated above, this function
|
||||
panics if debug assertions are enabled (and fuzzing isn’t) and otherwise
|
||||
does something that is memory-safe without any promises about any
|
||||
properties of the output. In particular, callers shouldn’t assume the
|
||||
output to be the same across crate versions or CPU architectures and
|
||||
should not assume that non-ASCII input can’t map to ASCII output.</p>
|
||||
<p>Borrows if input is ASCII-only. Performs a single heap allocation
|
||||
otherwise.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,6 @@
|
||||
<!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="Replaces unpaired surrogates in the input with the REPLACEMENT CHARACTER."><meta name="keywords" content="rust, rustlang, rust-lang, ensure_utf16_validity"><title>encoding_rs::mem::ensure_utf16_validity - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="ensure_utf16_validity" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">ensure_utf16_validity</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#2066-2076" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn ensure_utf16_validity(buffer: &mut [u16])</pre><div class="docblock"><p>Replaces unpaired surrogates in the input with the REPLACEMENT CHARACTER.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,8 @@
|
||||
<!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="Checks whether the buffer is all-ASCII."><meta name="keywords" content="rust, rustlang, rust-lang, is_ascii"><title>encoding_rs::mem::is_ascii - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="is_ascii" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">is_ascii</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#639-641" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn is_ascii(buffer: &[u8]) -> bool</pre><div class="docblock"><p>Checks whether the buffer is all-ASCII.</p>
|
||||
<p>May read the entire buffer even if it isn’t all-ASCII. (I.e. the function
|
||||
is not guaranteed to fail fast.)</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,9 @@
|
||||
<!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="Checks whether the buffer is all-Basic Latin (i.e. UTF-16 representing only ASCII characters)."><meta name="keywords" content="rust, rustlang, rust-lang, is_basic_latin"><title>encoding_rs::mem::is_basic_latin - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="is_basic_latin" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">is_basic_latin</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#648-650" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn is_basic_latin(buffer: &[u16]) -> bool</pre><div class="docblock"><p>Checks whether the buffer is all-Basic Latin (i.e. UTF-16 representing
|
||||
only ASCII characters).</p>
|
||||
<p>May read the entire buffer even if it isn’t all-ASCII. (I.e. the function
|
||||
is not guaranteed to fail fast.)</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="Checks whether a scalar value triggers right-to-left processing."><meta name="keywords" content="rust, rustlang, rust-lang, is_char_bidi"><title>encoding_rs::mem::is_char_bidi - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="is_char_bidi" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">is_char_bidi</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#1302-1356" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn is_char_bidi(c: char) -> bool</pre><div class="docblock"><p>Checks whether a scalar value triggers right-to-left processing.</p>
|
||||
<p>The check is done on a Unicode block basis without regard to assigned
|
||||
vs. unassigned code points in the block. Hebrew presentation forms in
|
||||
the Alphabetic Presentation Forms block are treated as if they formed
|
||||
a block on their own (i.e. it treated as right-to-left). Additionally,
|
||||
the four RIGHT-TO-LEFT FOO controls in General Punctuation are checked
|
||||
for. Control characters that are technically bidi controls but do not
|
||||
cause right-to-left behavior without the presence of right-to-left
|
||||
characters or right-to-left controls are not checked for. As a special
|
||||
case, U+FEFF is excluded from Arabic Presentation Forms-B.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,16 @@
|
||||
<!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="Checks whether a valid UTF-8 buffer contains code points that trigger right-to-left processing."><meta name="keywords" content="rust, rustlang, rust-lang, is_str_bidi"><title>encoding_rs::mem::is_str_bidi - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="is_str_bidi" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">is_str_bidi</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#1127-1267" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn is_str_bidi(buffer: &str) -> bool</pre><div class="docblock"><p>Checks whether a valid UTF-8 buffer contains code points that trigger
|
||||
right-to-left processing.</p>
|
||||
<p>The check is done on a Unicode block basis without regard to assigned
|
||||
vs. unassigned code points in the block. Hebrew presentation forms in
|
||||
the Alphabetic Presentation Forms block are treated as if they formed
|
||||
a block on their own (i.e. it treated as right-to-left). Additionally,
|
||||
the four RIGHT-TO-LEFT FOO controls in General Punctuation are checked
|
||||
for. Control characters that are technically bidi controls but do not
|
||||
cause right-to-left behavior without the presence of right-to-left
|
||||
characters or right-to-left controls are not checked for. As a special
|
||||
case, U+FEFF is excluded from Arabic Presentation Forms-B.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,9 @@
|
||||
<!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="Checks whether the buffer represents only code points less than or equal to U+00FF."><meta name="keywords" content="rust, rustlang, rust-lang, is_str_latin1"><title>encoding_rs::mem::is_str_latin1 - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="is_str_latin1" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">is_str_latin1</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#666-668" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn is_str_latin1(buffer: &str) -> bool</pre><div class="docblock"><p>Checks whether the buffer represents only code points less than or equal
|
||||
to U+00FF.</p>
|
||||
<p>Fails fast. (I.e. returns before having read the whole buffer if code
|
||||
points above U+00FF are discovered.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,20 @@
|
||||
<!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="Checks whether a UTF-16 buffer contains code points that trigger right-to-left processing."><meta name="keywords" content="rust, rustlang, rust-lang, is_utf16_bidi"><title>encoding_rs::mem::is_utf16_bidi - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="is_utf16_bidi" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">is_utf16_bidi</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#1286-1288" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn is_utf16_bidi(buffer: &[u16]) -> bool</pre><div class="docblock"><p>Checks whether a UTF-16 buffer contains code points that trigger
|
||||
right-to-left processing.</p>
|
||||
<p>The check is done on a Unicode block basis without regard to assigned
|
||||
vs. unassigned code points in the block. Hebrew presentation forms in
|
||||
the Alphabetic Presentation Forms block are treated as if they formed
|
||||
a block on their own (i.e. it treated as right-to-left). Additionally,
|
||||
the four RIGHT-TO-LEFT FOO controls in General Punctuation are checked
|
||||
for. Control characters that are technically bidi controls but do not
|
||||
cause right-to-left behavior without the presence of right-to-left
|
||||
characters or right-to-left controls are not checked for. As a special
|
||||
case, U+FEFF is excluded from Arabic Presentation Forms-B.</p>
|
||||
<p>Returns <code>true</code> if the input contains an RTL character or an unpaired
|
||||
high surrogate that could be the high half of an RTL character.
|
||||
Returns <code>false</code> if the input contains neither RTL characters nor
|
||||
unpaired high surrogates that could be higher halves of RTL characters.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,21 @@
|
||||
<!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="Checks whether a UTF-16 code unit triggers right-to-left processing."><meta name="keywords" content="rust, rustlang, rust-lang, is_utf16_code_unit_bidi"><title>encoding_rs::mem::is_utf16_code_unit_bidi - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="is_utf16_code_unit_bidi" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">is_utf16_code_unit_bidi</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#1377-1408" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn is_utf16_code_unit_bidi(u: u16) -> bool</pre><div class="docblock"><p>Checks whether a UTF-16 code unit triggers right-to-left processing.</p>
|
||||
<p>The check is done on a Unicode block basis without regard to assigned
|
||||
vs. unassigned code points in the block. Hebrew presentation forms in
|
||||
the Alphabetic Presentation Forms block are treated as if they formed
|
||||
a block on their own (i.e. it treated as right-to-left). Additionally,
|
||||
the four RIGHT-TO-LEFT FOO controls in General Punctuation are checked
|
||||
for. Control characters that are technically bidi controls but do not
|
||||
cause right-to-left behavior without the presence of right-to-left
|
||||
characters or right-to-left controls are not checked for. As a special
|
||||
case, U+FEFF is excluded from Arabic Presentation Forms-B.</p>
|
||||
<p>Since supplementary-plane right-to-left blocks are identifiable from the
|
||||
high surrogate without examining the low surrogate, this function returns
|
||||
<code>true</code> for such high surrogates making the function suitable for handling
|
||||
supplementary-plane text without decoding surrogate pairs to scalar
|
||||
values. Obviously, such high surrogates are then reported as right-to-left
|
||||
even if actually unpaired.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,9 @@
|
||||
<!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="Checks whether the buffer represents only code point less than or equal to U+00FF."><meta name="keywords" content="rust, rustlang, rust-lang, is_utf16_latin1"><title>encoding_rs::mem::is_utf16_latin1 - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="is_utf16_latin1" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">is_utf16_latin1</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#675-677" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn is_utf16_latin1(buffer: &[u16]) -> bool</pre><div class="docblock"><p>Checks whether the buffer represents only code point less than or equal
|
||||
to U+00FF.</p>
|
||||
<p>May read the entire buffer even if it isn’t all-Latin1. (I.e. the function
|
||||
is not guaranteed to fail fast.)</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -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="Checks whether a potentially-invalid UTF-8 buffer contains code points that trigger right-to-left processing."><meta name="keywords" content="rust, rustlang, rust-lang, is_utf8_bidi"><title>encoding_rs::mem::is_utf8_bidi - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="is_utf8_bidi" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">is_utf8_bidi</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#697-1111" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn is_utf8_bidi(buffer: &[u8]) -> bool</pre><div class="docblock"><p>Checks whether a potentially-invalid UTF-8 buffer contains code points
|
||||
that trigger right-to-left processing.</p>
|
||||
<p>The check is done on a Unicode block basis without regard to assigned
|
||||
vs. unassigned code points in the block. Hebrew presentation forms in
|
||||
the Alphabetic Presentation Forms block are treated as if they formed
|
||||
a block on their own (i.e. it treated as right-to-left). Additionally,
|
||||
the four RIGHT-TO-LEFT FOO controls in General Punctuation are checked
|
||||
for. Control characters that are technically bidi controls but do not
|
||||
cause right-to-left behavior without the presence of right-to-left
|
||||
characters or right-to-left controls are not checked for. As a special
|
||||
case, U+FEFF is excluded from Arabic Presentation Forms-B.</p>
|
||||
<p>Returns <code>true</code> if the input is invalid UTF-8 or the input contains an
|
||||
RTL character. Returns <code>false</code> if the input is valid UTF-8 and contains
|
||||
no RTL characters.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,9 @@
|
||||
<!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="Checks whether the buffer is valid UTF-8 representing only code points less than or equal to U+00FF."><meta name="keywords" content="rust, rustlang, rust-lang, is_utf8_latin1"><title>encoding_rs::mem::is_utf8_latin1 - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="is_utf8_latin1" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">is_utf8_latin1</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#657-659" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn is_utf8_latin1(buffer: &[u8]) -> bool</pre><div class="docblock"><p>Checks whether the buffer is valid UTF-8 representing only code points
|
||||
less than or equal to U+00FF.</p>
|
||||
<p>Fails fast. (I.e. returns before having read the whole buffer if UTF-8
|
||||
invalidity or code points above U+00FF are discovered.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<!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="Returns the index of first byte that starts a non-Latin1 byte sequence, or the length of the string if there are none."><meta name="keywords" content="rust, rustlang, rust-lang, str_latin1_up_to"><title>encoding_rs::mem::str_latin1_up_to - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="str_latin1_up_to" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">str_latin1_up_to</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#2060-2062" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn str_latin1_up_to(buffer: &str) -> usize</pre><div class="docblock"><p>Returns the index of first byte that starts a non-Latin1 byte
|
||||
sequence, or the length of the string if there are none.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<!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="Returns the index of the first unpaired surrogate or, if the input is valid UTF-16 in its entirety, the length of the input."><meta name="keywords" content="rust, rustlang, rust-lang, utf16_valid_up_to"><title>encoding_rs::mem::utf16_valid_up_to - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="utf16_valid_up_to" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">utf16_valid_up_to</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#2047-2049" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn utf16_valid_up_to(buffer: &[u16]) -> usize</pre><div class="docblock"><p>Returns the index of the first unpaired surrogate or, if the input is
|
||||
valid UTF-16 in its entirety, the length of the input.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,8 @@
|
||||
<!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="Returns the index of first byte that starts an invalid byte sequence or a non-Latin1 byte sequence, or the length of the string if there are neither."><meta name="keywords" content="rust, rustlang, rust-lang, utf8_latin1_up_to"><title>encoding_rs::mem::utf8_latin1_up_to - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a></p><div id="sidebar-vars" data-name="utf8_latin1_up_to" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">encoding_rs</a>::<wbr><a href="index.html">mem</a>::<wbr><a class="fn" href="">utf8_latin1_up_to</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#2054-2056" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn utf8_latin1_up_to(buffer: &[u8]) -> usize</pre><div class="docblock"><p>Returns the index of first byte that starts an invalid byte
|
||||
sequence or a non-Latin1 byte sequence, or the length of the
|
||||
string if there are neither.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,106 @@
|
||||
<!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="Functions for converting between different in-RAM representations of text and for quickly checking if the Unicode Bidirectional Algorithm can be avoided."><meta name="keywords" content="rust, rustlang, rust-lang, mem"><title>encoding_rs::mem - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Module mem</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#enums">Enums</a></li><li><a href="#functions">Functions</a></li></ul></div><p class="location"><a href="../index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="mem" data-ty="mod" data-relpath="../"></div><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">encoding_rs</a>::<wbr><a class="mod" href="">mem</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/encoding_rs/mem.rs.html#10-3347" title="goto source code">[src]</a></span></h1><div class="docblock"><p>Functions for converting between different in-RAM representations of text
|
||||
and for quickly checking if the Unicode Bidirectional Algorithm can be
|
||||
avoided.</p>
|
||||
<p>By using slices for output, the functions here seek to enable by-register
|
||||
(ALU register or SIMD register as available) operations in order to
|
||||
outperform iterator-based conversions available in the Rust standard
|
||||
library.</p>
|
||||
<p><em>Note:</em> “Latin1” in this module refers to the Unicode range from U+0000 to
|
||||
U+00FF, inclusive, and does not refer to the windows-1252 range. This
|
||||
in-memory encoding is sometimes used as a storage optimization of text
|
||||
when UTF-16 indexing and length semantics are exposed.</p>
|
||||
<p>The FFI binding for this module are in the
|
||||
<a href="https://github.com/hsivonen/encoding_c_mem">encoding_c_mem crate</a>.</p>
|
||||
</div><h2 id="enums" class="section-header"><a href="#enums">Enums</a></h2>
|
||||
<table><tr class="module-item"><td><a class="enum" href="enum.Latin1Bidi.html" title="encoding_rs::mem::Latin1Bidi enum">Latin1Bidi</a></td><td class="docblock-short"><p>Classification of text as Latin1 (all code points are below U+0100),
|
||||
left-to-right with some non-Latin1 characters or as containing at least
|
||||
some right-to-left characters.</p>
|
||||
</td></tr></table><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
|
||||
<table><tr class="module-item"><td><a class="fn" href="fn.check_str_for_latin1_and_bidi.html" title="encoding_rs::mem::check_str_for_latin1_and_bidi fn">check_str_for_latin1_and_bidi</a></td><td class="docblock-short"><p>Checks whether a valid UTF-8 buffer contains code points
|
||||
that trigger right-to-left processing or is all-Latin1.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.check_utf8_for_latin1_and_bidi.html" title="encoding_rs::mem::check_utf8_for_latin1_and_bidi fn">check_utf8_for_latin1_and_bidi</a></td><td class="docblock-short"><p>Checks whether a potentially invalid UTF-8 buffer contains code points
|
||||
that trigger right-to-left processing or is all-Latin1.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.check_utf16_for_latin1_and_bidi.html" title="encoding_rs::mem::check_utf16_for_latin1_and_bidi fn">check_utf16_for_latin1_and_bidi</a></td><td class="docblock-short"><p>Checks whether a potentially invalid UTF-16 buffer contains code points
|
||||
that trigger right-to-left processing or is all-Latin1.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.convert_latin1_to_str.html" title="encoding_rs::mem::convert_latin1_to_str fn">convert_latin1_to_str</a></td><td class="docblock-short"><p>Converts bytes whose unsigned value is interpreted as Unicode code point
|
||||
(i.e. U+0000 to U+00FF, inclusive) to UTF-8 such that the validity of the
|
||||
output is signaled using the Rust type system.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.convert_latin1_to_str_partial.html" title="encoding_rs::mem::convert_latin1_to_str_partial fn">convert_latin1_to_str_partial</a></td><td class="docblock-short"><p>Converts bytes whose unsigned value is interpreted as Unicode code point
|
||||
(i.e. U+0000 to U+00FF, inclusive) to UTF-8 such that the validity of the
|
||||
output is signaled using the Rust type system with potentially insufficient
|
||||
output space.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.convert_latin1_to_utf8.html" title="encoding_rs::mem::convert_latin1_to_utf8 fn">convert_latin1_to_utf8</a></td><td class="docblock-short"><p>Converts bytes whose unsigned value is interpreted as Unicode code point
|
||||
(i.e. U+0000 to U+00FF, inclusive) to UTF-8.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.convert_latin1_to_utf8_partial.html" title="encoding_rs::mem::convert_latin1_to_utf8_partial fn">convert_latin1_to_utf8_partial</a></td><td class="docblock-short"><p>Converts bytes whose unsigned value is interpreted as Unicode code point
|
||||
(i.e. U+0000 to U+00FF, inclusive) to UTF-8 with potentially insufficient
|
||||
output space.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.convert_latin1_to_utf16.html" title="encoding_rs::mem::convert_latin1_to_utf16 fn">convert_latin1_to_utf16</a></td><td class="docblock-short"><p>Converts bytes whose unsigned value is interpreted as Unicode code point
|
||||
(i.e. U+0000 to U+00FF, inclusive) to UTF-16.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.convert_str_to_utf16.html" title="encoding_rs::mem::convert_str_to_utf16 fn">convert_str_to_utf16</a></td><td class="docblock-short"><p>Converts valid UTF-8 to valid UTF-16.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.convert_utf8_to_latin1_lossy.html" title="encoding_rs::mem::convert_utf8_to_latin1_lossy fn">convert_utf8_to_latin1_lossy</a></td><td class="docblock-short"><p>If the input is valid UTF-8 representing only Unicode code points from
|
||||
U+0000 to U+00FF, inclusive, converts the input into output that
|
||||
represents the value of each code point as the unsigned byte value of
|
||||
each output byte.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.convert_utf8_to_utf16.html" title="encoding_rs::mem::convert_utf8_to_utf16 fn">convert_utf8_to_utf16</a></td><td class="docblock-short"><p>Converts potentially-invalid UTF-8 to valid UTF-16 with errors replaced
|
||||
with the REPLACEMENT CHARACTER.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.convert_utf8_to_utf16_without_replacement.html" title="encoding_rs::mem::convert_utf8_to_utf16_without_replacement fn">convert_utf8_to_utf16_without_replacement</a></td><td class="docblock-short"><p>Converts potentially-invalid UTF-8 to valid UTF-16 signaling on error.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.convert_utf16_to_latin1_lossy.html" title="encoding_rs::mem::convert_utf16_to_latin1_lossy fn">convert_utf16_to_latin1_lossy</a></td><td class="docblock-short"><p>If the input is valid UTF-16 representing only Unicode code points from
|
||||
U+0000 to U+00FF, inclusive, converts the input into output that
|
||||
represents the value of each code point as the unsigned byte value of
|
||||
each output byte.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.convert_utf16_to_str.html" title="encoding_rs::mem::convert_utf16_to_str fn">convert_utf16_to_str</a></td><td class="docblock-short"><p>Converts potentially-invalid UTF-16 to valid UTF-8 with errors replaced
|
||||
with the REPLACEMENT CHARACTER such that the validity of the output is
|
||||
signaled using the Rust type system.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.convert_utf16_to_str_partial.html" title="encoding_rs::mem::convert_utf16_to_str_partial fn">convert_utf16_to_str_partial</a></td><td class="docblock-short"><p>Converts potentially-invalid UTF-16 to valid UTF-8 with errors replaced
|
||||
with the REPLACEMENT CHARACTER such that the validity of the output is
|
||||
signaled using the Rust type system with potentially insufficient output
|
||||
space.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.convert_utf16_to_utf8.html" title="encoding_rs::mem::convert_utf16_to_utf8 fn">convert_utf16_to_utf8</a></td><td class="docblock-short"><p>Converts potentially-invalid UTF-16 to valid UTF-8 with errors replaced
|
||||
with the REPLACEMENT CHARACTER.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.convert_utf16_to_utf8_partial.html" title="encoding_rs::mem::convert_utf16_to_utf8_partial fn">convert_utf16_to_utf8_partial</a></td><td class="docblock-short"><p>Converts potentially-invalid UTF-16 to valid UTF-8 with errors replaced
|
||||
with the REPLACEMENT CHARACTER with potentially insufficient output
|
||||
space.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.copy_ascii_to_ascii.html" title="encoding_rs::mem::copy_ascii_to_ascii fn">copy_ascii_to_ascii</a></td><td class="docblock-short"><p>Copies ASCII from source to destination up to the first non-ASCII byte
|
||||
(or the end of the input if it is ASCII in its entirety).</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.copy_ascii_to_basic_latin.html" title="encoding_rs::mem::copy_ascii_to_basic_latin fn">copy_ascii_to_basic_latin</a></td><td class="docblock-short"><p>Copies ASCII from source to destination zero-extending it to UTF-16 up to
|
||||
the first non-ASCII byte (or the end of the input if it is ASCII in its
|
||||
entirety).</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.copy_basic_latin_to_ascii.html" title="encoding_rs::mem::copy_basic_latin_to_ascii fn">copy_basic_latin_to_ascii</a></td><td class="docblock-short"><p>Copies Basic Latin from source to destination narrowing it to ASCII up to
|
||||
the first non-Basic Latin code unit (or the end of the input if it is
|
||||
Basic Latin in its entirety).</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.decode_latin1.html" title="encoding_rs::mem::decode_latin1 fn">decode_latin1</a></td><td class="docblock-short"><p>Converts bytes whose unsigned value is interpreted as Unicode code point
|
||||
(i.e. U+0000 to U+00FF, inclusive) to UTF-8.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.encode_latin1_lossy.html" title="encoding_rs::mem::encode_latin1_lossy fn">encode_latin1_lossy</a></td><td class="docblock-short"><p>If the input is valid UTF-8 representing only Unicode code points from
|
||||
U+0000 to U+00FF, inclusive, converts the input into output that
|
||||
represents the value of each code point as the unsigned byte value of
|
||||
each output byte.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.ensure_utf16_validity.html" title="encoding_rs::mem::ensure_utf16_validity fn">ensure_utf16_validity</a></td><td class="docblock-short"><p>Replaces unpaired surrogates in the input with the REPLACEMENT CHARACTER.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.is_ascii.html" title="encoding_rs::mem::is_ascii fn">is_ascii</a></td><td class="docblock-short"><p>Checks whether the buffer is all-ASCII.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.is_basic_latin.html" title="encoding_rs::mem::is_basic_latin fn">is_basic_latin</a></td><td class="docblock-short"><p>Checks whether the buffer is all-Basic Latin (i.e. UTF-16 representing
|
||||
only ASCII characters).</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.is_char_bidi.html" title="encoding_rs::mem::is_char_bidi fn">is_char_bidi</a></td><td class="docblock-short"><p>Checks whether a scalar value triggers right-to-left processing.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.is_str_bidi.html" title="encoding_rs::mem::is_str_bidi fn">is_str_bidi</a></td><td class="docblock-short"><p>Checks whether a valid UTF-8 buffer contains code points that trigger
|
||||
right-to-left processing.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.is_str_latin1.html" title="encoding_rs::mem::is_str_latin1 fn">is_str_latin1</a></td><td class="docblock-short"><p>Checks whether the buffer represents only code points less than or equal
|
||||
to U+00FF.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.is_utf8_bidi.html" title="encoding_rs::mem::is_utf8_bidi fn">is_utf8_bidi</a></td><td class="docblock-short"><p>Checks whether a potentially-invalid UTF-8 buffer contains code points
|
||||
that trigger right-to-left processing.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.is_utf8_latin1.html" title="encoding_rs::mem::is_utf8_latin1 fn">is_utf8_latin1</a></td><td class="docblock-short"><p>Checks whether the buffer is valid UTF-8 representing only code points
|
||||
less than or equal to U+00FF.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.is_utf16_bidi.html" title="encoding_rs::mem::is_utf16_bidi fn">is_utf16_bidi</a></td><td class="docblock-short"><p>Checks whether a UTF-16 buffer contains code points that trigger
|
||||
right-to-left processing.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.is_utf16_code_unit_bidi.html" title="encoding_rs::mem::is_utf16_code_unit_bidi fn">is_utf16_code_unit_bidi</a></td><td class="docblock-short"><p>Checks whether a UTF-16 code unit triggers right-to-left processing.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.is_utf16_latin1.html" title="encoding_rs::mem::is_utf16_latin1 fn">is_utf16_latin1</a></td><td class="docblock-short"><p>Checks whether the buffer represents only code point less than or equal
|
||||
to U+00FF.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.str_latin1_up_to.html" title="encoding_rs::mem::str_latin1_up_to fn">str_latin1_up_to</a></td><td class="docblock-short"><p>Returns the index of first byte that starts a non-Latin1 byte
|
||||
sequence, or the length of the string if there are none.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.utf8_latin1_up_to.html" title="encoding_rs::mem::utf8_latin1_up_to fn">utf8_latin1_up_to</a></td><td class="docblock-short"><p>Returns the index of first byte that starts an invalid byte
|
||||
sequence or a non-Latin1 byte sequence, or the length of the
|
||||
string if there are neither.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.utf16_valid_up_to.html" title="encoding_rs::mem::utf16_valid_up_to fn">utf16_valid_up_to</a></td><td class="docblock-short"><p>Returns the index of the first unpaired surrogate or, if the input is
|
||||
valid UTF-16 in its entirety, the length of the input.</p>
|
||||
</td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,23 @@
|
||||
<!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="The Big5 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, BIG5"><title>encoding_rs::BIG5 - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="BIG5" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">BIG5</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#817" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static BIG5: &'static <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The Big5 encoding.</p>
|
||||
<p>This is Big5 with HKSCS with mappings to more recent Unicode assignments
|
||||
instead of the Private Use Area code points that have been used historically.
|
||||
It is believed to be able to decode existing Web content in a way that makes
|
||||
sense.</p>
|
||||
<p>To avoid form submissions generating data that Web servers don’t understand,
|
||||
the encoder doesn’t use the HKSCS byte sequences that precede the unextended
|
||||
Big5 in the lexical order.</p>
|
||||
<p><a href="https://encoding.spec.whatwg.org/big5.html">Index visualization</a>,
|
||||
<a href="https://encoding.spec.whatwg.org/big5-bmp.html">Visualization of BMP coverage</a></p>
|
||||
<p>This encoding is designed to be suited for decoding the Windows code page 950
|
||||
and its HKSCS patched “951” variant such that the text makes sense, given
|
||||
assignments that Unicode has made after those encodings used Private Use
|
||||
Area characters.</p>
|
||||
<p>This will change from <code>static</code> to <code>const</code> if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate, so don’t take the address of this
|
||||
<code>static</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The initializer for the Big5 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, BIG5_INIT"><title>encoding_rs::BIG5_INIT - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="BIG5_INIT" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">BIG5_INIT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#789-792" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static BIG5_INIT: <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The initializer for the <a href="static.BIG5.html">Big5</a> encoding.</p>
|
||||
<p>For use only for taking the address of this form when
|
||||
Rust prohibits the use of the non-<code>_INIT</code> form directly,
|
||||
such as in initializers of other <code>static</code>s. If in doubt,
|
||||
use the corresponding non-<code>_INIT</code> reference-typed <code>static</code>.</p>
|
||||
<p>This part of the public API will go away if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate or if Rust starts allowing static arrays
|
||||
to be initialized with <code>pub static FOO: &'static Encoding</code>
|
||||
items.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -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="The EUC-JP encoding."><meta name="keywords" content="rust, rustlang, rust-lang, EUC_JP"><title>encoding_rs::EUC_JP - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="EUC_JP" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">EUC_JP</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#855" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static EUC_JP: &'static <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The EUC-JP encoding.</p>
|
||||
<p>This is the legacy Unix encoding for Japanese.</p>
|
||||
<p>For compatibility with Web servers that don’t expect three-byte sequences
|
||||
in form submissions, the encoder doesn’t generate three-byte sequences.
|
||||
That is, the JIS X 0212 support is decode-only.</p>
|
||||
<p><a href="https://encoding.spec.whatwg.org/euc-jp.html">Index visualization</a>,
|
||||
<a href="https://encoding.spec.whatwg.org/euc-jp-bmp.html">Visualization of BMP coverage</a></p>
|
||||
<p>This encoding roughly matches the Windows code page 20932. There are error
|
||||
handling differences and a handful of 2-byte sequences that decode differently.
|
||||
Additionall, Windows doesn’t support 3-byte sequences.</p>
|
||||
<p>This will change from <code>static</code> to <code>const</code> if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate, so don’t take the address of this
|
||||
<code>static</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The initializer for the EUC-JP encoding."><meta name="keywords" content="rust, rustlang, rust-lang, EUC_JP_INIT"><title>encoding_rs::EUC_JP_INIT - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="EUC_JP_INIT" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">EUC_JP_INIT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#831-834" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static EUC_JP_INIT: <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The initializer for the <a href="static.EUC_JP.html">EUC-JP</a> encoding.</p>
|
||||
<p>For use only for taking the address of this form when
|
||||
Rust prohibits the use of the non-<code>_INIT</code> form directly,
|
||||
such as in initializers of other <code>static</code>s. If in doubt,
|
||||
use the corresponding non-<code>_INIT</code> reference-typed <code>static</code>.</p>
|
||||
<p>This part of the public API will go away if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate or if Rust starts allowing static arrays
|
||||
to be initialized with <code>pub static FOO: &'static Encoding</code>
|
||||
items.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -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="The EUC-KR encoding."><meta name="keywords" content="rust, rustlang, rust-lang, EUC_KR"><title>encoding_rs::EUC_KR - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="EUC_KR" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">EUC_KR</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#891" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static EUC_KR: &'static <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The EUC-KR encoding.</p>
|
||||
<p>This is the Korean encoding for Windows. It extends the Unix legacy encoding
|
||||
for Korean, based on KS X 1001 (which also formed the base of MacKorean on Mac OS
|
||||
Classic), with all the characters from the Hangul Syllables block of Unicode.</p>
|
||||
<p><a href="https://encoding.spec.whatwg.org/euc-kr.html">Index visualization</a>,
|
||||
<a href="https://encoding.spec.whatwg.org/euc-kr-bmp.html">Visualization of BMP coverage</a></p>
|
||||
<p>This encoding matches the Windows code page 949, except Windows decodes byte 0x80
|
||||
to U+0080 and some byte sequences that are error per the Encoding Standard to
|
||||
the question mark or the Private Use Area.</p>
|
||||
<p>This will change from <code>static</code> to <code>const</code> if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate, so don’t take the address of this
|
||||
<code>static</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The initializer for the EUC-KR encoding."><meta name="keywords" content="rust, rustlang, rust-lang, EUC_KR_INIT"><title>encoding_rs::EUC_KR_INIT - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="EUC_KR_INIT" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">EUC_KR_INIT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#869-872" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static EUC_KR_INIT: <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The initializer for the <a href="static.EUC_KR.html">EUC-KR</a> encoding.</p>
|
||||
<p>For use only for taking the address of this form when
|
||||
Rust prohibits the use of the non-<code>_INIT</code> form directly,
|
||||
such as in initializers of other <code>static</code>s. If in doubt,
|
||||
use the corresponding non-<code>_INIT</code> reference-typed <code>static</code>.</p>
|
||||
<p>This part of the public API will go away if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate or if Rust starts allowing static arrays
|
||||
to be initialized with <code>pub static FOO: &'static Encoding</code>
|
||||
items.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,17 @@
|
||||
<!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="The gb18030 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, GB18030"><title>encoding_rs::GB18030 - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="GB18030" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">GB18030</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1672" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static GB18030: &'static <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The gb18030 encoding.</p>
|
||||
<p>This encoding matches GB18030-2005 except the two-byte sequence 0xA3 0xA0
|
||||
maps to U+3000 for compatibility with existing Web content. As a result,
|
||||
this encoding can represent all of Unicode except for the private-use
|
||||
character U+E5E5.</p>
|
||||
<p><a href="https://encoding.spec.whatwg.org/gb18030.html">Index visualization for the two-byte sequences</a>,
|
||||
<a href="https://encoding.spec.whatwg.org/gb18030-bmp.html">Visualization of BMP coverage of the two-byte index</a></p>
|
||||
<p>This encoding matches the Windows code page 54936.</p>
|
||||
<p>This will change from <code>static</code> to <code>const</code> if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate, so don’t take the address of this
|
||||
<code>static</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The initializer for the gb18030 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, GB18030_INIT"><title>encoding_rs::GB18030_INIT - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="GB18030_INIT" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">GB18030_INIT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1651-1654" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static GB18030_INIT: <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The initializer for the <a href="static.GB18030.html">gb18030</a> encoding.</p>
|
||||
<p>For use only for taking the address of this form when
|
||||
Rust prohibits the use of the non-<code>_INIT</code> form directly,
|
||||
such as in initializers of other <code>static</code>s. If in doubt,
|
||||
use the corresponding non-<code>_INIT</code> reference-typed <code>static</code>.</p>
|
||||
<p>This part of the public API will go away if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate or if Rust starts allowing static arrays
|
||||
to be initialized with <code>pub static FOO: &'static Encoding</code>
|
||||
items.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,23 @@
|
||||
<!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="The GBK encoding."><meta name="keywords" content="rust, rustlang, rust-lang, GBK"><title>encoding_rs::GBK - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="GBK" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">GBK</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#933" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static GBK: &'static <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The GBK encoding.</p>
|
||||
<p>The decoder for this encoding is the same as the decoder for gb18030.
|
||||
The encoder side of this encoding is GBK with Windows code page 936 euro
|
||||
sign behavior. GBK extends GB2312-80 to cover the CJK Unified Ideographs
|
||||
Unicode block as well as a handful of ideographs from the CJK Unified
|
||||
Ideographs Extension A and CJK Compatibility Ideographs blocks.</p>
|
||||
<p>Unlike e.g. in the case of ISO-8859-1 and windows-1252, GBK encoder wasn’t
|
||||
unified with the gb18030 encoder in the Encoding Standard out of concern
|
||||
that servers that expect GBK form submissions might not be able to handle
|
||||
the four-byte sequences.</p>
|
||||
<p><a href="https://encoding.spec.whatwg.org/gb18030.html">Index visualization for the two-byte sequences</a>,
|
||||
<a href="https://encoding.spec.whatwg.org/gb18030-bmp.html">Visualization of BMP coverage of the two-byte index</a></p>
|
||||
<p>The encoder of this encoding roughly matches the Windows code page 936.
|
||||
The decoder side is a superset.</p>
|
||||
<p>This will change from <code>static</code> to <code>const</code> if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate, so don’t take the address of this
|
||||
<code>static</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The initializer for the GBK encoding."><meta name="keywords" content="rust, rustlang, rust-lang, GBK_INIT"><title>encoding_rs::GBK_INIT - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="GBK_INIT" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">GBK_INIT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#905-908" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static GBK_INIT: <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The initializer for the <a href="static.GBK.html">GBK</a> encoding.</p>
|
||||
<p>For use only for taking the address of this form when
|
||||
Rust prohibits the use of the non-<code>_INIT</code> form directly,
|
||||
such as in initializers of other <code>static</code>s. If in doubt,
|
||||
use the corresponding non-<code>_INIT</code> reference-typed <code>static</code>.</p>
|
||||
<p>This part of the public API will go away if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate or if Rust starts allowing static arrays
|
||||
to be initialized with <code>pub static FOO: &'static Encoding</code>
|
||||
items.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,16 @@
|
||||
<!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="The IBM866 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, IBM866"><title>encoding_rs::IBM866 - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="IBM866" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">IBM866</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#967" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static IBM866: &'static <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The IBM866 encoding.</p>
|
||||
<p>This the most notable one of the DOS Cyrillic code pages. It has the same
|
||||
box drawing characters as code page 437, so it can be used for decoding
|
||||
DOS-era ASCII + box drawing data.</p>
|
||||
<p><a href="https://encoding.spec.whatwg.org/ibm866.html">Index visualization</a>,
|
||||
<a href="https://encoding.spec.whatwg.org/ibm866-bmp.html">Visualization of BMP coverage</a></p>
|
||||
<p>This encoding matches the Windows code page 866.</p>
|
||||
<p>This will change from <code>static</code> to <code>const</code> if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate, so don’t take the address of this
|
||||
<code>static</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The initializer for the IBM866 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, IBM866_INIT"><title>encoding_rs::IBM866_INIT - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="IBM866_INIT" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">IBM866_INIT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#947-950" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static IBM866_INIT: <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The initializer for the <a href="static.IBM866.html">IBM866</a> encoding.</p>
|
||||
<p>For use only for taking the address of this form when
|
||||
Rust prohibits the use of the non-<code>_INIT</code> form directly,
|
||||
such as in initializers of other <code>static</code>s. If in doubt,
|
||||
use the corresponding non-<code>_INIT</code> reference-typed <code>static</code>.</p>
|
||||
<p>This part of the public API will go away if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate or if Rust starts allowing static arrays
|
||||
to be initialized with <code>pub static FOO: &'static Encoding</code>
|
||||
items.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -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="The ISO-2022-JP encoding."><meta name="keywords" content="rust, rustlang, rust-lang, ISO_2022_JP"><title>encoding_rs::ISO_2022_JP - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="ISO_2022_JP" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">ISO_2022_JP</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1003" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static ISO_2022_JP: &'static <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The ISO-2022-JP encoding.</p>
|
||||
<p>This the primary pre-UTF-8 encoding for Japanese email. It uses the ASCII
|
||||
byte range to encode non-Basic Latin characters. It’s the only encoding
|
||||
supported by this crate whose encoder is stateful.</p>
|
||||
<p><a href="https://encoding.spec.whatwg.org/jis0208.html">Index visualization</a>,
|
||||
<a href="https://encoding.spec.whatwg.org/jis0208-bmp.html">Visualization of BMP coverage</a></p>
|
||||
<p>This encoding roughly matches the Windows code page 50220. Notably, Windows
|
||||
uses U+30FB in place of the REPLACEMENT CHARACTER and otherwise differs in
|
||||
error handling.</p>
|
||||
<p>This will change from <code>static</code> to <code>const</code> if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate, so don’t take the address of this
|
||||
<code>static</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The initializer for the ISO-2022-JP encoding."><meta name="keywords" content="rust, rustlang, rust-lang, ISO_2022_JP_INIT"><title>encoding_rs::ISO_2022_JP_INIT - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="ISO_2022_JP_INIT" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">ISO_2022_JP_INIT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#981-984" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static ISO_2022_JP_INIT: <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The initializer for the <a href="static.ISO_2022_JP.html">ISO-2022-JP</a> encoding.</p>
|
||||
<p>For use only for taking the address of this form when
|
||||
Rust prohibits the use of the non-<code>_INIT</code> form directly,
|
||||
such as in initializers of other <code>static</code>s. If in doubt,
|
||||
use the corresponding non-<code>_INIT</code> reference-typed <code>static</code>.</p>
|
||||
<p>This part of the public API will go away if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate or if Rust starts allowing static arrays
|
||||
to be initialized with <code>pub static FOO: &'static Encoding</code>
|
||||
items.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,16 @@
|
||||
<!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="The ISO-8859-10 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, ISO_8859_10"><title>encoding_rs::ISO_8859_10 - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="ISO_8859_10" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">ISO_8859_10</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1037" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static ISO_8859_10: &'static <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The ISO-8859-10 encoding.</p>
|
||||
<p>This is the Nordic part of the ISO/IEC 8859 encoding family. This encoding
|
||||
is also known as Latin 6.</p>
|
||||
<p><a href="https://encoding.spec.whatwg.org/iso-8859-10.html">Index visualization</a>,
|
||||
<a href="https://encoding.spec.whatwg.org/iso-8859-10-bmp.html">Visualization of BMP coverage</a></p>
|
||||
<p>The Windows code page number for this encoding is 28600, but kernel32.dll
|
||||
does not support this encoding.</p>
|
||||
<p>This will change from <code>static</code> to <code>const</code> if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate, so don’t take the address of this
|
||||
<code>static</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The initializer for the ISO-8859-10 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, ISO_8859_10_INIT"><title>encoding_rs::ISO_8859_10_INIT - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="ISO_8859_10_INIT" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">ISO_8859_10_INIT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1017-1020" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static ISO_8859_10_INIT: <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The initializer for the <a href="static.ISO_8859_10.html">ISO-8859-10</a> encoding.</p>
|
||||
<p>For use only for taking the address of this form when
|
||||
Rust prohibits the use of the non-<code>_INIT</code> form directly,
|
||||
such as in initializers of other <code>static</code>s. If in doubt,
|
||||
use the corresponding non-<code>_INIT</code> reference-typed <code>static</code>.</p>
|
||||
<p>This part of the public API will go away if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate or if Rust starts allowing static arrays
|
||||
to be initialized with <code>pub static FOO: &'static Encoding</code>
|
||||
items.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,16 @@
|
||||
<!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="The ISO-8859-13 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, ISO_8859_13"><title>encoding_rs::ISO_8859_13 - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="ISO_8859_13" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">ISO_8859_13</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1071" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static ISO_8859_13: &'static <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The ISO-8859-13 encoding.</p>
|
||||
<p>This is the Baltic part of the ISO/IEC 8859 encoding family. This encoding
|
||||
is also known as Latin 7.</p>
|
||||
<p><a href="https://encoding.spec.whatwg.org/iso-8859-13.html">Index visualization</a>,
|
||||
<a href="https://encoding.spec.whatwg.org/iso-8859-13-bmp.html">Visualization of BMP coverage</a></p>
|
||||
<p>This encoding matches the Windows code page 28603, except Windows decodes
|
||||
unassigned code points to the Private Use Area of Unicode.</p>
|
||||
<p>This will change from <code>static</code> to <code>const</code> if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate, so don’t take the address of this
|
||||
<code>static</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The initializer for the ISO-8859-13 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, ISO_8859_13_INIT"><title>encoding_rs::ISO_8859_13_INIT - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="ISO_8859_13_INIT" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">ISO_8859_13_INIT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1051-1054" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static ISO_8859_13_INIT: <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The initializer for the <a href="static.ISO_8859_13.html">ISO-8859-13</a> encoding.</p>
|
||||
<p>For use only for taking the address of this form when
|
||||
Rust prohibits the use of the non-<code>_INIT</code> form directly,
|
||||
such as in initializers of other <code>static</code>s. If in doubt,
|
||||
use the corresponding non-<code>_INIT</code> reference-typed <code>static</code>.</p>
|
||||
<p>This part of the public API will go away if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate or if Rust starts allowing static arrays
|
||||
to be initialized with <code>pub static FOO: &'static Encoding</code>
|
||||
items.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,16 @@
|
||||
<!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="The ISO-8859-14 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, ISO_8859_14"><title>encoding_rs::ISO_8859_14 - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="ISO_8859_14" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">ISO_8859_14</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1105" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static ISO_8859_14: &'static <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The ISO-8859-14 encoding.</p>
|
||||
<p>This is the Celtic part of the ISO/IEC 8859 encoding family. This encoding
|
||||
is also known as Latin 8.</p>
|
||||
<p><a href="https://encoding.spec.whatwg.org/iso-8859-14.html">Index visualization</a>,
|
||||
<a href="https://encoding.spec.whatwg.org/iso-8859-14-bmp.html">Visualization of BMP coverage</a></p>
|
||||
<p>The Windows code page number for this encoding is 28604, but kernel32.dll
|
||||
does not support this encoding.</p>
|
||||
<p>This will change from <code>static</code> to <code>const</code> if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate, so don’t take the address of this
|
||||
<code>static</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The initializer for the ISO-8859-14 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, ISO_8859_14_INIT"><title>encoding_rs::ISO_8859_14_INIT - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="ISO_8859_14_INIT" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">ISO_8859_14_INIT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1085-1088" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static ISO_8859_14_INIT: <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The initializer for the <a href="static.ISO_8859_14.html">ISO-8859-14</a> encoding.</p>
|
||||
<p>For use only for taking the address of this form when
|
||||
Rust prohibits the use of the non-<code>_INIT</code> form directly,
|
||||
such as in initializers of other <code>static</code>s. If in doubt,
|
||||
use the corresponding non-<code>_INIT</code> reference-typed <code>static</code>.</p>
|
||||
<p>This part of the public API will go away if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate or if Rust starts allowing static arrays
|
||||
to be initialized with <code>pub static FOO: &'static Encoding</code>
|
||||
items.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The ISO-8859-15 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, ISO_8859_15"><title>encoding_rs::ISO_8859_15 - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="ISO_8859_15" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">ISO_8859_15</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1138" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static ISO_8859_15: &'static <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The ISO-8859-15 encoding.</p>
|
||||
<p>This is the revised Western European part of the ISO/IEC 8859 encoding
|
||||
family. This encoding is also known as Latin 9.</p>
|
||||
<p><a href="https://encoding.spec.whatwg.org/iso-8859-15.html">Index visualization</a>,
|
||||
<a href="https://encoding.spec.whatwg.org/iso-8859-15-bmp.html">Visualization of BMP coverage</a></p>
|
||||
<p>This encoding matches the Windows code page 28605.</p>
|
||||
<p>This will change from <code>static</code> to <code>const</code> if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate, so don’t take the address of this
|
||||
<code>static</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The initializer for the ISO-8859-15 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, ISO_8859_15_INIT"><title>encoding_rs::ISO_8859_15_INIT - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="ISO_8859_15_INIT" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">ISO_8859_15_INIT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1119-1122" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static ISO_8859_15_INIT: <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The initializer for the <a href="static.ISO_8859_15.html">ISO-8859-15</a> encoding.</p>
|
||||
<p>For use only for taking the address of this form when
|
||||
Rust prohibits the use of the non-<code>_INIT</code> form directly,
|
||||
such as in initializers of other <code>static</code>s. If in doubt,
|
||||
use the corresponding non-<code>_INIT</code> reference-typed <code>static</code>.</p>
|
||||
<p>This part of the public API will go away if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate or if Rust starts allowing static arrays
|
||||
to be initialized with <code>pub static FOO: &'static Encoding</code>
|
||||
items.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,16 @@
|
||||
<!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="The ISO-8859-16 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, ISO_8859_16"><title>encoding_rs::ISO_8859_16 - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="ISO_8859_16" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">ISO_8859_16</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1172" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static ISO_8859_16: &'static <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The ISO-8859-16 encoding.</p>
|
||||
<p>This is the South-Eastern European part of the ISO/IEC 8859 encoding
|
||||
family. This encoding is also known as Latin 10.</p>
|
||||
<p><a href="https://encoding.spec.whatwg.org/iso-8859-16.html">Index visualization</a>,
|
||||
<a href="https://encoding.spec.whatwg.org/iso-8859-16-bmp.html">Visualization of BMP coverage</a></p>
|
||||
<p>The Windows code page number for this encoding is 28606, but kernel32.dll
|
||||
does not support this encoding.</p>
|
||||
<p>This will change from <code>static</code> to <code>const</code> if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate, so don’t take the address of this
|
||||
<code>static</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The initializer for the ISO-8859-16 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, ISO_8859_16_INIT"><title>encoding_rs::ISO_8859_16_INIT - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="ISO_8859_16_INIT" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">ISO_8859_16_INIT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1152-1155" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static ISO_8859_16_INIT: <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The initializer for the <a href="static.ISO_8859_16.html">ISO-8859-16</a> encoding.</p>
|
||||
<p>For use only for taking the address of this form when
|
||||
Rust prohibits the use of the non-<code>_INIT</code> form directly,
|
||||
such as in initializers of other <code>static</code>s. If in doubt,
|
||||
use the corresponding non-<code>_INIT</code> reference-typed <code>static</code>.</p>
|
||||
<p>This part of the public API will go away if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate or if Rust starts allowing static arrays
|
||||
to be initialized with <code>pub static FOO: &'static Encoding</code>
|
||||
items.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -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="The ISO-8859-2 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, ISO_8859_2"><title>encoding_rs::ISO_8859_2 - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="ISO_8859_2" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">ISO_8859_2</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1204" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static ISO_8859_2: &'static <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The ISO-8859-2 encoding.</p>
|
||||
<p>This is the Central European part of the ISO/IEC 8859 encoding family. This encoding is also known as Latin 2.</p>
|
||||
<p><a href="https://encoding.spec.whatwg.org/iso-8859-2.html">Index visualization</a>,
|
||||
<a href="https://encoding.spec.whatwg.org/iso-8859-2-bmp.html">Visualization of BMP coverage</a></p>
|
||||
<p>This encoding matches the Windows code page 28592.</p>
|
||||
<p>This will change from <code>static</code> to <code>const</code> if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate, so don’t take the address of this
|
||||
<code>static</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The initializer for the ISO-8859-2 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, ISO_8859_2_INIT"><title>encoding_rs::ISO_8859_2_INIT - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="ISO_8859_2_INIT" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">ISO_8859_2_INIT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1186-1189" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static ISO_8859_2_INIT: <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The initializer for the <a href="static.ISO_8859_2.html">ISO-8859-2</a> encoding.</p>
|
||||
<p>For use only for taking the address of this form when
|
||||
Rust prohibits the use of the non-<code>_INIT</code> form directly,
|
||||
such as in initializers of other <code>static</code>s. If in doubt,
|
||||
use the corresponding non-<code>_INIT</code> reference-typed <code>static</code>.</p>
|
||||
<p>This part of the public API will go away if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate or if Rust starts allowing static arrays
|
||||
to be initialized with <code>pub static FOO: &'static Encoding</code>
|
||||
items.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -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="The ISO-8859-3 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, ISO_8859_3"><title>encoding_rs::ISO_8859_3 - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="ISO_8859_3" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">ISO_8859_3</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1236" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static ISO_8859_3: &'static <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The ISO-8859-3 encoding.</p>
|
||||
<p>This is the South European part of the ISO/IEC 8859 encoding family. This encoding is also known as Latin 3.</p>
|
||||
<p><a href="https://encoding.spec.whatwg.org/iso-8859-3.html">Index visualization</a>,
|
||||
<a href="https://encoding.spec.whatwg.org/iso-8859-3-bmp.html">Visualization of BMP coverage</a></p>
|
||||
<p>This encoding matches the Windows code page 28593.</p>
|
||||
<p>This will change from <code>static</code> to <code>const</code> if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate, so don’t take the address of this
|
||||
<code>static</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The initializer for the ISO-8859-3 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, ISO_8859_3_INIT"><title>encoding_rs::ISO_8859_3_INIT - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="ISO_8859_3_INIT" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">ISO_8859_3_INIT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1218-1221" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static ISO_8859_3_INIT: <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The initializer for the <a href="static.ISO_8859_3.html">ISO-8859-3</a> encoding.</p>
|
||||
<p>For use only for taking the address of this form when
|
||||
Rust prohibits the use of the non-<code>_INIT</code> form directly,
|
||||
such as in initializers of other <code>static</code>s. If in doubt,
|
||||
use the corresponding non-<code>_INIT</code> reference-typed <code>static</code>.</p>
|
||||
<p>This part of the public API will go away if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate or if Rust starts allowing static arrays
|
||||
to be initialized with <code>pub static FOO: &'static Encoding</code>
|
||||
items.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -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="The ISO-8859-4 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, ISO_8859_4"><title>encoding_rs::ISO_8859_4 - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="ISO_8859_4" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">ISO_8859_4</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1268" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static ISO_8859_4: &'static <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The ISO-8859-4 encoding.</p>
|
||||
<p>This is the North European part of the ISO/IEC 8859 encoding family. This encoding is also known as Latin 4.</p>
|
||||
<p><a href="https://encoding.spec.whatwg.org/iso-8859-4.html">Index visualization</a>,
|
||||
<a href="https://encoding.spec.whatwg.org/iso-8859-4-bmp.html">Visualization of BMP coverage</a></p>
|
||||
<p>This encoding matches the Windows code page 28594.</p>
|
||||
<p>This will change from <code>static</code> to <code>const</code> if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate, so don’t take the address of this
|
||||
<code>static</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The initializer for the ISO-8859-4 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, ISO_8859_4_INIT"><title>encoding_rs::ISO_8859_4_INIT - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="ISO_8859_4_INIT" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">ISO_8859_4_INIT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1250-1253" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static ISO_8859_4_INIT: <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The initializer for the <a href="static.ISO_8859_4.html">ISO-8859-4</a> encoding.</p>
|
||||
<p>For use only for taking the address of this form when
|
||||
Rust prohibits the use of the non-<code>_INIT</code> form directly,
|
||||
such as in initializers of other <code>static</code>s. If in doubt,
|
||||
use the corresponding non-<code>_INIT</code> reference-typed <code>static</code>.</p>
|
||||
<p>This part of the public API will go away if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate or if Rust starts allowing static arrays
|
||||
to be initialized with <code>pub static FOO: &'static Encoding</code>
|
||||
items.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -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="The ISO-8859-5 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, ISO_8859_5"><title>encoding_rs::ISO_8859_5 - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="ISO_8859_5" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">ISO_8859_5</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1300" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static ISO_8859_5: &'static <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The ISO-8859-5 encoding.</p>
|
||||
<p>This is the Cyrillic part of the ISO/IEC 8859 encoding family.</p>
|
||||
<p><a href="https://encoding.spec.whatwg.org/iso-8859-5.html">Index visualization</a>,
|
||||
<a href="https://encoding.spec.whatwg.org/iso-8859-5-bmp.html">Visualization of BMP coverage</a></p>
|
||||
<p>This encoding matches the Windows code page 28595.</p>
|
||||
<p>This will change from <code>static</code> to <code>const</code> if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate, so don’t take the address of this
|
||||
<code>static</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The initializer for the ISO-8859-5 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, ISO_8859_5_INIT"><title>encoding_rs::ISO_8859_5_INIT - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="ISO_8859_5_INIT" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">ISO_8859_5_INIT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1282-1285" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static ISO_8859_5_INIT: <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The initializer for the <a href="static.ISO_8859_5.html">ISO-8859-5</a> encoding.</p>
|
||||
<p>For use only for taking the address of this form when
|
||||
Rust prohibits the use of the non-<code>_INIT</code> form directly,
|
||||
such as in initializers of other <code>static</code>s. If in doubt,
|
||||
use the corresponding non-<code>_INIT</code> reference-typed <code>static</code>.</p>
|
||||
<p>This part of the public API will go away if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate or if Rust starts allowing static arrays
|
||||
to be initialized with <code>pub static FOO: &'static Encoding</code>
|
||||
items.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The ISO-8859-6 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, ISO_8859_6"><title>encoding_rs::ISO_8859_6 - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="ISO_8859_6" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">ISO_8859_6</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1333" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static ISO_8859_6: &'static <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The ISO-8859-6 encoding.</p>
|
||||
<p>This is the Arabic part of the ISO/IEC 8859 encoding family.</p>
|
||||
<p><a href="https://encoding.spec.whatwg.org/iso-8859-6.html">Index visualization</a>,
|
||||
<a href="https://encoding.spec.whatwg.org/iso-8859-6-bmp.html">Visualization of BMP coverage</a></p>
|
||||
<p>This encoding matches the Windows code page 28596, except Windows decodes
|
||||
unassigned code points to the Private Use Area of Unicode.</p>
|
||||
<p>This will change from <code>static</code> to <code>const</code> if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate, so don’t take the address of this
|
||||
<code>static</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The initializer for the ISO-8859-6 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, ISO_8859_6_INIT"><title>encoding_rs::ISO_8859_6_INIT - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="ISO_8859_6_INIT" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">ISO_8859_6_INIT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1314-1317" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static ISO_8859_6_INIT: <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The initializer for the <a href="static.ISO_8859_6.html">ISO-8859-6</a> encoding.</p>
|
||||
<p>For use only for taking the address of this form when
|
||||
Rust prohibits the use of the non-<code>_INIT</code> form directly,
|
||||
such as in initializers of other <code>static</code>s. If in doubt,
|
||||
use the corresponding non-<code>_INIT</code> reference-typed <code>static</code>.</p>
|
||||
<p>This part of the public API will go away if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate or if Rust starts allowing static arrays
|
||||
to be initialized with <code>pub static FOO: &'static Encoding</code>
|
||||
items.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -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="The ISO-8859-7 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, ISO_8859_7"><title>encoding_rs::ISO_8859_7 - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="ISO_8859_7" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">ISO_8859_7</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1370" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static ISO_8859_7: &'static <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The ISO-8859-7 encoding.</p>
|
||||
<p>This is the Greek part of the ISO/IEC 8859 encoding family.</p>
|
||||
<p><a href="https://encoding.spec.whatwg.org/iso-8859-7.html">Index visualization</a>,
|
||||
<a href="https://encoding.spec.whatwg.org/iso-8859-7-bmp.html">Visualization of BMP coverage</a></p>
|
||||
<p>This encoding roughly matches the Windows code page 28597. Windows decodes
|
||||
unassigned code points, the currency signs at 0xA4 and 0xA5 as well as
|
||||
0xAA, which should be U+037A GREEK YPOGEGRAMMENI, to the Private Use Area
|
||||
of Unicode. Windows decodes 0xA1 to U+02BD MODIFIER LETTER REVERSED COMMA
|
||||
instead of U+2018 LEFT SINGLE QUOTATION MARK and 0xA2 to U+02BC MODIFIER
|
||||
LETTER APOSTROPHE instead of U+2019 RIGHT SINGLE QUOTATION MARK.</p>
|
||||
<p>This will change from <code>static</code> to <code>const</code> if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate, so don’t take the address of this
|
||||
<code>static</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The initializer for the ISO-8859-7 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, ISO_8859_7_INIT"><title>encoding_rs::ISO_8859_7_INIT - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="ISO_8859_7_INIT" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">ISO_8859_7_INIT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1347-1350" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static ISO_8859_7_INIT: <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The initializer for the <a href="static.ISO_8859_7.html">ISO-8859-7</a> encoding.</p>
|
||||
<p>For use only for taking the address of this form when
|
||||
Rust prohibits the use of the non-<code>_INIT</code> form directly,
|
||||
such as in initializers of other <code>static</code>s. If in doubt,
|
||||
use the corresponding non-<code>_INIT</code> reference-typed <code>static</code>.</p>
|
||||
<p>This part of the public API will go away if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate or if Rust starts allowing static arrays
|
||||
to be initialized with <code>pub static FOO: &'static Encoding</code>
|
||||
items.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,17 @@
|
||||
<!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="The ISO-8859-8 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, ISO_8859_8"><title>encoding_rs::ISO_8859_8 - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="ISO_8859_8" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">ISO_8859_8</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1405" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static ISO_8859_8: &'static <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The ISO-8859-8 encoding.</p>
|
||||
<p>This is the Hebrew part of the ISO/IEC 8859 encoding family in visual order.</p>
|
||||
<p><a href="https://encoding.spec.whatwg.org/iso-8859-8.html">Index visualization</a>,
|
||||
<a href="https://encoding.spec.whatwg.org/iso-8859-8-bmp.html">Visualization of BMP coverage</a></p>
|
||||
<p>This encoding roughly matches the Windows code page 28598. Windows decodes
|
||||
0xAF to OVERLINE instead of MACRON and 0xFE and 0xFD to the Private Use
|
||||
Area instead of LRM and RLM. Windows decodes unassigned code points to
|
||||
the private use area.</p>
|
||||
<p>This will change from <code>static</code> to <code>const</code> if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate, so don’t take the address of this
|
||||
<code>static</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,17 @@
|
||||
<!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="The ISO-8859-8-I encoding."><meta name="keywords" content="rust, rustlang, rust-lang, ISO_8859_8_I"><title>encoding_rs::ISO_8859_8_I - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="ISO_8859_8_I" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">ISO_8859_8_I</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1440" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static ISO_8859_8_I: &'static <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The ISO-8859-8-I encoding.</p>
|
||||
<p>This is the Hebrew part of the ISO/IEC 8859 encoding family in logical order.</p>
|
||||
<p><a href="https://encoding.spec.whatwg.org/iso-8859-8.html">Index visualization</a>,
|
||||
<a href="https://encoding.spec.whatwg.org/iso-8859-8-bmp.html">Visualization of BMP coverage</a></p>
|
||||
<p>This encoding roughly matches the Windows code page 38598. Windows decodes
|
||||
0xAF to OVERLINE instead of MACRON and 0xFE and 0xFD to the Private Use
|
||||
Area instead of LRM and RLM. Windows decodes unassigned code points to
|
||||
the private use area.</p>
|
||||
<p>This will change from <code>static</code> to <code>const</code> if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate, so don’t take the address of this
|
||||
<code>static</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The initializer for the ISO-8859-8 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, ISO_8859_8_INIT"><title>encoding_rs::ISO_8859_8_INIT - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="ISO_8859_8_INIT" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">ISO_8859_8_INIT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1384-1387" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static ISO_8859_8_INIT: <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The initializer for the <a href="static.ISO_8859_8.html">ISO-8859-8</a> encoding.</p>
|
||||
<p>For use only for taking the address of this form when
|
||||
Rust prohibits the use of the non-<code>_INIT</code> form directly,
|
||||
such as in initializers of other <code>static</code>s. If in doubt,
|
||||
use the corresponding non-<code>_INIT</code> reference-typed <code>static</code>.</p>
|
||||
<p>This part of the public API will go away if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate or if Rust starts allowing static arrays
|
||||
to be initialized with <code>pub static FOO: &'static Encoding</code>
|
||||
items.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The initializer for the ISO-8859-8-I encoding."><meta name="keywords" content="rust, rustlang, rust-lang, ISO_8859_8_I_INIT"><title>encoding_rs::ISO_8859_8_I_INIT - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="ISO_8859_8_I_INIT" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">ISO_8859_8_I_INIT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1419-1422" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static ISO_8859_8_I_INIT: <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The initializer for the <a href="static.ISO_8859_8_I.html">ISO-8859-8-I</a> encoding.</p>
|
||||
<p>For use only for taking the address of this form when
|
||||
Rust prohibits the use of the non-<code>_INIT</code> form directly,
|
||||
such as in initializers of other <code>static</code>s. If in doubt,
|
||||
use the corresponding non-<code>_INIT</code> reference-typed <code>static</code>.</p>
|
||||
<p>This part of the public API will go away if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate or if Rust starts allowing static arrays
|
||||
to be initialized with <code>pub static FOO: &'static Encoding</code>
|
||||
items.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -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="The KOI8-R encoding."><meta name="keywords" content="rust, rustlang, rust-lang, KOI8_R"><title>encoding_rs::KOI8_R - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="KOI8_R" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">KOI8_R</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1472" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static KOI8_R: &'static <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The KOI8-R encoding.</p>
|
||||
<p>This is an encoding for Russian from <a href="https://tools.ietf.org/html/rfc1489">RFC 1489</a>.</p>
|
||||
<p><a href="https://encoding.spec.whatwg.org/koi8-r.html">Index visualization</a>,
|
||||
<a href="https://encoding.spec.whatwg.org/koi8-r-bmp.html">Visualization of BMP coverage</a></p>
|
||||
<p>This encoding matches the Windows code page 20866.</p>
|
||||
<p>This will change from <code>static</code> to <code>const</code> if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate, so don’t take the address of this
|
||||
<code>static</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The initializer for the KOI8-R encoding."><meta name="keywords" content="rust, rustlang, rust-lang, KOI8_R_INIT"><title>encoding_rs::KOI8_R_INIT - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="KOI8_R_INIT" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">KOI8_R_INIT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1454-1457" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static KOI8_R_INIT: <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The initializer for the <a href="static.KOI8_R.html">KOI8-R</a> encoding.</p>
|
||||
<p>For use only for taking the address of this form when
|
||||
Rust prohibits the use of the non-<code>_INIT</code> form directly,
|
||||
such as in initializers of other <code>static</code>s. If in doubt,
|
||||
use the corresponding non-<code>_INIT</code> reference-typed <code>static</code>.</p>
|
||||
<p>This part of the public API will go away if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate or if Rust starts allowing static arrays
|
||||
to be initialized with <code>pub static FOO: &'static Encoding</code>
|
||||
items.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -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="The KOI8-U encoding."><meta name="keywords" content="rust, rustlang, rust-lang, KOI8_U"><title>encoding_rs::KOI8_U - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="KOI8_U" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">KOI8_U</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1504" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static KOI8_U: &'static <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The KOI8-U encoding.</p>
|
||||
<p>This is an encoding for Ukrainian adapted from KOI8-R.</p>
|
||||
<p><a href="https://encoding.spec.whatwg.org/koi8-u.html">Index visualization</a>,
|
||||
<a href="https://encoding.spec.whatwg.org/koi8-u-bmp.html">Visualization of BMP coverage</a></p>
|
||||
<p>This encoding matches the Windows code page 21866.</p>
|
||||
<p>This will change from <code>static</code> to <code>const</code> if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate, so don’t take the address of this
|
||||
<code>static</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The initializer for the KOI8-U encoding."><meta name="keywords" content="rust, rustlang, rust-lang, KOI8_U_INIT"><title>encoding_rs::KOI8_U_INIT - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="KOI8_U_INIT" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">KOI8_U_INIT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1486-1489" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static KOI8_U_INIT: <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The initializer for the <a href="static.KOI8_U.html">KOI8-U</a> encoding.</p>
|
||||
<p>For use only for taking the address of this form when
|
||||
Rust prohibits the use of the non-<code>_INIT</code> form directly,
|
||||
such as in initializers of other <code>static</code>s. If in doubt,
|
||||
use the corresponding non-<code>_INIT</code> reference-typed <code>static</code>.</p>
|
||||
<p>This part of the public API will go away if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate or if Rust starts allowing static arrays
|
||||
to be initialized with <code>pub static FOO: &'static Encoding</code>
|
||||
items.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The macintosh encoding."><meta name="keywords" content="rust, rustlang, rust-lang, MACINTOSH"><title>encoding_rs::MACINTOSH - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="MACINTOSH" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">MACINTOSH</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1705" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static MACINTOSH: &'static <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The macintosh encoding.</p>
|
||||
<p>This is the MacRoman encoding from Mac OS Classic.</p>
|
||||
<p><a href="https://encoding.spec.whatwg.org/macintosh.html">Index visualization</a>,
|
||||
<a href="https://encoding.spec.whatwg.org/macintosh-bmp.html">Visualization of BMP coverage</a></p>
|
||||
<p>This encoding matches the Windows code page 10000, except Windows decodes
|
||||
0xBD to U+2126 OHM SIGN instead of U+03A9 GREEK CAPITAL LETTER OMEGA.</p>
|
||||
<p>This will change from <code>static</code> to <code>const</code> if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate, so don’t take the address of this
|
||||
<code>static</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The initializer for the macintosh encoding."><meta name="keywords" content="rust, rustlang, rust-lang, MACINTOSH_INIT"><title>encoding_rs::MACINTOSH_INIT - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="MACINTOSH_INIT" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">MACINTOSH_INIT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1686-1689" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static MACINTOSH_INIT: <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The initializer for the <a href="static.MACINTOSH.html">macintosh</a> encoding.</p>
|
||||
<p>For use only for taking the address of this form when
|
||||
Rust prohibits the use of the non-<code>_INIT</code> form directly,
|
||||
such as in initializers of other <code>static</code>s. If in doubt,
|
||||
use the corresponding non-<code>_INIT</code> reference-typed <code>static</code>.</p>
|
||||
<p>This part of the public API will go away if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate or if Rust starts allowing static arrays
|
||||
to be initialized with <code>pub static FOO: &'static Encoding</code>
|
||||
items.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -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="The replacement encoding."><meta name="keywords" content="rust, rustlang, rust-lang, REPLACEMENT"><title>encoding_rs::REPLACEMENT - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="REPLACEMENT" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">REPLACEMENT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1741" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static REPLACEMENT: &'static <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The replacement encoding.</p>
|
||||
<p>This decode-only encoding decodes all non-zero-length streams to a single
|
||||
REPLACEMENT CHARACTER. Its purpose is to avoid the use of an
|
||||
ASCII-compatible fallback encoding (typically windows-1252) for some
|
||||
encodings that are no longer supported by the Web Platform and that
|
||||
would be dangerous to treat as ASCII-compatible.</p>
|
||||
<p>There is no corresponding encoder. The output encoding of this encoding
|
||||
is UTF-8.</p>
|
||||
<p>This encoding does not have a Windows code page number.</p>
|
||||
<p>This will change from <code>static</code> to <code>const</code> if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate, so don’t take the address of this
|
||||
<code>static</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The initializer for the replacement encoding."><meta name="keywords" content="rust, rustlang, rust-lang, REPLACEMENT_INIT"><title>encoding_rs::REPLACEMENT_INIT - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="REPLACEMENT_INIT" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">REPLACEMENT_INIT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1719-1722" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static REPLACEMENT_INIT: <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The initializer for the <a href="static.REPLACEMENT.html">replacement</a> encoding.</p>
|
||||
<p>For use only for taking the address of this form when
|
||||
Rust prohibits the use of the non-<code>_INIT</code> form directly,
|
||||
such as in initializers of other <code>static</code>s. If in doubt,
|
||||
use the corresponding non-<code>_INIT</code> reference-typed <code>static</code>.</p>
|
||||
<p>This part of the public API will go away if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate or if Rust starts allowing static arrays
|
||||
to be initialized with <code>pub static FOO: &'static Encoding</code>
|
||||
items.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,16 @@
|
||||
<!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="The Shift_JIS encoding."><meta name="keywords" content="rust, rustlang, rust-lang, SHIFT_JIS"><title>encoding_rs::SHIFT_JIS - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="SHIFT_JIS" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">SHIFT_JIS</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1538" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static SHIFT_JIS: &'static <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The Shift_JIS encoding.</p>
|
||||
<p>This is the Japanese encoding for Windows.</p>
|
||||
<p><a href="https://encoding.spec.whatwg.org/shift_jis.html">Index visualization</a>,
|
||||
<a href="https://encoding.spec.whatwg.org/shift_jis-bmp.html">Visualization of BMP coverage</a></p>
|
||||
<p>This encoding matches the Windows code page 932, except Windows decodes some byte
|
||||
sequences that are error per the Encoding Standard to the question mark or the
|
||||
Private Use Area and generally uses U+30FB in place of the REPLACEMENT CHARACTER.</p>
|
||||
<p>This will change from <code>static</code> to <code>const</code> if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate, so don’t take the address of this
|
||||
<code>static</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The initializer for the Shift_JIS encoding."><meta name="keywords" content="rust, rustlang, rust-lang, SHIFT_JIS_INIT"><title>encoding_rs::SHIFT_JIS_INIT - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="SHIFT_JIS_INIT" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">SHIFT_JIS_INIT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1518-1521" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static SHIFT_JIS_INIT: <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The initializer for the <a href="static.SHIFT_JIS.html">Shift_JIS</a> encoding.</p>
|
||||
<p>For use only for taking the address of this form when
|
||||
Rust prohibits the use of the non-<code>_INIT</code> form directly,
|
||||
such as in initializers of other <code>static</code>s. If in doubt,
|
||||
use the corresponding non-<code>_INIT</code> reference-typed <code>static</code>.</p>
|
||||
<p>This part of the public API will go away if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate or if Rust starts allowing static arrays
|
||||
to be initialized with <code>pub static FOO: &'static Encoding</code>
|
||||
items.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,16 @@
|
||||
<!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="The UTF-16BE encoding."><meta name="keywords" content="rust, rustlang, rust-lang, UTF_16BE"><title>encoding_rs::UTF_16BE - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="UTF_16BE" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">UTF_16BE</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1572" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static UTF_16BE: &'static <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The UTF-16BE encoding.</p>
|
||||
<p>This decode-only encoding uses 16-bit code units due to Unicode originally
|
||||
having been designed as a 16-bit reportoire. In the absence of a byte order
|
||||
mark the big endian byte order is assumed.</p>
|
||||
<p>There is no corresponding encoder in this crate or in the Encoding
|
||||
Standard. The output encoding of this encoding is UTF-8.</p>
|
||||
<p>This encoding matches the Windows code page 1201.</p>
|
||||
<p>This will change from <code>static</code> to <code>const</code> if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate, so don’t take the address of this
|
||||
<code>static</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The initializer for the UTF-16BE encoding."><meta name="keywords" content="rust, rustlang, rust-lang, UTF_16BE_INIT"><title>encoding_rs::UTF_16BE_INIT - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="UTF_16BE_INIT" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">UTF_16BE_INIT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1552-1555" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static UTF_16BE_INIT: <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The initializer for the <a href="static.UTF_16BE.html">UTF-16BE</a> encoding.</p>
|
||||
<p>For use only for taking the address of this form when
|
||||
Rust prohibits the use of the non-<code>_INIT</code> form directly,
|
||||
such as in initializers of other <code>static</code>s. If in doubt,
|
||||
use the corresponding non-<code>_INIT</code> reference-typed <code>static</code>.</p>
|
||||
<p>This part of the public API will go away if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate or if Rust starts allowing static arrays
|
||||
to be initialized with <code>pub static FOO: &'static Encoding</code>
|
||||
items.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,16 @@
|
||||
<!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="The UTF-16LE encoding."><meta name="keywords" content="rust, rustlang, rust-lang, UTF_16LE"><title>encoding_rs::UTF_16LE - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="UTF_16LE" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">UTF_16LE</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1606" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static UTF_16LE: &'static <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The UTF-16LE encoding.</p>
|
||||
<p>This decode-only encoding uses 16-bit code units due to Unicode originally
|
||||
having been designed as a 16-bit reportoire. In the absence of a byte order
|
||||
mark the little endian byte order is assumed.</p>
|
||||
<p>There is no corresponding encoder in this crate or in the Encoding
|
||||
Standard. The output encoding of this encoding is UTF-8.</p>
|
||||
<p>This encoding matches the Windows code page 1200.</p>
|
||||
<p>This will change from <code>static</code> to <code>const</code> if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate, so don’t take the address of this
|
||||
<code>static</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!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="The initializer for the UTF-16LE encoding."><meta name="keywords" content="rust, rustlang, rust-lang, UTF_16LE_INIT"><title>encoding_rs::UTF_16LE_INIT - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="UTF_16LE_INIT" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">UTF_16LE_INIT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1586-1589" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static UTF_16LE_INIT: <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The initializer for the <a href="static.UTF_16LE.html">UTF-16LE</a> encoding.</p>
|
||||
<p>For use only for taking the address of this form when
|
||||
Rust prohibits the use of the non-<code>_INIT</code> form directly,
|
||||
such as in initializers of other <code>static</code>s. If in doubt,
|
||||
use the corresponding non-<code>_INIT</code> reference-typed <code>static</code>.</p>
|
||||
<p>This part of the public API will go away if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate or if Rust starts allowing static arrays
|
||||
to be initialized with <code>pub static FOO: &'static Encoding</code>
|
||||
items.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
@@ -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="The UTF-8 encoding."><meta name="keywords" content="rust, rustlang, rust-lang, UTF_8"><title>encoding_rs::UTF_8 - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../encoding_rs/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">encoding_rs</a></p><div id="sidebar-vars" data-name="UTF_8" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="index.html">encoding_rs</a>::<wbr><a class="static" href="">UTF_8</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/encoding_rs/lib.rs.html#1637" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static UTF_8: &'static <a class="struct" href="../encoding_rs/struct.Encoding.html" title="struct encoding_rs::Encoding">Encoding</a></pre><div class="docblock"><p>The UTF-8 encoding.</p>
|
||||
<p>This is the encoding that should be used for all new development it can
|
||||
represent all of Unicode.</p>
|
||||
<p>This encoding matches the Windows code page 65001, except Windows differs
|
||||
in the number of errors generated for some erroneous byte sequences.</p>
|
||||
<p>This will change from <code>static</code> to <code>const</code> if Rust changes
|
||||
to make the referent of <code>pub const FOO: &'static Encoding</code>
|
||||
unique cross-crate, so don’t take the address of this
|
||||
<code>static</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="encoding_rs"></div>
|
||||
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user