trait_adapters 0.1.0

Provides newtype adapters for modifying interactions with traits
Documentation
  • Coverage
  • 100%
    10 out of 10 items documented0 out of 6 items with examples
  • Size
  • Source code size: 9.57 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.18 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • kotauskas/trait_adapters
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • kotauskas

Trait Adapters

Crates.io Docs.rs

Version notice

This is an early version of the crate, released due to high demand in a different crate. Features listed below might not exist yet: additions will be noted in the changelog.

Provides newtype adapters for modifying interactions with traits.

Examples include:

  • Removing all traits from a type and leaving only one (customized thanks to macros)
  • Implementing a trait by using another trait with an equivalent signature (also customized thanks to macros; a good use case is the variety of formatting traits in std::fmt)
  • Containers which are alternatives to equivalent standard library containers but use slightly different traits or alter their meaning