Crates.io | free_function_pipes |
lib.rs | free_function_pipes |
version | 1.0.1 |
source | src |
created_at | 2019-11-18 07:00:27.4012 |
updated_at | 2019-11-18 18:30:59.046863 |
description | a bunch of traits that makes composing functions together easier |
homepage | https://jadonbelezos.com/cgi-bin/fossil.cgi/pipe_traits_rust/doc/master/README.md |
repository | https://github.com/warlord500/free_function_pipes.git |
max_upload_size | |
id | 182174 |
size | 59,262 |
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.
Licensed under either of
at your option.
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.
the official version is at https://jadonbelezos.com/cgi-bin/fossil.cgi/pipe_traits_rust/doc/master/README.md