Skip to content

Commit

Permalink
slice: Use doc(hidden) on private traits
Browse files Browse the repository at this point in the history
This should avoid the trait impls showing up in rustdoc.
  • Loading branch information
bluss committed Apr 6, 2016
1 parent 28c4d12 commit a6c27be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libcore/slice.rs
Expand Up @@ -1672,6 +1672,7 @@ impl<T: PartialOrd> PartialOrd for [T] {
}
}

#[doc(hidden)]
// intermediate trait for specialization of slice's PartialEq
trait SlicePartialEq<B> {
fn equal(&self, other: &[B]) -> bool;
Expand Down Expand Up @@ -1731,6 +1732,7 @@ impl<A> SlicePartialEq<A> for [A]
}
}

#[doc(hidden)]
// intermediate trait for specialization of slice's PartialOrd
trait SlicePartialOrd<B> {
fn partial_compare(&self, other: &[B]) -> Option<Ordering>;
Expand Down Expand Up @@ -1765,6 +1767,7 @@ impl SlicePartialOrd<u8> for [u8] {
}
}

#[doc(hidden)]
// intermediate trait for specialization of slice's Ord
trait SliceOrd<B> {
fn compare(&self, other: &[B]) -> Ordering;
Expand Down Expand Up @@ -1811,6 +1814,7 @@ impl SliceOrd<u8> for [u8] {
}
}

#[doc(hidden)]
/// Trait implemented for types that can be compared for equality using
/// their bytewise representation
trait BytewiseEquality { }
Expand Down

0 comments on commit a6c27be

Please sign in to comment.