Macro attribute_digest

Source
macro_rules! attribute_digest {
    ( $t:ty, $desc:literal ) => { ... };
}
Expand description

Specifies an attribute digest

§Example

attribute_digest!(MyDigestType, "my-digest-type");

makes MyType to implement xvc_ecs::Storable, From and Into traits. It also implements [xvc_core::AttributeDigest] trait. This trait has a attribute function that returns the specified string. This string is then used in XvcDigests as a key to store the digest.