pub enum DigestAlgorithm<'a> {
Written(AlgorithmIdentifier<'a>),
Implied {
algorithm: ImpliedDigest,
field: &'static str,
span: Span,
},
}Expand description
Original written algorithm or a normative schema-supplied identity.
Implied inputs have no encoded AlgorithmIdentifier and no parameter TLV.
A written unsupported/malformed identifier must never become an implied
default. The enclosing field/span locate the implied identity with real
document provenance, without synthesizing bytes or a new Parser.
Variants§
Written(AlgorithmIdentifier<'a>)
The complete original identifier, encoding and parameter provenance.
Implied
A schema default/mandatory identity without an original identifier TLV.
Trait Implementations§
Source§impl<'a> Clone for DigestAlgorithm<'a>
impl<'a> Clone for DigestAlgorithm<'a>
impl<'a> Copy for DigestAlgorithm<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for DigestAlgorithm<'a>
impl<'a> !Send for DigestAlgorithm<'a>
impl<'a> !Sync for DigestAlgorithm<'a>
impl<'a> !UnwindSafe for DigestAlgorithm<'a>
impl<'a> Freeze for DigestAlgorithm<'a>
impl<'a> Unpin for DigestAlgorithm<'a>
impl<'a> UnsafeUnpin for DigestAlgorithm<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more