Skip to content

Commit e355c9e

Browse files
committed
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.
1 parent 9d1ede6 commit e355c9e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/array.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,13 @@ macro_rules! fix_array_impl {
7777
unsafe impl<T> Array for [T; $len] {
7878
type Item = T;
7979
type Index = $index_type;
80+
#[doc(hidden)]
8081
#[inline(always)]
8182
fn as_ptr(&self) -> *const T { self as *const _ as *const _ }
83+
#[doc(hidden)]
8284
#[inline(always)]
8385
fn as_mut_ptr(&mut self) -> *mut T { self as *mut _ as *mut _}
86+
#[doc(hidden)]
8487
#[inline(always)]
8588
fn capacity() -> usize { $len }
8689
}

0 commit comments

Comments
 (0)