minivec/
borrow.rs

1use crate::MiniVec;
2
3impl<T> core::borrow::Borrow<[T]> for MiniVec<T> {
4  fn borrow(&self) -> &[T] {
5    &(self[..])
6  }
7}
8
9impl<T> core::borrow::BorrowMut<[T]> for MiniVec<T> {
10  fn borrow_mut(&mut self) -> &mut [T] {
11    &mut (self[..])
12  }
13}