pub trait Allele:
Clone
+ Copy
+ Send
+ Sync
+ Debug {
// Required method
fn hash_slice(slice: &[Self], hasher: &mut impl Hasher)
where Self: Sized;
}Expand description
Standard Allele, suitable for crate::genotype::Genotype. Implemented for a set of primitives by default
Required Methods§
Sourcefn hash_slice(slice: &[Self], hasher: &mut impl Hasher)where
Self: Sized,
fn hash_slice(slice: &[Self], hasher: &mut impl Hasher)where
Self: Sized,
Hash a slice of alleles. This method allows type-specific hashing behavior. For most types, this uses the standard Hash trait. For float types (f32, f64), this hashes the bytes for deterministic results.
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.