trait ArrayOrd {
type Item: Copy;
// Required methods
fn len(&self) -> usize;
unsafe fn value_unchecked(&self, idx: usize) -> Self::Item;
fn is_eq(l: Self::Item, r: Self::Item) -> bool;
fn is_lt(l: Self::Item, r: Self::Item) -> bool;
// Provided method
fn value(&self, idx: usize) -> Self::Item { ... }
}Required Associated Types§
Required Methods§
fn len(&self) -> usize
Sourceunsafe fn value_unchecked(&self, idx: usize) -> Self::Item
unsafe fn value_unchecked(&self, idx: usize) -> Self::Item
§Safety
Safe if idx < self.len()
fn is_eq(l: Self::Item, r: Self::Item) -> bool
fn is_lt(l: Self::Item, r: Self::Item) -> bool
Provided Methods§
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<'a, T: ByteViewType> ArrayOrd for &'a GenericByteViewArray<T>
impl<'a, T: ByteViewType> ArrayOrd for &'a GenericByteViewArray<T>
Source§type Item = (&'a GenericByteViewArray<T>, usize)
type Item = (&'a GenericByteViewArray<T>, usize)
This is the item type for the GenericByteViewArray::compare Item.0 is the array, Item.1 is the index