1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/// Helper to pass return of functions as parameter of other functions
;
=> ;
}
/// Return new instance of pipeline struct
///
/// # Syntax:
/// ```
/// # use pipeline_macro::*;
/// # struct InputType {}
/// # struct OutputType {}
/// # fn function1(i: InputType) -> InputType { i }
/// # fn function2(i: InputType) -> OutputType { OutputType {} }
/// pipeline! {
/// InputType => function1 => function2 ;-> OutputType
/// };
/// ```