mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
13 lines
24 KiB
HTML
13 lines
24 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 `Processable` trait in crate `maplibre`."><meta name="keywords" content="rust, rustlang, rust-lang, Processable"><title>Processable in maplibre::io::pipeline - 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" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.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 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">☰</button><a class="sidebar-logo" href="../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div>
|
||
</a><h2 class="location"></h2>
|
||
</nav>
|
||
<nav class="sidebar"><a class="sidebar-logo" href="../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div>
|
||
</a><h2 class="location"><a href="#">Processable</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#required-associated-types">Required Associated Types</a></h3><ul><li><a href="#associatedtype.Input">Input</a></li><li><a href="#associatedtype.Output">Output</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#required-methods">Required Methods</a></h3><ul><li><a href="#tymethod.process">process</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul><li><a href="#impl-Processable-for-%26fn(input%3A%20I%2C%20context%3A%20%26mut%20PipelineContext)%20-%3E%20O">&fn(input: I, context: &mut PipelineContext) -> O</a></li><li><a href="#impl-Processable-for-fn(input%3A%20I%2C%20context%3A%20%26mut%20PipelineContext)%20-%3E%20O">fn(input: I, context: &mut PipelineContext) -> O</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#implementors">Implementors</a></h3></div></section><h2 class="location"><a href="index.html">In maplibre::io::pipeline</a></h2><div id="sidebar-vars" data-name="Processable" data-ty="trait" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../maplibre/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><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"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||
<h1 class="fqn"><span class="in-band">Trait <a href="../../index.html">maplibre</a>::<wbr><a href="../index.html">io</a>::<wbr><a href="index.html">pipeline</a>::<wbr><a class="trait" href="#">Processable</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></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/maplibre/io/pipeline.rs.html#60-65">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust trait"><code>pub trait Processable {
|
||
type <a href="#associatedtype.Input" class="associatedtype">Input</a>;
|
||
type <a href="#associatedtype.Output" class="associatedtype">Output</a>;
|
||
|
||
fn <a href="#tymethod.process" class="fnname">process</a>(<br> &self, <br> input: Self::<a class="associatedtype" href="trait.Processable.html#associatedtype.Input" title="type maplibre::io::pipeline::Processable::Input">Input</a>, <br> context: &mut <a class="struct" href="struct.PipelineContext.html" title="struct maplibre::io::pipeline::PipelineContext">PipelineContext</a><br> ) -> Self::<a class="associatedtype" href="trait.Processable.html#associatedtype.Output" title="type maplibre::io::pipeline::Processable::Output">Output</a>;
|
||
}</code></pre></div><h2 id="required-associated-types" class="small-section-header">Required Associated Types<a href="#required-associated-types" class="anchor"></a></h2><div class="methods"><div id="associatedtype.Input" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/maplibre/io/pipeline.rs.html#61">source</a></div><h4 class="code-header">type <a href="#associatedtype.Input" class="associatedtype">Input</a></h4></div><div id="associatedtype.Output" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/maplibre/io/pipeline.rs.html#62">source</a></div><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a></h4></div></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><div id="tymethod.process" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/maplibre/io/pipeline.rs.html#64">source</a></div><h4 class="code-header">fn <a href="#tymethod.process" class="fnname">process</a>(<br> &self, <br> input: Self::<a class="associatedtype" href="trait.Processable.html#associatedtype.Input" title="type maplibre::io::pipeline::Processable::Input">Input</a>, <br> context: &mut <a class="struct" href="struct.PipelineContext.html" title="struct maplibre::io::pipeline::PipelineContext">PipelineContext</a><br>) -> Self::<a class="associatedtype" href="trait.Processable.html#associatedtype.Output" title="type maplibre::io::pipeline::Processable::Output">Output</a></h4></div></div><h2 id="foreign-impls" class="small-section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Processable-for-%26fn(input%3A%20I%2C%20context%3A%20%26mut%20PipelineContext)%20-%3E%20O" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/maplibre/io/pipeline.rs.html#124-131">source</a></span><a href="#impl-Processable-for-%26fn(input%3A%20I%2C%20context%3A%20%26mut%20PipelineContext)%20-%3E%20O" class="anchor"></a><h3 class="code-header in-band">impl<I, O> <a class="trait" href="trait.Processable.html" title="trait maplibre::io::pipeline::Processable">Processable</a> for &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.fn.html">fn</a>(input: I, context: &mut <a class="struct" href="struct.PipelineContext.html" title="struct maplibre::io::pipeline::PipelineContext">PipelineContext</a>) -> O</h3></section></summary><div class="impl-items"><section id="associatedtype.Input-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Input-1" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Input" class="associatedtype">Input</a> = I</h4></section><section id="associatedtype.Output-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-1" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = O</h4></section><section id="method.process" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/maplibre/io/pipeline.rs.html#128-130">source</a></span><a href="#method.process" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.process" class="fnname">process</a>(<br> &self, <br> input: Self::<a class="associatedtype" href="trait.Processable.html#associatedtype.Input" title="type maplibre::io::pipeline::Processable::Input">Input</a>, <br> context: &mut <a class="struct" href="struct.PipelineContext.html" title="struct maplibre::io::pipeline::PipelineContext">PipelineContext</a><br>) -> Self::<a class="associatedtype" href="trait.Processable.html#associatedtype.Output" title="type maplibre::io::pipeline::Processable::Output">Output</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Processable-for-fn(input%3A%20I%2C%20context%3A%20%26mut%20PipelineContext)%20-%3E%20O" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/maplibre/io/pipeline.rs.html#133-140">source</a></span><a href="#impl-Processable-for-fn(input%3A%20I%2C%20context%3A%20%26mut%20PipelineContext)%20-%3E%20O" class="anchor"></a><h3 class="code-header in-band">impl<I, O> <a class="trait" href="trait.Processable.html" title="trait maplibre::io::pipeline::Processable">Processable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.fn.html">fn</a>(input: I, context: &mut <a class="struct" href="struct.PipelineContext.html" title="struct maplibre::io::pipeline::PipelineContext">PipelineContext</a>) -> O</h3></section></summary><div class="impl-items"><section id="associatedtype.Input-2" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Input-2" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Input" class="associatedtype">Input</a> = I</h4></section><section id="associatedtype.Output-2" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-2" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = O</h4></section><section id="method.process-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/maplibre/io/pipeline.rs.html#137-139">source</a></span><a href="#method.process-1" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.process" class="fnname">process</a>(<br> &self, <br> input: Self::<a class="associatedtype" href="trait.Processable.html#associatedtype.Input" title="type maplibre::io::pipeline::Processable::Input">Input</a>, <br> context: &mut <a class="struct" href="struct.PipelineContext.html" title="struct maplibre::io::pipeline::PipelineContext">PipelineContext</a><br>) -> Self::<a class="associatedtype" href="trait.Processable.html#associatedtype.Output" title="type maplibre::io::pipeline::Processable::Output">Output</a></h4></section></div></details><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Processable" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/maplibre/io/tile_pipelines.rs.html#31-48">source</a></span><a href="#impl-Processable" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Processable.html" title="trait maplibre::io::pipeline::Processable">Processable</a> for <a class="struct" href="../tile_pipelines/struct.IndexLayer.html" title="struct maplibre::io::tile_pipelines::IndexLayer">IndexLayer</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Input-3" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Input-3" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Input" class="associatedtype">Input</a> = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.tuple.html">(</a><a class="struct" href="../struct.TileRequest.html" title="struct maplibre::io::TileRequest">TileRequest</a>, <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.u32.html">u32</a>, Tile<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.tuple.html">)</a></h4></section><section id="associatedtype.Output-3" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-3" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.tuple.html">(</a><a class="struct" href="../struct.TileRequest.html" title="struct maplibre::io::TileRequest">TileRequest</a>, <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.u32.html">u32</a>, Tile<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.tuple.html">)</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Processable-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/maplibre/io/tile_pipelines.rs.html#13-26">source</a></span><a href="#impl-Processable-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Processable.html" title="trait maplibre::io::pipeline::Processable">Processable</a> for <a class="struct" href="../tile_pipelines/struct.ParseTile.html" title="struct maplibre::io::tile_pipelines::ParseTile">ParseTile</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Input-4" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Input-4" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Input" class="associatedtype">Input</a> = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.tuple.html">(</a><a class="struct" href="../struct.TileRequest.html" title="struct maplibre::io::TileRequest">TileRequest</a>, <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.u32.html">u32</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.slice.html">[</a><a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.slice.html">]</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>><a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.tuple.html">)</a></h4></section><section id="associatedtype.Output-4" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-4" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.tuple.html">(</a><a class="struct" href="../struct.TileRequest.html" title="struct maplibre::io::TileRequest">TileRequest</a>, <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.u32.html">u32</a>, Tile<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.tuple.html">)</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Processable-2" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/maplibre/io/tile_pipelines.rs.html#53-122">source</a></span><a href="#impl-Processable-2" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Processable.html" title="trait maplibre::io::pipeline::Processable">Processable</a> for <a class="struct" href="../tile_pipelines/struct.TessellateLayer.html" title="struct maplibre::io::tile_pipelines::TessellateLayer">TessellateLayer</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Input-5" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Input-5" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Input" class="associatedtype">Input</a> = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.tuple.html">(</a><a class="struct" href="../struct.TileRequest.html" title="struct maplibre::io::TileRequest">TileRequest</a>, <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.u32.html">u32</a>, Tile<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.tuple.html">)</a></h4></section><section id="associatedtype.Output-5" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-5" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.tuple.html">(</a><a class="struct" href="../struct.TileRequest.html" title="struct maplibre::io::TileRequest">TileRequest</a>, <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.u32.html">u32</a>, Tile<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.tuple.html">)</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Processable-3" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/maplibre/io/pipeline.rs.html#164-174">source</a></span><a href="#impl-Processable-3" class="anchor"></a><h3 class="code-header in-band">impl<F, I, O> <a class="trait" href="trait.Processable.html" title="trait maplibre::io::pipeline::Processable">Processable</a> for <a class="struct" href="struct.ClosureProcessable.html" title="struct maplibre::io::pipeline::ClosureProcessable">ClosureProcessable</a><F, I, O> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(I, &mut <a class="struct" href="struct.PipelineContext.html" title="struct maplibre::io::pipeline::PipelineContext">PipelineContext</a>) -> O, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.Input-6" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Input-6" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Input" class="associatedtype">Input</a> = I</h4></section><section id="associatedtype.Output-6" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-6" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = O</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Processable-4" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/maplibre/io/pipeline.rs.html#115-122">source</a></span><a href="#impl-Processable-4" class="anchor"></a><h3 class="code-header in-band">impl<I> <a class="trait" href="trait.Processable.html" title="trait maplibre::io::pipeline::Processable">Processable</a> for <a class="struct" href="struct.PipelineEnd.html" title="struct maplibre::io::pipeline::PipelineEnd">PipelineEnd</a><I></h3></section></summary><div class="impl-items"><section id="associatedtype.Input-7" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Input-7" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Input" class="associatedtype">Input</a> = I</h4></section><section id="associatedtype.Output-7" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-7" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = I</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Processable-5" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/maplibre/io/pipeline.rs.html#88-100">source</a></span><a href="#impl-Processable-5" class="anchor"></a><h3 class="code-header in-band">impl<P, N> <a class="trait" href="trait.Processable.html" title="trait maplibre::io::pipeline::Processable">Processable</a> for <a class="struct" href="struct.DataPipeline.html" title="struct maplibre::io::pipeline::DataPipeline">DataPipeline</a><P, N> <span class="where fmt-newline">where<br> P: <a class="trait" href="trait.Processable.html" title="trait maplibre::io::pipeline::Processable">Processable</a>,<br> N: <a class="trait" href="trait.Processable.html" title="trait maplibre::io::pipeline::Processable">Processable</a><Input = P::<a class="associatedtype" href="trait.Processable.html#associatedtype.Output" title="type maplibre::io::pipeline::Processable::Output">Output</a>>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.Input-8" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Input-8" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Input" class="associatedtype">Input</a> = <P as <a class="trait" href="trait.Processable.html" title="trait maplibre::io::pipeline::Processable">Processable</a>>::<a class="associatedtype" href="trait.Processable.html#associatedtype.Input" title="type maplibre::io::pipeline::Processable::Input">Input</a></h4></section><section id="associatedtype.Output-8" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-8" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = <N as <a class="trait" href="trait.Processable.html" title="trait maplibre::io::pipeline::Processable">Processable</a>>::<a class="associatedtype" href="trait.Processable.html#associatedtype.Output" title="type maplibre::io::pipeline::Processable::Output">Output</a></h4></section></div></details></div><script type="text/javascript" src="../../../implementors/maplibre/io/pipeline/trait.Processable.js" data-ignore-extern-crates="std" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="maplibre" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.62.0 (a8314ef7d 2022-06-27)" ></div>
|
||
</body></html> |