pub trait Digestible:
Clone
+ Sized
+ Send
+ Sync
+ 'static {
type Digest: Digest;
// Required method
fn digest(&self) -> Self::Digest;
// Provided method
fn digest_across(&self, _strategy: &impl Strategy) -> Self::Digest { ... }
}Expand description
An object that can be uniquely represented as a Digest.
Required Associated Types§
Required Methods§
Provided Methods§
Sourcefn digest_across(&self, _strategy: &impl Strategy) -> Self::Digest
fn digest_across(&self, _strategy: &impl Strategy) -> Self::Digest
Returns the object’s digest, splitting any work in computing it across strategy.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<T: Digestible> Digestible for Arc<T>
Available on neither commonware_stability_DELTA nor commonware_stability_EPSILON nor commonware_stability_GAMMA nor commonware_stability_RESERVED.
impl<T: Digestible> Digestible for Arc<T>
Available on neither
commonware_stability_DELTA nor commonware_stability_EPSILON nor commonware_stability_GAMMA nor commonware_stability_RESERVED.Implementors§
Source§impl<T: Digestible> Digestible for Digested<T>
Available on neither commonware_stability_DELTA nor commonware_stability_EPSILON nor commonware_stability_GAMMA nor commonware_stability_RESERVED.
impl<T: Digestible> Digestible for Digested<T>
Available on neither
commonware_stability_DELTA nor commonware_stability_EPSILON nor commonware_stability_GAMMA nor commonware_stability_RESERVED.