Trait bc_components::DigestProvider
source · pub trait DigestProvider {
// Required method
fn digest(&self) -> Cow<'_, Digest>;
}Expand description
A type that can provide a single unique digest that characterizes its contents.
Returns a Cow<’_, Digest> to avoid unnecessary cloning. If the Digest is already owned by the implementor, it can be returned by borrowing. If it doesn’t exist yet, it can be created and returned by owning.