Registry / utility / shrinkwraprs

shrinkwraprs

JSON →
library0.3.0rscratesunverified

Auto-derive conversion traits for Rust newtypes, making them easier to work with.

# Cargo.toml [dependencies] shrinkwraprs = "0.3.0"
INSTALL
IMPORT
SIG · SHRINKWRAPRS
S
shrinkwraprs
utilityrustv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Shrinkwrap
use shrinkwraprs::Shrinkwrap;

Define a newtype that automatically dereferences to its inner type.

use shrinkwraprs::Shrinkwrap; #[derive(Shrinkwrap)] struct MyString(String); fn main() { let s = MyString("hello".to_string()); println!("Length: {}", s.len()); // Deref to String }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
shrinkwraprs — cargo add shrinkwraprs · libregistry