reft
The Problem
Rust's AsRef<T> (as well as AsMut<T>) isn't implemented for &T (or &mut T).
Rust's borrowing system is powerful, but sometimes we need to abstract over references without tying our code to &T
;
How to use
Add this to your Cargo.toml:
[]
= "*" # check for the latest version at crates.io
Or run:
How to contribute
Fork repository, make changes, and send us a pull request.
We will review your changes and apply them to the main branch shortly, provided they don't violate our quality standards.
License
This project is dual-licensed under:
You may choose either license at your option.