use ::arrayvec::ArrayVec; pub trait ArrayVecExt { fn extend_from_slice(&mut self, other: &[T]) -> &mut Self; } impl ArrayVecExt for ArrayVec { #[inline] fn extend_from_slice(&mut self, other: &[T]) -> &mut Self { self.try_extend_from_slice(other) .expect("Insufficient buffer capacity to extend from slice"); self } }