1
Fork 0

Require documentation by default for libstd

Adds documentation for various things that I understand.
Adds #[allow(missing_doc)] for lots of things that I don't understand.
This commit is contained in:
Alex Crichton 2013-05-28 16:35:52 -05:00
parent 4a5d887b58
commit 007651cd26
50 changed files with 699 additions and 69 deletions

View file

@ -303,7 +303,11 @@ impl<A> IterBytes for *const A {
}
}
/// A trait for converting a value to a list of bytes.
pub trait ToBytes {
/// Converts the current value to a list of bytes. This is equivalent to
/// invoking iter_bytes on a type and collecting all yielded values in an
/// array
fn to_bytes(&self, lsb0: bool) -> ~[u8];
}