1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-30 10:42:55 +01:00
actix-web/actix_router/trait.IntoPatterns.html

5 lines
47 KiB
HTML
Raw Permalink Normal View History

<!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="Helper trait for type that could be converted to one or more path patterns."><title>IntoPatterns in actix_router - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="actix_router" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (bdbbb6c6a 2024-05-26)" data-channel="nightly" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../actix_router/index.html"><img src="https://actix.rs/img/logo.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../actix_router/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../actix_router/index.html">actix_router</a><span class="version">0.5.3</span></h2></div><h2 class="location"><a href="#">IntoPatterns</a></h2><div class="sidebar-elems"><section><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.patterns">patterns</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-IntoPatterns-for-%26String">&amp;String</a></li><li><a href="#impl-IntoPatterns-for-%26str">&amp;str</a></li><li><a href="#impl-IntoPatterns-for-ByteString">ByteString</a></li><li><a href="#impl-IntoPatterns-for-String">String</a></li><li><a href="#impl-IntoPatterns-for-Vec%3CT%3E">Vec&lt;T&gt;</a></li><li><a href="#impl-IntoPatterns-for-%5B%26str;+10%5D">[&amp;str; 10]</a></li><li><a href="#impl-IntoPatterns-for-%5B%26str;+11%5D">[&amp;str; 11]</a></li><li><a href="#impl-IntoPatterns-for-%5B%26str;+12%5D">[&amp;str; 12]</a></li><li><a href="#impl-IntoPatterns-for-%5B%26str;+13%5D">[&amp;str; 13]</a></li><li><a href="#impl-IntoPatterns-for-%5B%26str;+14%5D">[&amp;str; 14]</a></li><li><a href="#impl-IntoPatterns-for-%5B%26str;+15%5D">[&amp;str; 15]</a></li><li><a href="#impl-IntoPatterns-for-%5B%26str;+16%5D">[&amp;str; 16]</a></li><li><a href="#impl-IntoPatterns-for-%5B%26str;+1%5D">[&amp;str; 1]</a></li><li><a href="#impl-IntoPatterns-for-%5B%26str;+2%5D">[&amp;str; 2]</a></li><li><a href="#impl-IntoPatterns-for-%5B%26str;+3%5D">[&amp;str; 3]</a></li><li><a href="#impl-IntoPatterns-for-%5B%26str;+4%5D">[&amp;str; 4]</a></li><li><a href="#impl-IntoPatterns-for-%5B%26str;+5%5D">[&amp;str; 5]</a></li><li><a href="#impl-IntoPatterns-for-%5B%26str;+6%5D">[&amp;str; 6]</a></li><li><a href="#impl-IntoPatterns-for-%5B%26str;+7%5D">[&amp;str; 7]</a></li><li><a href="#impl-IntoPatterns-for-%5B%26str;+8%5D">[&amp;str; 8]</a></li><li><a href="#impl-IntoPatterns-for-%5B%26str;+9%5D">[&amp;str; 9]</a></li><li><
// Required method
fn <a href="#tymethod.patterns" class="fn">patterns</a>(&amp;self) -&gt; <a class="enum" href="enum.Patterns.html" title="enum actix_router::Patterns">Patterns</a>;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Helper trait for type that could be converted to one or more path patterns.</p>
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.patterns" class="method"><a class="src rightside" href="../src/actix_router/pattern.rs.html#19">source</a><h4 class="code-header">fn <a href="#tymethod.patterns" class="fn">patterns</a>(&amp;self) -&gt; <a class="enum" href="enum.Patterns.html" title="enum actix_router::Patterns">Patterns</a></h4></section></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-IntoPatterns-for-%26str" class="impl"><a class="src rightside" href="../src/actix_router/pattern.rs.html#40-44">source</a><a href="#impl-IntoPatterns-for-%26str" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.IntoPatterns.html" title="trait actix_router::IntoPatterns">IntoPatterns</a> for &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></h3></section></summary><div class="impl-items"><section id="method.patterns" class="method trait-impl"><a class="src rightside" href="../src/actix_router/pattern.rs.html#41-43">source</a><a href="#method.patterns" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.patterns" class="fn">patterns</a>(&amp;self) -&gt; <a class="enum" href="enum.Patterns.html" title="enum actix_router::Patterns">Patterns</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-IntoPatterns-for-%26String" class="impl"><a class="src rightside" href="../src/actix_router/pattern.rs.html#28-32">source</a><a href="#impl-IntoPatterns-for-%26String" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.IntoPatterns.html" title="trait actix_router::IntoPatterns">IntoPatterns</a> for &amp;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h3></section></summary><div class="impl-items"><section id="method.patterns-1" class="method trait-impl"><a class="src rightside" href="../src/actix_router/pattern.rs.html#29-31">source</a><a href="#method.patterns-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.patterns" class="fn">patterns</a>(&amp;self) -&gt; <a class="enum" href="enum.Patterns.html" title="enum actix_router::Patterns">Patterns</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-IntoPatterns-for-str" class="impl"><a class="src rightside" href="../src/actix_router/pattern.rs.html#34-38">source</a><a href="#impl-IntoPatterns-for-str" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.IntoPatterns.html" title="trait actix_router::IntoPatterns">IntoPatterns</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></h3></section></summary><div class="impl-items"><section id="method.patterns-2" class="method trait-impl"><a class="src rightside" href="../src/actix_router/pattern.rs.html#35-37">source</a><a href="#method.patterns-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.patterns" class="fn">patterns</a>(&amp;self) -&gt; <a class="enum" href="enum.Patterns.html" title="enum actix_router::Patterns">Patterns</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-IntoPatterns-for-String" class="impl"><a class="src rightside" href="../src/actix_router/pattern.rs.html#22-26">source</a><a href="#impl-IntoPatterns-for-String" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.IntoPatterns.html" title="trait actix_router::IntoPatterns">IntoPatterns</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h3></section></summary><div class="impl-items"><section i