pub trait IsTransactionHash: Sized {
// Required methods
fn hrp<'h>(&self, hrp_set: &'h HrpSet) -> &'h str;
fn create_from_hrp_and_hash(
hrp: &str,
hash: Hash,
hrp_set: &HrpSet,
) -> Result<Self, HashCreationError>;
fn as_inner_hash(&self) -> &Hash;
}
Required Methods§
fn hrp<'h>(&self, hrp_set: &'h HrpSet) -> &'h str
fn create_from_hrp_and_hash( hrp: &str, hash: Hash, hrp_set: &HrpSet, ) -> Result<Self, HashCreationError>
fn as_inner_hash(&self) -> &Hash
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.