Hide private traits

They show up in docs even though they shouldn't
This commit is contained in:
Steven Fackler 2014-01-23 23:25:57 -08:00
parent 1ecd8d5d29
commit 10757bb255
4 changed files with 8 additions and 0 deletions

View File

@ -118,6 +118,7 @@ pub enum FrontendMessage<'a> {
Terminate
}
#[doc(hidden)]
trait WriteCStr {
fn write_cstr(&mut self, s: &str);
}
@ -129,6 +130,7 @@ impl<W: Writer> WriteCStr for W {
}
}
#[doc(hidden)]
pub trait WriteMessage {
fn write_message(&mut self, &FrontendMessage);
}
@ -235,6 +237,7 @@ impl<W: Writer> WriteMessage for W {
}
}
#[doc(hidden)]
trait ReadCStr {
fn read_cstr(&mut self) -> ~str;
}
@ -247,6 +250,7 @@ impl<R: Buffer> ReadCStr for R {
}
}
#[doc(hidden)]
pub trait ReadMessage {
fn read_message(&mut self) -> BackendMessage;
}

View File

@ -55,6 +55,7 @@ pub trait MutableArray<T> : Array<T> {
}
}
#[doc(hidden)]
trait InternalArray<T> : Array<T> {
fn shift_idx(&self, idx: int) -> uint {
let shifted_idx = idx - self.dimension_info()[0].lower_bound;

View File

@ -239,6 +239,7 @@ pub trait FromSql {
fn from_sql(ty: &PostgresType, raw: &Option<~[u8]>) -> Self;
}
#[doc(hidden)]
trait RawFromSql {
fn raw_from_sql<R: Reader>(len: uint, raw: &mut R) -> Self;
}
@ -482,6 +483,7 @@ pub trait ToSql {
fn to_sql(&self, ty: &PostgresType) -> (Format, Option<~[u8]>);
}
#[doc(hidden)]
trait RawToSql {
fn raw_to_sql<W: Writer>(&self, w: &mut W);
}

View File

@ -134,6 +134,7 @@ enum BoundSide {
Lower
}
#[doc(hidden)]
trait BoundSided {
// param is a hack to get around lack of hints for self type
fn side(_: Option<Self>) -> BoundSide;