pub trait ScriptHash: Hash { }
Expand description
A script data hashing operator.
Implementing this trait enables the Object::hash operation.
The underlying type on which this trait is implemented must also implement the Hash trait, which provides the actual implementation of the script data hashing operation.
The trait must be implemented for the registered type, and the implementation must be exported using the export macro. For more details, see the module documentation.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.