Skip to main content

Vectorized

Trait Vectorized 

Source
pub trait Vectorized {
    type Output;

    // 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".

Implementations on Foreign Types§

Source§

impl Vectorized for &Vec<f32>

Source§

type Output = f32

Source§

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

Source§

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

Source§

impl Vectorized for &Vec<f64>

Source§

type Output = f64

Source§

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

Source§

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

Source§

impl Vectorized for &[f32]

Source§

type Output = f32

Source§

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

Source§

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

Source§

impl Vectorized for &[f64]

Source§

type Output = f64

Source§

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

Source§

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

Implementors§