mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-04 17:40:50 +00:00
8 lines
No EOL
9.6 KiB
HTML
8 lines
No EOL
9.6 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `TupleExt` trait in crate `stdx`."><title>TupleExt in stdx - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-84e720fa.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="stdx" data-themes="" data-resource-suffix="" data-rustdoc-version="1.89.0 (29483883e 2025-08-04)" data-channel="1.89.0" data-search-js="search-92309212.js" data-settings-js="settings-5514c975.js" ><script src="../static.files/storage-4e99c027.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-fd3af306.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-044be391.svg"></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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../stdx/index.html">stdx</a><span class="version">0.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Tuple<wbr>Ext</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Head" title="Head">Head</a></li><li><a href="#associatedtype.Tail" title="Tail">Tail</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.head" title="head">head</a></li><li><a href="#tymethod.tail" title="tail">tail</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-TupleExt-for-(T,+U)" title="(T, U)">(T, U)</a></li><li><a href="#impl-TupleExt-for-(T,+U,+V)" title="(T, U, V)">(T, U, V)</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate stdx</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="index.html">stdx</a></div><h1>Trait <span class="trait">TupleExt</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/stdx/lib.rs.html#50-55">Source</a> </span></div><pre class="rust item-decl"><code>pub trait TupleExt {
|
|
type <a href="#associatedtype.Head" class="associatedtype">Head</a>;
|
|
type <a href="#associatedtype.Tail" class="associatedtype">Tail</a>;
|
|
|
|
// Required methods
|
|
fn <a href="#tymethod.head" class="fn">head</a>(self) -> Self::<a class="associatedtype" href="trait.TupleExt.html#associatedtype.Head" title="type stdx::TupleExt::Head">Head</a>;
|
|
<span class="item-spacer"></span> fn <a href="#tymethod.tail" class="fn">tail</a>(self) -> Self::<a class="associatedtype" href="trait.TupleExt.html#associatedtype.Tail" title="type stdx::TupleExt::Tail">Tail</a>;
|
|
}</code></pre><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><section id="associatedtype.Head" class="method"><a class="src rightside" href="../src/stdx/lib.rs.html#51">Source</a><h4 class="code-header">type <a href="#associatedtype.Head" class="associatedtype">Head</a></h4></section><section id="associatedtype.Tail" class="method"><a class="src rightside" href="../src/stdx/lib.rs.html#52">Source</a><h4 class="code-header">type <a href="#associatedtype.Tail" class="associatedtype">Tail</a></h4></section></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.head" class="method"><a class="src rightside" href="../src/stdx/lib.rs.html#53">Source</a><h4 class="code-header">fn <a href="#tymethod.head" class="fn">head</a>(self) -> Self::<a class="associatedtype" href="trait.TupleExt.html#associatedtype.Head" title="type stdx::TupleExt::Head">Head</a></h4></section><section id="tymethod.tail" class="method"><a class="src rightside" href="../src/stdx/lib.rs.html#54">Source</a><h4 class="code-header">fn <a href="#tymethod.tail" class="fn">tail</a>(self) -> Self::<a class="associatedtype" href="trait.TupleExt.html#associatedtype.Tail" title="type stdx::TupleExt::Tail">Tail</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-TupleExt-for-(T,+U)" class="impl"><a class="src rightside" href="../src/stdx/lib.rs.html#57-66">Source</a><a href="#impl-TupleExt-for-(T,+U)" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="trait.TupleExt.html" title="trait stdx::TupleExt">TupleExt</a> for <a class="primitive" href="https://doc.rust-lang.org/1.89.0/std/primitive.tuple.html">(T, U)</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Head-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/stdx/lib.rs.html#58">Source</a><a href="#associatedtype.Head-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Head" class="associatedtype">Head</a> = T</h4></section><section id="associatedtype.Tail-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/stdx/lib.rs.html#59">Source</a><a href="#associatedtype.Tail-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Tail" class="associatedtype">Tail</a> = U</h4></section><section id="method.head" class="method trait-impl"><a class="src rightside" href="../src/stdx/lib.rs.html#60-62">Source</a><a href="#method.head" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.head" class="fn">head</a>(self) -> Self::<a class="associatedtype" href="trait.TupleExt.html#associatedtype.Head" title="type stdx::TupleExt::Head">Head</a></h4></section><section id="method.tail" class="method trait-impl"><a class="src rightside" href="../src/stdx/lib.rs.html#63-65">Source</a><a href="#method.tail" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.tail" class="fn">tail</a>(self) -> Self::<a class="associatedtype" href="trait.TupleExt.html#associatedtype.Tail" title="type stdx::TupleExt::Tail">Tail</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TupleExt-for-(T,+U,+V)" class="impl"><a class="src rightside" href="../src/stdx/lib.rs.html#68-77">Source</a><a href="#impl-TupleExt-for-(T,+U,+V)" class="anchor">§</a><h3 class="code-header">impl<T, U, V> <a class="trait" href="trait.TupleExt.html" title="trait stdx::TupleExt">TupleExt</a> for <a class="primitive" href="https://doc.rust-lang.org/1.89.0/std/primitive.tuple.html">(T, U, V)</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Head-2" class="associatedtype trait-impl"><a class="src rightside" href="../src/stdx/lib.rs.html#69">Source</a><a href="#associatedtype.Head-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Head" class="associatedtype">Head</a> = T</h4></section><section id="associatedtype.Tail-2" class="associatedtype trait-impl"><a class="src rightside" href="../src/stdx/lib.rs.html#70">Source</a><a href="#associatedtype.Tail-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Tail" class="associatedtype">Tail</a> = V</h4></section><section id="method.head-1" class="method trait-impl"><a class="src rightside" href="../src/stdx/lib.rs.html#71-73">Source</a><a href="#method.head-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.head" class="fn">head</a>(self) -> Self::<a class="associatedtype" href="trait.TupleExt.html#associatedtype.Head" title="type stdx::TupleExt::Head">Head</a></h4></section><section id="method.tail-1" class="method trait-impl"><a class="src rightside" href="../src/stdx/lib.rs.html#74-76">Source</a><a href="#method.tail-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.tail" class="fn">tail</a>(self) -> Self::<a class="associatedtype" href="trait.TupleExt.html#associatedtype.Tail" title="type stdx::TupleExt::Tail">Tail</a></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../trait.impl/stdx/trait.TupleExt.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html> |