newtype

Derive Macro NewType

Source
#[derive(NewType)]
Expand description

Treat a single-field tuple struct as a “newtype”

This will implement From, Into, Deref, and DerefMut for the inner type. Treat a single-field tuple struct as a “newtype”

This will implement From, Into, Deref, and DerefMut for the inner type.