Trait Sealable
pub trait Sealable: Sized {
// Required method
fn hash_slow(&self) -> FixedBytes<32>;
// Provided methods
fn seal_slow(self) -> Sealed<Self> { ... }
fn seal_unchecked(self, seal: FixedBytes<32>) -> Sealed<Self> { ... }
}
Expand description
Sealeable objects.
Required Methods§
fn hash_slow(&self) -> FixedBytes<32>
fn hash_slow(&self) -> FixedBytes<32>
Calculate the seal hash, this may be slow.
Provided Methods§
fn seal_unchecked(self, seal: FixedBytes<32>) -> Sealed<Self>
fn seal_unchecked(self, seal: FixedBytes<32>) -> Sealed<Self>
Instantiate an unchecked seal. This should be used with caution.
Object Safety§
This trait is not object safe.