1 unstable release

Uses old Rust 2015

0.1.0 Jul 18, 2017

#11 in #benefits

CC0 license

6KB
86 lines

Ref-like traits

Traits for things that seem like references. You may freely use and modify this code under the CC0 1.0 Universal License.

Usage

To use in your own project, just add the below to your Cargo.toml file.

[dependencies]
reflike = "0.1"

For more formal documentation, you can find the rustdoc here.


lib.rs:

These traits are useful for validation during development and testing, to help verify that types match human expectations. For example, iter-trait uses these traits to ensure that the values returmed by iter, iter_mut, and into_iter match up in a reasonable manner.

Because these traits provide no actual runtime benefit, if a build uses the release profile, then these traits will automatically implement for all types to make builds faster and avoid dead code.

No runtime deps