Trait uiua::ArrayCmp

source ·
pub trait ArrayCmp<U = Self> {
    // Required method
    fn array_cmp(&self, other: &U) -> Ordering;

    // Provided method
    fn array_eq(&self, other: &U) -> bool { ... }
}
Expand description

Trait for comparing array elements

Required Methods§

source

fn array_cmp(&self, other: &U) -> Ordering

Compare two elements

Provided Methods§

source

fn array_eq(&self, other: &U) -> bool

Check if two elements are equal

Implementations on Foreign Types§

source§

impl ArrayCmp for char

source§

fn array_cmp(&self, other: &Self) -> Ordering

source§

impl ArrayCmp for f64

source§

fn array_cmp(&self, other: &Self) -> Ordering

source§

impl ArrayCmp for u8

source§

fn array_cmp(&self, other: &Self) -> Ordering

source§

impl ArrayCmp<f64> for u8

source§

fn array_cmp(&self, other: &f64) -> Ordering

source§

impl ArrayCmp<u8> for f64

source§

fn array_cmp(&self, other: &u8) -> Ordering

Implementors§