lo

Crates.iolo
lib.rslo
version0.0.1
sourcesrc
created_at2021-03-16 03:48:30.064003
updated_at2021-03-16 03:48:30.064003
descriptionlo provides traits that makes composing functions together simpler in Rust
homepagehttps://github.com/yuulive/lo
repository
max_upload_size
id369514
size18,008
(yuulive)

documentation

README

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

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.

Commit count: 0

cargo fmt