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:
@@ -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 }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user