[−][src]Crate tari_infra_derive
Derive Macros
ExtendBytes | This macro will provide a To_bytes implementation to the a given struct To use this provide #[derive(ExtendBytes)] to the struct digest the macro should use to impl Hashable individual fields can be skipped by providing them with: #[ExtendBytes(Ignore)] |
Hashable | This macro will provide a Hashable implementation to the a given struct using a Digest implementing Hash function
To use this provide #[derive(Hashable)] to the struct and #[Digest = " |
HashableOrdering | This macro will produce the 4 trait implementations required for an hashable struct to be sorted |