Trait truck_geometry::base::hash::HashGen

source ·
pub trait HashGen<S> {
    // Required methods
    fn hash1(gen: Self) -> S;
    fn hash2(gen: Self) -> [S; 2];
    fn hash3(gen: Self) -> [S; 3];
    fn hash4(gen: Self) -> [S; 4];
}
Expand description

Deterministic hash generator

Required Methods§

source

fn hash1(gen: Self) -> S

deterministic hash, output 1-dim

source

fn hash2(gen: Self) -> [S; 2]

deterministic hash, output 2-dim

source

fn hash3(gen: Self) -> [S; 3]

deterministic hash, output 3-dim

source

fn hash4(gen: Self) -> [S; 4]

deterministic hash, output 4-dim

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<S> HashGen<S> for [S; 1]
where S: Float + FromPrimitive,

source§

impl<S> HashGen<S> for [S; 2]
where S: Float + FromPrimitive,

source§

impl<S> HashGen<S> for [S; 3]
where S: Float + FromPrimitive,

source§

impl<S> HashGen<S> for [S; 4]
where S: Float + FromPrimitive,

Implementors§

source§

impl<S> HashGen<S> for Point1<S>
where S: Float + FromPrimitive,

source§

impl<S> HashGen<S> for Point2<S>
where S: Float + FromPrimitive,

source§

impl<S> HashGen<S> for Point3<S>
where S: Float + FromPrimitive,

source§

impl<S> HashGen<S> for Vector1<S>
where S: Float + FromPrimitive,

source§

impl<S> HashGen<S> for Vector2<S>
where S: Float + FromPrimitive,

source§

impl<S> HashGen<S> for Vector3<S>
where S: Float + FromPrimitive,

source§

impl<S> HashGen<S> for Vector4<S>
where S: Float + FromPrimitive,

source§

impl<S> HashGen<S> for S
where S: Float + FromPrimitive,