pub trait SignatureHashesAccumulator: Clone {
// Required method
fn update_from_netdoc_body(
&mut self,
document_body: &SignatureHashInputs<'_>,
) -> Result<(), EP>;
}Expand description
Hash(es) for a signature item
Used by the derived implementation of SignatureItemParseable
generated by
ItemValueParseable
with #[deftly(netdoc(signature))].
Required Methods§
Sourcefn update_from_netdoc_body(
&mut self,
document_body: &SignatureHashInputs<'_>,
) -> Result<(), EP>
fn update_from_netdoc_body( &mut self, document_body: &SignatureHashInputs<'_>, ) -> Result<(), EP>
Update self, ensuring that this hash is computed
Should perform precisely the hash-related parts specified for
SignatureItemParseable::from_unparsed_and_body.
So, if this hash is already recorded in self, it should not be updated.
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.