Trait alloy_primitives::Sealable
source · pub trait Sealable: Sized {
// Required method
fn hash_slow(&self) -> B256;
// Provided methods
fn seal_slow(self) -> Sealed<Self> { ... }
fn seal_ref_slow(&self) -> Sealed<&Self> { ... }
fn seal_unchecked(self, seal: B256) -> Sealed<Self> { ... }
fn seal_ref_unchecked(&self, seal: B256) -> Sealed<&Self> { ... }
}
Expand description
Sealeable objects.
Required Methods§
Provided Methods§
sourcefn seal_ref_slow(&self) -> Sealed<&Self>
fn seal_ref_slow(&self) -> Sealed<&Self>
Seal a borrowed object by calculating the hash. This may be slow.
sourcefn seal_unchecked(self, seal: B256) -> Sealed<Self>
fn seal_unchecked(self, seal: B256) -> Sealed<Self>
Instantiate an unchecked seal. This should be used with caution.
sourcefn seal_ref_unchecked(&self, seal: B256) -> Sealed<&Self>
fn seal_ref_unchecked(&self, seal: B256) -> Sealed<&Self>
Instantiate an unchecked seal. This should be used with caution.
Object Safety§
This trait is not object safe.