Struct vec_vp_tree::dist::num::FloatDist [] [src]

pub struct FloatDist;

Implements DistFn for floating-point numbers.

Returns (left - right).abs().round() as u64.

Trait Implementations

impl Copy for FloatDist
[src]

impl Clone for FloatDist
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl DistFn<f32> for FloatDist
[src]

Returns (left - right).abs().round() as u64.

impl DistFn<f64> for FloatDist
[src]

Returns (left - right).abs().round() as u64.