diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-04-01 20:14:56 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-04-01 20:16:17 +0800 |
| commit | f1ed18e668a830646fe507ee33c4b010a1690342 (patch) | |
| tree | 6d13b5ca65ec4df6b8df1c03df3c96301d435bbf /mingling_core/src/asset/chain.rs | |
| parent | 227e710fe716c8901ee02e670a57fb70eb3f222b (diff) | |
Add documentation for mingling_core
Diffstat (limited to 'mingling_core/src/asset/chain.rs')
| -rw-r--r-- | mingling_core/src/asset/chain.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mingling_core/src/asset/chain.rs b/mingling_core/src/asset/chain.rs index 9f62228..70eda8c 100644 --- a/mingling_core/src/asset/chain.rs +++ b/mingling_core/src/asset/chain.rs @@ -2,12 +2,17 @@ use std::fmt::Display; use crate::ChainProcess; +#[doc(hidden)] pub mod error; +/// Takes over a type (G: Previous) and converts it to another [AnyOutput](./struct.AnyOutput.html) pub trait Chain<G> where G: Display, { + /// The previous type in the chain type Previous; + + /// Process the previous value and return a future that resolves to a [`ChainProcess<G>`](./enum.ChainProcess.html) fn proc(p: Self::Previous) -> impl Future<Output = ChainProcess<G>> + Send; } |
