Trait ScriptHash

Source
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.

Implementations on Foreign Types§

Source§

impl ScriptHash for bool

Source§

impl ScriptHash for i8

Source§

impl ScriptHash for i16

Source§

impl ScriptHash for i32

Source§

impl ScriptHash for i64

Source§

impl ScriptHash for i128

Source§

impl ScriptHash for isize

Source§

impl ScriptHash for u8

Source§

impl ScriptHash for u16

Source§

impl ScriptHash for u32

Source§

impl ScriptHash for u64

Source§

impl ScriptHash for u128

Source§

impl ScriptHash for usize

Source§

impl ScriptHash for Range<usize>

Implementors§