minivec 0.5.0

A version of Vec that's only the size of a single pointer
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::MiniVec;

impl<T: Ord> core::cmp::Ord for MiniVec<T> {
  fn cmp(&self, other: &Self) -> core::cmp::Ordering {
    let x: &[T] = self;
    let y: &[T] = other;

    x.cmp(y)
  }
}