Crate reflike

Source
Expand description

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.

Traits§

  • A trait for things that are “close enough” to &'a T.
  • A trait for things that are “close enough” to &'a mut T.