HashAlgorithm

Trait HashAlgorithm 

Source
pub trait HashAlgorithm: Sealed { }
Expand description

Hash algorithms that can be used to make a GitOid.

This is a sealed trait to ensure it’s only used for hash algorithms which are actually supported by Git.

For more information on sealed traits, read Predrag Gruevski’s “A Definitive Guide to Sealed Traits in Rust”.

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.

Implementors§