Skip to content

Commit 3956850

Browse files
committed
libextra: Require documentation by default
1 parent 007651c commit 3956850

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+113
-7
lines changed

src/libextra/arc.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
* ~~~
3838
*/
3939

40+
#[allow(missing_doc)];
41+
4042
use core::prelude::*;
4143

4244
use sync;

src/libextra/arena.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
// overhead when initializing plain-old-data and means we don't need
3333
// to waste time running the destructors of POD.
3434

35+
#[allow(missing_doc)];
36+
3537
use core::prelude::*;
3638

3739
use list::{MutList, MutCons, MutNil};

src/libextra/base64.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ use core::prelude::*;
1515
use core::str;
1616
use core::vec;
1717

18+
/// A trait for converting a value to base64 encoding.
1819
pub trait ToBase64 {
20+
/// Converts the value of `self` to a base64 value, returning the owned
21+
/// string
1922
fn to_base64(&self) -> ~str;
2023
}
2124

@@ -112,6 +115,7 @@ impl<'self> ToBase64 for &'self str {
112115
}
113116
}
114117

118+
#[allow(missing_doc)]
115119
pub trait FromBase64 {
116120
fn from_base64(&self) -> ~[u8];
117121
}

src/libextra/bitv.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,11 @@ enum BitvVariant { Big(~BigBitv), Small(~SmallBitv) }
211211

212212
enum Op {Union, Intersect, Assign, Difference}
213213

214-
// The bitvector type
214+
/// The bitvector type
215215
pub struct Bitv {
216+
/// Internal representation of the bit vector (small or large)
216217
rep: BitvVariant,
218+
/// The number of valid bits in the internal representation
217219
nbits: uint
218220
}
219221

src/libextra/dbg.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
//! Unsafe debugging functions for inspecting values.
1212
13+
#[allow(missing_doc)];
14+
1315
use core::cast::transmute;
1416
use core::sys;
1517

src/libextra/deque.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ use core::vec;
1818

1919
static initial_capacity: uint = 32u; // 2^5
2020

21+
#[allow(missing_doc)]
2122
pub struct Deque<T> {
2223
priv nelts: uint,
2324
priv lo: uint,

src/libextra/dlist.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,15 @@ use core::vec;
2626

2727
pub type DListLink<T> = Option<@mut DListNode<T>>;
2828

29+
#[allow(missing_doc)]
2930
pub struct DListNode<T> {
3031
data: T,
3132
linked: bool, // for assertions
3233
prev: DListLink<T>,
3334
next: DListLink<T>,
3435
}
3536

37+
#[allow(missing_doc)]
3638
pub struct DList<T> {
3739
size: uint,
3840
hd: DListLink<T>,
@@ -106,6 +108,7 @@ pub fn from_elem<T>(data: T) -> @mut DList<T> {
106108
list
107109
}
108110

111+
/// Creates a new dlist from a vector of elements, maintaining the same order
109112
pub fn from_vec<T:Copy>(vec: &[T]) -> @mut DList<T> {
110113
do vec::foldl(DList(), vec) |list,data| {
111114
list.push(*data); // Iterating left-to-right -- add newly to the tail.

src/libextra/ebml.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[allow(missing_doc)];
12+
1113
use core::prelude::*;
1214

1315
// Simple Extensible Binary Markup Language (ebml) reader and writer on a

src/libextra/fileinput.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ total line count).
9494
}
9595
*/
9696

97+
#[allow(missing_doc)];
98+
9799
use core::prelude::*;
98100

99101
use core::io::ReaderUtil;

src/libextra/flate.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Simple compression
1414
1515
*/
1616

17+
#[allow(missing_doc)];
18+
1719
use core::prelude::*;
1820

1921
use core::libc::{c_void, size_t, c_int};

0 commit comments

Comments
 (0)