Registry / utility / newtype-derive

newtype-derive

JSON →
library0.1.6rscratesunverified

Provides macros for deriving common traits for newtype structures.

# Cargo.toml [dependencies] newtype_derive = "0.1.6"
INSTALL
IMPORT
SIG · NEWTYPE-DERIVE
N
newtype-derive
utilityrustv0.1.6
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.

Newtype
use newtype_derive::Newtype;

Derives common traits for a newtype wrapper.

use newtype_derive::Newtype; #[derive(Newtype)] struct MyNewtype(u32); fn main() { let val = MyNewtype(42); println!("{}", val.0); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.6latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
newtype-derive — cargo add newtype-derive · libregistry