another_pipe_macro 0.1.2

Adds a macro for composing functions
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented2 out of 2 items with examples
  • Size
  • Source code size: 3.95 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 244.3 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • thetos7/pipe_macro_rs
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • thetos7

another_pipe_macro

This crate provides a pipe macro to easily compose functions together with a new syntax preventing nested calls which are hard to read and understand.

example usage:

use another_pipe_macro::pipe;

let res = pipe!( "32" => str::parse::<i32> => Result::unwrap);

assert_eq!(res, 32);

Should you use this crate?

No.

It is meant as an exercice in writing macros and publishing to crates.io, and possibly lacks features. If you want a more mature crate, use the pipeline crate.