Crate temp_inst_derive

Source
Expand description

Derive macros for the temp_inst crate. These can be used to implement temp_inst::TempRepr etc. for a struct or enum consisting entirely of items implementing TempRepr, identically to the implementation for the corresponding tuple or either::Either.

Using a custom type as a TempRepr instance is particularly useful when additional traits must be implemented for the type.

Derive Macrosยง

TempRepr
Derives temp_inst::TempRepr for the given struct or enum.
TempReprMut
Derives temp_inst::TempReprMut for the given struct or enum.
TempReprMutChk
Derives temp_inst::TempReprMutChk for the given struct or enum.