@@ -55,14 +55,14 @@ pub mod rustrt {
55
55
* to the `seek` method defined on the `Reader` trait.
56
56
*
57
57
* There are three seek styles:
58
- *
58
+ *
59
59
* 1. `SeekSet` means that the new position should become our position.
60
60
* 2. `SeekCur` means that we should seek from the current position.
61
61
* 3. `SeekEnd` means that we should seek from the end.
62
62
*
63
63
* # Examples
64
- *
65
- * None right now.
64
+ *
65
+ * None right now.
66
66
*/
67
67
pub enum SeekStyle { SeekSet , SeekEnd , SeekCur , }
68
68
@@ -71,8 +71,8 @@ pub enum SeekStyle { SeekSet, SeekEnd, SeekCur, }
71
71
* The core Reader trait. All readers must implement this trait.
72
72
*
73
73
* # Examples
74
- *
75
- * None right now.
74
+ *
75
+ * None right now.
76
76
*/
77
77
pub trait Reader {
78
78
// FIXME (#2004): Seekable really should be orthogonal.
@@ -82,14 +82,14 @@ pub trait Reader {
82
82
* Reads bytes and puts them into `bytes`. Returns the number of
83
83
* bytes read.
84
84
*
85
- * The number of bytes to be read is `len` or the end of the file,
85
+ * The number of bytes to be read is `len` or the end of the file,
86
86
* whichever comes first.
87
87
*
88
88
* The buffer must be at least `len` bytes long.
89
89
*
90
90
* # Examples
91
- *
92
- * None right now.
91
+ *
92
+ * None right now.
93
93
*/
94
94
fn read ( & self , bytes : & mut [ u8 ] , len : uint ) -> uint ;
95
95
@@ -99,38 +99,38 @@ pub trait Reader {
99
99
* In the case of an EOF or an error, returns a negative value.
100
100
*
101
101
* # Examples
102
- *
103
- * None right now.
102
+ *
103
+ * None right now.
104
104
*/
105
105
fn read_byte ( & self ) -> int ;
106
106
107
107
/**
108
108
* Returns a boolean value: are we currently at EOF?
109
109
*
110
110
* # Examples
111
- *
112
- * None right now.
111
+ *
112
+ * None right now.
113
113
*/
114
114
fn eof ( & self ) -> bool ;
115
115
116
116
/**
117
117
* Seek to a given `position` in the stream.
118
- *
118
+ *
119
119
* Takes an optional SeekStyle, which affects how we seek from the
120
120
* position. See `SeekStyle` docs for more details.
121
121
*
122
122
* # Examples
123
- *
124
- * None right now.
123
+ *
124
+ * None right now.
125
125
*/
126
126
fn seek ( & self , position : int , style : SeekStyle ) ;
127
127
128
128
/**
129
129
* Returns the current position within the stream.
130
130
*
131
131
* # Examples
132
- *
133
- * None right now.
132
+ *
133
+ * None right now.
134
134
*/
135
135
fn tell ( & self ) -> uint ;
136
136
}
0 commit comments