Trait Naive

Source
pub trait Naive {
    type Output;
    type Ty;

    // Required methods
    fn squared_distance(self, other: Self) -> Self::Output;
    fn distance(self, other: Self) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn squared_distance(self, other: Self) -> Self::Output

Source

fn distance(self, other: Self) -> Self::Output

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.

Implementations on Foreign Types§

Source§

impl Naive for &Vec<f32>

Source§

type Output = f32

Source§

type Ty = f32

Source§

fn squared_distance(self, other: Self) -> f32

Source§

fn distance(self, other: Self) -> f32

Source§

impl Naive for &Vec<f64>

Source§

type Output = f64

Source§

type Ty = f64

Source§

fn squared_distance(self, other: Self) -> f64

Source§

fn distance(self, other: Self) -> f64

Source§

impl Naive for &[f32]

Source§

type Output = f32

Source§

type Ty = f32

Source§

fn squared_distance(self, other: Self) -> f32

Source§

fn distance(self, other: Self) -> f32

Source§

impl Naive for &[f64]

Source§

type Output = f64

Source§

type Ty = f64

Source§

fn squared_distance(self, other: Self) -> f64

Source§

fn distance(self, other: Self) -> f64

Implementors§