feanor_math::ring

Trait HashableElRingStore

Source
pub trait HashableElRingStore: RingStore
where Self::Type: HashableElRing,
{ // Provided methods fn hash<H: Hasher>(&self, el: &El<Self>, h: &mut H) { ... } fn default_hash(&self, el: &El<Self>) -> u64 { ... } }
Expand description

Provided Methods§

Source

fn hash<H: Hasher>(&self, el: &El<Self>, h: &mut H)

Source

fn default_hash(&self, el: &El<Self>) -> u64

Computes a hash of the given element using some default hasher.

This may not be the same in different versions of feanor-math.

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§