Pat
A Rust trait for performing operations on a value while returning the value itself, enabling fluent and chainable APIs.
Usage
use Tap;
let result = 5
.tap
.tap;
assert_eq!;
Features
- Universal implementation for all types
- Chainable operations
- Preserves original type