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::Addfor a new type. - AddAssign
- Derive macro generating an impl of the trait
std::ops::AddAssignfor a new type. - Div
- Derive macro generating an impl of the trait
std::ops::Divfor a new type. - DivAssign
- Derive macro generating an impl of the trait
std::ops::DivAssignfor a new type. - DivAssign
Scalar - Derive macro generating an impl of the trait
std::ops::DivAssignfor a new type. - DivScalar
- Derive macro generating an impl of the trait
std::ops::Divfor a new type. - From
- Derive macro generating an impl of the trait
std::convert::Fromfor a new type. - Inner
- Derive macro generating an impl with a associated
innerfunction for a new type. - Mul
- Derive macro generating an impl of the trait
std::ops::Mulfor a new type. - MulAssign
- Derive macro generating an impl of the trait
std::ops::MulAssignfor a new type. - MulAssign
Scalar - Derive macro generating an impl of the trait
std::ops::MulAssignfor a new type. - MulScalar
- Derive macro generating an impl of the trait
std::ops::Mulfor a new type. - New
- Derive macro generating an impl with a associated
newfunction for a new type. - Rem
- Derive macro generating an impl of the trait
std::ops::Remfor a new type. - RemAssign
- Derive macro generating an impl of the trait
std::ops::RemAssignfor a new type. - RemAssign
Scalar - Derive macro generating an impl of the trait
std::ops::RemAssignfor a new type. - RemScalar
- Derive macro generating an impl of the trait
std::ops::Remfor a new type. - Sub
- Derive macro generating an impl of the trait
std::ops::Subfor a new type. - SubAssign
- Derive macro generating an impl of the trait
std::ops::SubAssignfor a new type.