API: Update ArrayExt's methods to expose slices instead of pointers

This is a nicer and simpler interface to expose, since the ref to uninit
array to pointer cast is not usable anyway (it's historic now, arrayvec
itself does not use it anymore).
This commit is contained in:
bluss
2019-07-10 18:13:06 +02:00
parent 6ed5b7b67f
commit f2aad9f9a7
3 changed files with 8 additions and 23 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ impl<A: Array> ArrayVec<A> {
/// assert_eq!(array.capacity(), 3);
/// ```
#[inline]
pub fn capacity(&self) -> usize { A::capacity() }
pub fn capacity(&self) -> usize { A::CAPACITY }
/// Return if the `ArrayVec` is completely filled.
///