From e355c9eb314360aaa47afc71b1f15b4e9590d2c4 Mon Sep 17 00:00:00 2001 From: bluss Date: Sun, 25 Nov 2018 09:32:29 +0100 Subject: [PATCH] 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. --- src/array.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/array.rs b/src/array.rs index 5fcc9c5..4f099a6 100644 --- a/src/array.rs +++ b/src/array.rs @@ -77,10 +77,13 @@ macro_rules! fix_array_impl { unsafe impl Array for [T; $len] { type Item = T; type Index = $index_type; + #[doc(hidden)] #[inline(always)] fn as_ptr(&self) -> *const T { self as *const _ as *const _ } + #[doc(hidden)] #[inline(always)] fn as_mut_ptr(&mut self) -> *mut T { self as *mut _ as *mut _} + #[doc(hidden)] #[inline(always)] fn capacity() -> usize { $len } }