pub trait FromPublicKey: Sized {
// Required methods
fn from_public_key<P>(public_key: &P) -> Self
where P: HasPublicKeyHash;
fn from_public_key_hash<P>(public_key_hash: P) -> Self
where P: IsPublicKeyHash;
}
Required Methods§
fn from_public_key<P>(public_key: &P) -> Selfwhere
P: HasPublicKeyHash,
fn from_public_key_hash<P>(public_key_hash: P) -> Selfwhere
P: IsPublicKeyHash,
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.