Crate natural_derive

Crate natural_derive 

Source
Expand description

Proc macros for naturally deriving basic trait impls for new types, i.e. respecting the structure and semantics of the inner type.

Derive Macrosยง

Add
Derive macro generating an impl of the trait std::ops::Add for a new type.
AddAssign
Derive macro generating an impl of the trait std::ops::AddAssign for a new type.
Div
Derive macro generating an impl of the trait std::ops::Div for a new type.
DivAssign
Derive macro generating an impl of the trait std::ops::DivAssign for a new type.
DivAssignScalar
Derive macro generating an impl of the trait std::ops::DivAssign for a new type.
DivScalar
Derive macro generating an impl of the trait std::ops::Div for a new type.
From
Derive macro generating an impl of the trait std::convert::From for a new type.
Inner
Derive macro generating an impl with a associated inner function for a new type.
Mul
Derive macro generating an impl of the trait std::ops::Mul for a new type.
MulAssign
Derive macro generating an impl of the trait std::ops::MulAssign for a new type.
MulAssignScalar
Derive macro generating an impl of the trait std::ops::MulAssign for a new type.
MulScalar
Derive macro generating an impl of the trait std::ops::Mul for a new type.
New
Derive macro generating an impl with a associated new function for a new type.
Rem
Derive macro generating an impl of the trait std::ops::Rem for a new type.
RemAssign
Derive macro generating an impl of the trait std::ops::RemAssign for a new type.
RemAssignScalar
Derive macro generating an impl of the trait std::ops::RemAssign for a new type.
RemScalar
Derive macro generating an impl of the trait std::ops::Rem for a new type.
Sub
Derive macro generating an impl of the trait std::ops::Sub for a new type.
SubAssign
Derive macro generating an impl of the trait std::ops::SubAssign for a new type.