2 stable releases
Uses old Rust 2015
1.0.1 | Nov 18, 2019 |
---|
#2395 in Rust patterns
9KB
126 lines
In rust, it is common to compose functions together; however, to compose functions together, you have option one of dealing with lots of nested parenthesis or option two; you commonly use the method syntax.
the library creates traits that apply to every type, that allow "piping" data through, a free function or closure in a method chain without breaking the format of a method chain.
also, this code adds a trait called pipModer, that additionally, allows chaining functions, that return unit but modify self, by returning Self.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
git is not the official Version Control System for this project.
the official version is at https://jadonbelezos.com/cgi-bin/fossil.cgi/pipe_traits_rust/doc/master/README.md