polars_utils::abs_diff

Trait AbsDiff

Source
pub trait AbsDiff {
    type Abs: Num + PartialOrd + Copy + Debug + Send + Sync;

    // Required methods
    fn max_abs_diff() -> Self::Abs;
    fn abs_diff(self, other: Self) -> Self::Abs;
}

Required Associated Types§

Required Methods§

Source

fn max_abs_diff() -> Self::Abs

Source

fn abs_diff(self, other: Self) -> Self::Abs

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 AbsDiff for f32

Source§

type Abs = f32

Source§

fn max_abs_diff() -> Self::Abs

Source§

fn abs_diff(self, other: Self) -> Self::Abs

Source§

impl AbsDiff for f64

Source§

type Abs = f64

Source§

fn max_abs_diff() -> Self::Abs

Source§

fn abs_diff(self, other: Self) -> Self::Abs

Source§

impl AbsDiff for i8

Source§

type Abs = u8

Source§

fn max_abs_diff() -> Self::Abs

Source§

fn abs_diff(self, other: Self) -> Self::Abs

Source§

impl AbsDiff for i16

Source§

type Abs = u16

Source§

fn max_abs_diff() -> Self::Abs

Source§

fn abs_diff(self, other: Self) -> Self::Abs

Source§

impl AbsDiff for i32

Source§

type Abs = u32

Source§

fn max_abs_diff() -> Self::Abs

Source§

fn abs_diff(self, other: Self) -> Self::Abs

Source§

impl AbsDiff for i64

Source§

type Abs = u64

Source§

fn max_abs_diff() -> Self::Abs

Source§

fn abs_diff(self, other: Self) -> Self::Abs

Source§

impl AbsDiff for i128

Source§

type Abs = u128

Source§

fn max_abs_diff() -> Self::Abs

Source§

fn abs_diff(self, other: Self) -> Self::Abs

Source§

impl AbsDiff for isize

Source§

type Abs = usize

Source§

fn max_abs_diff() -> Self::Abs

Source§

fn abs_diff(self, other: Self) -> Self::Abs

Source§

impl AbsDiff for u8

Source§

type Abs = u8

Source§

fn max_abs_diff() -> Self::Abs

Source§

fn abs_diff(self, other: Self) -> Self::Abs

Source§

impl AbsDiff for u16

Source§

type Abs = u16

Source§

fn max_abs_diff() -> Self::Abs

Source§

fn abs_diff(self, other: Self) -> Self::Abs

Source§

impl AbsDiff for u32

Source§

type Abs = u32

Source§

fn max_abs_diff() -> Self::Abs

Source§

fn abs_diff(self, other: Self) -> Self::Abs

Source§

impl AbsDiff for u64

Source§

type Abs = u64

Source§

fn max_abs_diff() -> Self::Abs

Source§

fn abs_diff(self, other: Self) -> Self::Abs

Source§

impl AbsDiff for u128

Source§

type Abs = u128

Source§

fn max_abs_diff() -> Self::Abs

Source§

fn abs_diff(self, other: Self) -> Self::Abs

Source§

impl AbsDiff for usize

Source§

type Abs = usize

Source§

fn max_abs_diff() -> Self::Abs

Source§

fn abs_diff(self, other: Self) -> Self::Abs

Implementors§