1 2 3 4 5 6 7 8 9 10
use std::hash::{Hash, Hasher}; use super::types::Point; impl<Scalar: Hash> Hash for Point<Scalar> { fn hash<H: Hasher>(&self, state: &mut H) { self.x.hash(state); self.y.hash(state); } }