pub trait ArrayCmp<U = Self> { // Required method fn array_cmp(&self, other: &U) -> Ordering; // Provided method fn array_eq(&self, other: &U) -> bool { ... } }
Trait for comparing array elements
Compare two elements
Check if two elements are equal