| <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A set of characters represented by arbitrary bytes (where one byte corresponds to one character)."><meta name="keywords" content="rust, rustlang, rust-lang, ClassBytes"><title>ClassBytes in regex_syntax::hir - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../normalize.css"><link rel="stylesheet" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../ayu.css" disabled><link rel="stylesheet" href="../../dark.css" disabled><link rel="stylesheet" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="sidebar-logo" href="../../regex_syntax/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../regex_syntax/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">ClassBytes</a></h2><div class="sidebar-elems"><section><h3><a href="#implementations">Methods</a></h3><ul class="block"><li><a href="#method.case_fold_simple">case_fold_simple</a></li><li><a href="#method.difference">difference</a></li><li><a href="#method.empty">empty</a></li><li><a href="#method.intersect">intersect</a></li><li><a href="#method.is_ascii">is_ascii</a></li><li><a href="#method.iter">iter</a></li><li><a href="#method.literal">literal</a></li><li><a href="#method.maximum_len">maximum_len</a></li><li><a href="#method.minimum_len">minimum_len</a></li><li><a href="#method.negate">negate</a></li><li><a href="#method.new">new</a></li><li><a href="#method.push">push</a></li><li><a href="#method.ranges">ranges</a></li><li><a href="#method.symmetric_difference">symmetric_difference</a></li><li><a href="#method.to_unicode_class">to_unicode_class</a></li><li><a href="#method.union">union</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block"><li><a href="#impl-Clone-for-ClassBytes">Clone</a></li><li><a href="#impl-Debug-for-ClassBytes">Debug</a></li><li><a href="#impl-Eq-for-ClassBytes">Eq</a></li><li><a href="#impl-PartialEq%3CClassBytes%3E-for-ClassBytes">PartialEq<ClassBytes></a></li><li><a href="#impl-StructuralEq-for-ClassBytes">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq-for-ClassBytes">StructuralPartialEq</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block"><li><a href="#impl-RefUnwindSafe-for-ClassBytes">RefUnwindSafe</a></li><li><a href="#impl-Send-for-ClassBytes">Send</a></li><li><a href="#impl-Sync-for-ClassBytes">Sync</a></li><li><a href="#impl-Unpin-for-ClassBytes">Unpin</a></li><li><a href="#impl-UnwindSafe-for-ClassBytes">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block"><li><a href="#impl-Any-for-ClassBytes">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-ClassBytes">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-ClassBytes">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E-for-ClassBytes">From<T></a></li><li><a href="#impl-Into%3CU%3E-for-ClassBytes">Into<U></a></li><li><a href="#impl-ToOwned-for-ClassBytes">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-ClassBytes">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-ClassBytes">TryInto<U></a></li></ul></section><h2><a href="index.html">In regex_syntax::hir</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn">Struct <a href="../index.html">regex_syntax</a>::<wbr><a href="index.html">hir</a>::<wbr><a class="struct" href="#">ClassBytes</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/regex_syntax/hir/mod.rs.html#1310-1312">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="item-decl"><pre class="rust struct"><code>pub struct ClassBytes { /* private fields */ }</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A set of characters represented by arbitrary bytes (where one byte |
| corresponds to one character).</p> |
| </div></details><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ClassBytes" class="impl has-srclink"><a class="srclink rightside" href="../../src/regex_syntax/hir/mod.rs.html#1314-1458">source</a><a href="#impl-ClassBytes" class="anchor"></a><h3 class="code-header">impl <a class="struct" href="struct.ClassBytes.html" title="struct regex_syntax::hir::ClassBytes">ClassBytes</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.new" class="method has-srclink"><a class="srclink rightside" href="../../src/regex_syntax/hir/mod.rs.html#1320-1325">source</a><h4 class="code-header">pub fn <a href="#method.new" class="fnname">new</a><I>(ranges: I) -> <a class="struct" href="struct.ClassBytes.html" title="struct regex_syntax::hir::ClassBytes">ClassBytes</a><span class="where fmt-newline">where<br> I: IntoIterator<Item = <a class="struct" href="struct.ClassBytesRange.html" title="struct regex_syntax::hir::ClassBytesRange">ClassBytesRange</a>>,</span></h4></section></summary><div class="docblock"><p>Create a new class from a sequence of ranges.</p> |
| <p>The given ranges do not need to be in any specific order, and ranges |
| may overlap. Ranges will automatically be sorted into a canonical |
| non-overlapping order.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.empty" class="method has-srclink"><a class="srclink rightside" href="../../src/regex_syntax/hir/mod.rs.html#1331-1333">source</a><h4 class="code-header">pub fn <a href="#method.empty" class="fnname">empty</a>() -> <a class="struct" href="struct.ClassBytes.html" title="struct regex_syntax::hir::ClassBytes">ClassBytes</a></h4></section></summary><div class="docblock"><p>Create a new class with no ranges.</p> |
| <p>An empty class matches nothing. That is, it is equivalent to |
| <a href="struct.Hir.html#method.fail" title="Hir::fail"><code>Hir::fail</code></a>.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.push" class="method has-srclink"><a class="srclink rightside" href="../../src/regex_syntax/hir/mod.rs.html#1336-1338">source</a><h4 class="code-header">pub fn <a href="#method.push" class="fnname">push</a>(&mut self, range: <a class="struct" href="struct.ClassBytesRange.html" title="struct regex_syntax::hir::ClassBytesRange">ClassBytesRange</a>)</h4></section></summary><div class="docblock"><p>Add a new range to this set.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.iter" class="method has-srclink"><a class="srclink rightside" href="../../src/regex_syntax/hir/mod.rs.html#1343-1345">source</a><h4 class="code-header">pub fn <a href="#method.iter" class="fnname">iter</a>(&self) -> <a class="struct" href="struct.ClassBytesIter.html" title="struct regex_syntax::hir::ClassBytesIter">ClassBytesIter</a><'_><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.ClassBytesIter.html" title="struct regex_syntax::hir::ClassBytesIter">ClassBytesIter</a><'a></span><code class="content"><span class="where fmt-newline">impl<'a> Iterator for <a class="struct" href="struct.ClassBytesIter.html" title="struct regex_syntax::hir::ClassBytesIter">ClassBytesIter</a><'a></span><span class="where fmt-newline"> type <a class="associatedtype">Item</a> = &'a <a class="struct" href="struct.ClassBytesRange.html" title="struct regex_syntax::hir::ClassBytesRange">ClassBytesRange</a>;</span></code></span></span></span></span></h4></section></summary><div class="docblock"><p>Return an iterator over all ranges in this class.</p> |
| <p>The iterator yields ranges in ascending order.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ranges" class="method has-srclink"><a class="srclink rightside" href="../../src/regex_syntax/hir/mod.rs.html#1348-1350">source</a><h4 class="code-header">pub fn <a href="#method.ranges" class="fnname">ranges</a>(&self) -> &[<a class="struct" href="struct.ClassBytesRange.html" title="struct regex_syntax::hir::ClassBytesRange">ClassBytesRange</a>]</h4></section></summary><div class="docblock"><p>Return the underlying ranges as a slice.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.case_fold_simple" class="method has-srclink"><a class="srclink rightside" href="../../src/regex_syntax/hir/mod.rs.html#1359-1361">source</a><h4 class="code-header">pub fn <a href="#method.case_fold_simple" class="fnname">case_fold_simple</a>(&mut self)</h4></section></summary><div class="docblock"><p>Expand this character class such that it contains all case folded |
| characters. For example, if this class consists of the range <code>a-z</code>, |
| then applying case folding will result in the class containing both the |
| ranges <code>a-z</code> and <code>A-Z</code>.</p> |
| <p>Note that this only applies ASCII case folding, which is limited to the |
| characters <code>a-z</code> and <code>A-Z</code>.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.negate" class="method has-srclink"><a class="srclink rightside" href="../../src/regex_syntax/hir/mod.rs.html#1367-1369">source</a><h4 class="code-header">pub fn <a href="#method.negate" class="fnname">negate</a>(&mut self)</h4></section></summary><div class="docblock"><p>Negate this byte class.</p> |
| <p>For all <code>b</code> where <code>b</code> is a any byte, if <code>b</code> was in this set, then it |
| will not be in this set after negation.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.union" class="method has-srclink"><a class="srclink rightside" href="../../src/regex_syntax/hir/mod.rs.html#1372-1374">source</a><h4 class="code-header">pub fn <a href="#method.union" class="fnname">union</a>(&mut self, other: &<a class="struct" href="struct.ClassBytes.html" title="struct regex_syntax::hir::ClassBytes">ClassBytes</a>)</h4></section></summary><div class="docblock"><p>Union this byte class with the given byte class, in place.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.intersect" class="method has-srclink"><a class="srclink rightside" href="../../src/regex_syntax/hir/mod.rs.html#1377-1379">source</a><h4 class="code-header">pub fn <a href="#method.intersect" class="fnname">intersect</a>(&mut self, other: &<a class="struct" href="struct.ClassBytes.html" title="struct regex_syntax::hir::ClassBytes">ClassBytes</a>)</h4></section></summary><div class="docblock"><p>Intersect this byte class with the given byte class, in place.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.difference" class="method has-srclink"><a class="srclink rightside" href="../../src/regex_syntax/hir/mod.rs.html#1382-1384">source</a><h4 class="code-header">pub fn <a href="#method.difference" class="fnname">difference</a>(&mut self, other: &<a class="struct" href="struct.ClassBytes.html" title="struct regex_syntax::hir::ClassBytes">ClassBytes</a>)</h4></section></summary><div class="docblock"><p>Subtract the given byte class from this byte class, in place.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.symmetric_difference" class="method has-srclink"><a class="srclink rightside" href="../../src/regex_syntax/hir/mod.rs.html#1393-1395">source</a><h4 class="code-header">pub fn <a href="#method.symmetric_difference" class="fnname">symmetric_difference</a>(&mut self, other: &<a class="struct" href="struct.ClassBytes.html" title="struct regex_syntax::hir::ClassBytes">ClassBytes</a>)</h4></section></summary><div class="docblock"><p>Compute the symmetric difference of the given byte classes, in place.</p> |
| <p>This computes the symmetric difference of two byte classes. This |
| removes all elements in this class that are also in the given class, |
| but all adds all elements from the given class that aren’t in this |
| class. That is, the class will contain all elements in either class, |
| but will not contain any elements that are in both classes.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_ascii" class="method has-srclink"><a class="srclink rightside" href="../../src/regex_syntax/hir/mod.rs.html#1400-1402">source</a><h4 class="code-header">pub fn <a href="#method.is_ascii" class="fnname">is_ascii</a>(&self) -> bool</h4></section></summary><div class="docblock"><p>Returns true if and only if this character class will either match |
| nothing or only ASCII bytes. Stated differently, this returns false |
| if and only if this class contains a non-ASCII byte.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.minimum_len" class="method has-srclink"><a class="srclink rightside" href="../../src/regex_syntax/hir/mod.rs.html#1408-1414">source</a><h4 class="code-header">pub fn <a href="#method.minimum_len" class="fnname">minimum_len</a>(&self) -> Option<usize></h4></section></summary><div class="docblock"><p>Returns the length, in bytes, of the smallest string matched by this |
| character class.</p> |
| <p>Returns <code>None</code> when the class is empty.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.maximum_len" class="method has-srclink"><a class="srclink rightside" href="../../src/regex_syntax/hir/mod.rs.html#1420-1426">source</a><h4 class="code-header">pub fn <a href="#method.maximum_len" class="fnname">maximum_len</a>(&self) -> Option<usize></h4></section></summary><div class="docblock"><p>Returns the length, in bytes, of the longest string matched by this |
| character class.</p> |
| <p>Returns <code>None</code> when the class is empty.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.literal" class="method has-srclink"><a class="srclink rightside" href="../../src/regex_syntax/hir/mod.rs.html#1433-1440">source</a><h4 class="code-header">pub fn <a href="#method.literal" class="fnname">literal</a>(&self) -> Option<Vec<u8>></h4></section></summary><div class="docblock"><p>If this class consists of exactly one byte, then return it as |
| a literal byte string.</p> |
| <p>If this class is empty or contains more than one byte, then <code>None</code> |
| is returned.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_unicode_class" class="method has-srclink"><a class="srclink rightside" href="../../src/regex_syntax/hir/mod.rs.html#1444-1457">source</a><h4 class="code-header">pub fn <a href="#method.to_unicode_class" class="fnname">to_unicode_class</a>(&self) -> Option<<a class="struct" href="struct.ClassUnicode.html" title="struct regex_syntax::hir::ClassUnicode">ClassUnicode</a>></h4></section></summary><div class="docblock"><p>If this class consists of only ASCII ranges, then return its |
| corresponding and equivalent Unicode class.</p> |
| </div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone-for-ClassBytes" class="impl has-srclink"><a class="srclink rightside" href="../../src/regex_syntax/hir/mod.rs.html#1309">source</a><a href="#impl-Clone-for-ClassBytes" class="anchor"></a><h3 class="code-header">impl Clone for <a class="struct" href="struct.ClassBytes.html" title="struct regex_syntax::hir::ClassBytes">ClassBytes</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/regex_syntax/hir/mod.rs.html#1309">source</a><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a class="fnname">clone</a>(&self) -> <a class="struct" href="struct.ClassBytes.html" title="struct regex_syntax::hir::ClassBytes">ClassBytes</a></h4></section></summary><div class='docblock'>Returns a copy of the value. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">clone_from</a>(&mut self, source: &Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug-for-ClassBytes" class="impl has-srclink"><a class="srclink rightside" href="../../src/regex_syntax/hir/mod.rs.html#1309">source</a><a href="#impl-Debug-for-ClassBytes" class="anchor"></a><h3 class="code-header">impl Debug for <a class="struct" href="struct.ClassBytes.html" title="struct regex_syntax::hir::ClassBytes">ClassBytes</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/regex_syntax/hir/mod.rs.html#1309">source</a><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a class="fnname">fmt</a>(&self, f: &mut Formatter<'_>) -> Result</h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CClassBytes%3E-for-ClassBytes" class="impl has-srclink"><a class="srclink rightside" href="../../src/regex_syntax/hir/mod.rs.html#1309">source</a><a href="#impl-PartialEq%3CClassBytes%3E-for-ClassBytes" class="anchor"></a><h3 class="code-header">impl PartialEq<<a class="struct" href="struct.ClassBytes.html" title="struct regex_syntax::hir::ClassBytes">ClassBytes</a>> for <a class="struct" href="struct.ClassBytes.html" title="struct regex_syntax::hir::ClassBytes">ClassBytes</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/regex_syntax/hir/mod.rs.html#1309">source</a><a href="#method.eq" class="anchor"></a><h4 class="code-header">fn <a class="fnname">eq</a>(&self, other: &<a class="struct" href="struct.ClassBytes.html" title="struct regex_syntax::hir::ClassBytes">ClassBytes</a>) -> bool</h4></section></summary><div class='docblock'>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used |
| by <code>==</code>. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl has-srclink"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.ne" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">ne</a>(&self, other: &Rhs) -> bool</h4></section></summary><div class='docblock'>This method tests for <code>!=</code>. The default implementation is almost always |
| sufficient, and should not be overridden without very good reason. <a>Read more</a></div></details></div></details><section id="impl-Eq-for-ClassBytes" class="impl has-srclink"><a class="srclink rightside" href="../../src/regex_syntax/hir/mod.rs.html#1309">source</a><a href="#impl-Eq-for-ClassBytes" class="anchor"></a><h3 class="code-header">impl Eq for <a class="struct" href="struct.ClassBytes.html" title="struct regex_syntax::hir::ClassBytes">ClassBytes</a></h3></section><section id="impl-StructuralEq-for-ClassBytes" class="impl has-srclink"><a class="srclink rightside" href="../../src/regex_syntax/hir/mod.rs.html#1309">source</a><a href="#impl-StructuralEq-for-ClassBytes" class="anchor"></a><h3 class="code-header">impl StructuralEq for <a class="struct" href="struct.ClassBytes.html" title="struct regex_syntax::hir::ClassBytes">ClassBytes</a></h3></section><section id="impl-StructuralPartialEq-for-ClassBytes" class="impl has-srclink"><a class="srclink rightside" href="../../src/regex_syntax/hir/mod.rs.html#1309">source</a><a href="#impl-StructuralPartialEq-for-ClassBytes" class="anchor"></a><h3 class="code-header">impl StructuralPartialEq for <a class="struct" href="struct.ClassBytes.html" title="struct regex_syntax::hir::ClassBytes">ClassBytes</a></h3></section></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"><section id="impl-RefUnwindSafe-for-ClassBytes" class="impl has-srclink"><a href="#impl-RefUnwindSafe-for-ClassBytes" class="anchor"></a><h3 class="code-header">impl RefUnwindSafe for <a class="struct" href="struct.ClassBytes.html" title="struct regex_syntax::hir::ClassBytes">ClassBytes</a></h3></section><section id="impl-Send-for-ClassBytes" class="impl has-srclink"><a href="#impl-Send-for-ClassBytes" class="anchor"></a><h3 class="code-header">impl Send for <a class="struct" href="struct.ClassBytes.html" title="struct regex_syntax::hir::ClassBytes">ClassBytes</a></h3></section><section id="impl-Sync-for-ClassBytes" class="impl has-srclink"><a href="#impl-Sync-for-ClassBytes" class="anchor"></a><h3 class="code-header">impl Sync for <a class="struct" href="struct.ClassBytes.html" title="struct regex_syntax::hir::ClassBytes">ClassBytes</a></h3></section><section id="impl-Unpin-for-ClassBytes" class="impl has-srclink"><a href="#impl-Unpin-for-ClassBytes" class="anchor"></a><h3 class="code-header">impl Unpin for <a class="struct" href="struct.ClassBytes.html" title="struct regex_syntax::hir::ClassBytes">ClassBytes</a></h3></section><section id="impl-UnwindSafe-for-ClassBytes" class="impl has-srclink"><a href="#impl-UnwindSafe-for-ClassBytes" class="anchor"></a><h3 class="code-header">impl UnwindSafe for <a class="struct" href="struct.ClassBytes.html" title="struct regex_syntax::hir::ClassBytes">ClassBytes</a></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any-for-ClassBytes" class="impl has-srclink"><a href="#impl-Any-for-ClassBytes" class="anchor"></a><h3 class="code-header">impl<T> Any for T<span class="where fmt-newline">where<br> T: 'static + ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a class="fnname">type_id</a>(&self) -> TypeId</h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-ClassBytes" class="impl has-srclink"><a href="#impl-Borrow%3CT%3E-for-ClassBytes" class="anchor"></a><h3 class="code-header">impl<T> Borrow<T> for T<span class="where fmt-newline">where<br> T: ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span><a href="#method.borrow" class="anchor"></a><h4 class="code-header">fn <a class="fnname">borrow</a>(&self) -> &T</h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-ClassBytes" class="impl has-srclink"><a href="#impl-BorrowMut%3CT%3E-for-ClassBytes" class="anchor"></a><h3 class="code-header">impl<T> BorrowMut<T> for T<span class="where fmt-newline">where<br> T: ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span><a href="#method.borrow_mut" class="anchor"></a><h4 class="code-header">fn <a class="fnname">borrow_mut</a>(&mut self) -> &mut T</h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-ClassBytes" class="impl has-srclink"><a href="#impl-From%3CT%3E-for-ClassBytes" class="anchor"></a><h3 class="code-header">impl<T> From<T> for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p> |
| </div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-ClassBytes" class="impl has-srclink"><a href="#impl-Into%3CU%3E-for-ClassBytes" class="anchor"></a><h3 class="code-header">impl<T, U> Into<U> for T<span class="where fmt-newline">where<br> U: From<T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.into" class="anchor"></a><h4 class="code-header">fn <a class="fnname">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p> |
| <p>That is, this conversion is whatever the implementation of |
| <code>[From]<T> for U</code> chooses to do.</p> |
| </div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-ToOwned-for-ClassBytes" class="impl has-srclink"><a href="#impl-ToOwned-for-ClassBytes" class="anchor"></a><h3 class="code-header">impl<T> ToOwned for T<span class="where fmt-newline">where<br> T: Clone,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Owned" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl has-srclink"><a href="#method.to_owned" class="anchor"></a><h4 class="code-header">fn <a class="fnname">to_owned</a>(&self) -> T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl has-srclink"><a href="#method.clone_into" class="anchor"></a><h4 class="code-header">fn <a class="fnname">clone_into</a>(&self, target: &mut T)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-ClassBytes" class="impl has-srclink"><a href="#impl-TryFrom%3CU%3E-for-ClassBytes" class="anchor"></a><h3 class="code-header">impl<T, U> TryFrom<U> for T<span class="where fmt-newline">where<br> U: Into<T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-1" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = Infallible</h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.try_from" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_from</a>(value: U) -> Result<T, <T as TryFrom<U>>::Error></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-ClassBytes" class="impl has-srclink"><a href="#impl-TryInto%3CU%3E-for-ClassBytes" class="anchor"></a><h3 class="code-header">impl<T, U> TryInto<U> for T<span class="where fmt-newline">where<br> U: TryFrom<T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = <U as TryFrom<T>>::Error</h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.try_into" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_into</a>(self) -> Result<U, <U as TryFrom<T>>::Error></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="regex_syntax" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.66.0-nightly (5c8bff74b 2022-10-21)" ></div></body></html> |