DOC: Hide Array methods on impls

These just clutter up the docs. Most important that the users can see
the list of implemented array sizes, not the methods for each of those.
This commit is contained in:
bluss
2018-11-25 09:32:29 +01:00
parent 9d1ede62ea
commit e355c9eb31
+3
View File
@@ -77,10 +77,13 @@ macro_rules! fix_array_impl {
unsafe impl<T> Array for [T; $len] { unsafe impl<T> Array for [T; $len] {
type Item = T; type Item = T;
type Index = $index_type; type Index = $index_type;
#[doc(hidden)]
#[inline(always)] #[inline(always)]
fn as_ptr(&self) -> *const T { self as *const _ as *const _ } fn as_ptr(&self) -> *const T { self as *const _ as *const _ }
#[doc(hidden)]
#[inline(always)] #[inline(always)]
fn as_mut_ptr(&mut self) -> *mut T { self as *mut _ as *mut _} fn as_mut_ptr(&mut self) -> *mut T { self as *mut _ as *mut _}
#[doc(hidden)]
#[inline(always)] #[inline(always)]
fn capacity() -> usize { $len } fn capacity() -> usize { $len }
} }