Trait plexus::ordered::HashConjugate
[−]
[src]
pub trait HashConjugate: Sized { type Hash: Eq + Hash; fn into_hash(self) -> Self::Hash; fn from_hash(hash: Self::Hash) -> Self; }
Provides conversion to and from a conjugate type that can be hashed.
This trait is primarily used to convert geometry to and from hashable data for indexing.
Associated Types
Required Methods
fn into_hash(self) -> Self::Hash
Converts into the conjugate type.
fn from_hash(hash: Self::Hash) -> Self
Converts from the conjugate type.
Implementations on Foreign Types
impl<T> HashConjugate for Point2<T> where
T: Float + Scalar, [src]
T: Float + Scalar,
impl<T> HashConjugate for Point3<T> where
T: Float + Scalar, [src]
T: Float + Scalar,
impl<T> HashConjugate for Vector2<T> where
T: Float + Scalar, [src]
T: Float + Scalar,
impl<T> HashConjugate for Vector3<T> where
T: Float + Scalar, [src]
T: Float + Scalar,