@@ -96,10 +96,10 @@ impl Reader for @Reader {
96
96
/**
97
97
* The `ReaderUtil` trait is a home for many of the utility functions
98
98
* a particular Reader should implement.
99
- *
99
+ *
100
100
* The default `Reader` trait is focused entirely on bytes. `ReaderUtil` is based
101
101
* on higher-level concepts like 'chars' and 'lines.'
102
- *
102
+ *
103
103
* # Examples:
104
104
*
105
105
* None right now.
@@ -117,7 +117,7 @@ pub trait ReaderUtil {
117
117
118
118
/**
119
119
* Reads up until a specific character or EOF.
120
- *
120
+ *
121
121
* The `include` parameter specifies if the character should be included
122
122
* in the returned string.
123
123
*
@@ -129,7 +129,7 @@ pub trait ReaderUtil {
129
129
130
130
/**
131
131
* Reads up until the first '\n' or EOF.
132
- *
132
+ *
133
133
* The '\n' is not included in the result.
134
134
*
135
135
* # Examples
@@ -140,9 +140,9 @@ pub trait ReaderUtil {
140
140
141
141
/**
142
142
* Reads `n` chars.
143
- *
143
+ *
144
144
* Assumes that those chars are UTF-8 encoded.
145
- *
145
+ *
146
146
* The '\n' is not included in the result.
147
147
*
148
148
* # Examples
@@ -209,7 +209,7 @@ pub trait ReaderUtil {
209
209
210
210
/**
211
211
* Reads all of the lines in the stream.
212
- *
212
+ *
213
213
* Returns a vector of those lines.
214
214
*
215
215
* # Examples
@@ -220,9 +220,9 @@ pub trait ReaderUtil {
220
220
221
221
/**
222
222
* Reads `n` little-endian unsigned integer bytes.
223
- *
223
+ *
224
224
* `n` must be between 1 and 8, inclusive.
225
- *
225
+ *
226
226
* # Examples
227
227
*
228
228
* None right now.
@@ -231,9 +231,9 @@ pub trait ReaderUtil {
231
231
232
232
/**
233
233
* Reads `n` little-endian signed integer bytes.
234
- *
234
+ *
235
235
* `n` must be between 1 and 8, inclusive.
236
- *
236
+ *
237
237
* # Examples
238
238
*
239
239
* None right now.
@@ -242,9 +242,9 @@ pub trait ReaderUtil {
242
242
243
243
/**
244
244
* Reads `n` big-endian unsigned integer bytes.
245
- *
245
+ *
246
246
* `n` must be between 1 and 8, inclusive.
247
- *
247
+ *
248
248
* # Examples
249
249
*
250
250
* None right now.
@@ -253,9 +253,9 @@ pub trait ReaderUtil {
253
253
254
254
/**
255
255
* Reads `n` big-endian signed integer bytes.
256
- *
256
+ *
257
257
* `n` must be between 1 and 8, inclusive.
258
- *
258
+ *
259
259
* # Examples
260
260
*
261
261
* None right now.
@@ -264,9 +264,9 @@ pub trait ReaderUtil {
264
264
265
265
/**
266
266
* Reads a little-endian unsigned integer.
267
- *
267
+ *
268
268
* The number of bytes returned is system-dependant.
269
- *
269
+ *
270
270
* # Examples
271
271
*
272
272
* None right now.
@@ -275,9 +275,9 @@ pub trait ReaderUtil {
275
275
276
276
/**
277
277
* Reads a little-endian integer.
278
- *
278
+ *
279
279
* The number of bytes returned is system-dependant.
280
- *
280
+ *
281
281
* # Examples
282
282
*
283
283
* None right now.
@@ -286,9 +286,9 @@ pub trait ReaderUtil {
286
286
287
287
/**
288
288
* Reads a big-endian unsigned integer.
289
- *
289
+ *
290
290
* The number of bytes returned is system-dependant.
291
- *
291
+ *
292
292
* # Examples
293
293
*
294
294
* None right now.
@@ -297,9 +297,9 @@ pub trait ReaderUtil {
297
297
298
298
/**
299
299
* Reads a big-endian integer.
300
- *
300
+ *
301
301
* The number of bytes returned is system-dependant.
302
- *
302
+ *
303
303
* # Examples
304
304
*
305
305
* None right now.
@@ -308,9 +308,9 @@ pub trait ReaderUtil {
308
308
309
309
/**
310
310
* Reads a big-endian `u64`.
311
- *
311
+ *
312
312
* `u64`s are 8 bytes long.
313
- *
313
+ *
314
314
* # Examples
315
315
*
316
316
* None right now.
@@ -319,9 +319,9 @@ pub trait ReaderUtil {
319
319
320
320
/**
321
321
* Reads a big-endian `u32`.
322
- *
322
+ *
323
323
* `u32`s are 4 bytes long.
324
- *
324
+ *
325
325
* # Examples
326
326
*
327
327
* None right now.
@@ -330,9 +330,9 @@ pub trait ReaderUtil {
330
330
331
331
/**
332
332
* Reads a big-endian `u16`.
333
- *
333
+ *
334
334
* `u16`s are 2 bytes long.
335
- *
335
+ *
336
336
* # Examples
337
337
*
338
338
* None right now.
@@ -341,9 +341,9 @@ pub trait ReaderUtil {
341
341
342
342
/**
343
343
* Reads a big-endian `i64`.
344
- *
344
+ *
345
345
* `i64`s are 8 bytes long.
346
- *
346
+ *
347
347
* # Examples
348
348
*
349
349
* None right now.
@@ -352,9 +352,9 @@ pub trait ReaderUtil {
352
352
353
353
/**
354
354
* Reads a big-endian `i32`.
355
- *
355
+ *
356
356
* `i32`s are 4 bytes long.
357
- *
357
+ *
358
358
* # Examples
359
359
*
360
360
* None right now.
@@ -363,9 +363,9 @@ pub trait ReaderUtil {
363
363
364
364
/**
365
365
* Reads a big-endian `i16`.
366
- *
366
+ *
367
367
* `i16`s are 2 bytes long.
368
- *
368
+ *
369
369
* # Examples
370
370
*
371
371
* None right now.
@@ -374,9 +374,9 @@ pub trait ReaderUtil {
374
374
375
375
/**
376
376
* Reads a big-endian `f64`.
377
- *
377
+ *
378
378
* `f64`s are 8 byte, IEEE754 double-precision floating point numbers.
379
- *
379
+ *
380
380
* # Examples
381
381
*
382
382
* None right now.
@@ -385,9 +385,9 @@ pub trait ReaderUtil {
385
385
386
386
/**
387
387
* Reads a big-endian `f32`.
388
- *
388
+ *
389
389
* `f32`s are 4 byte, IEEE754 single-precision floating point numbers.
390
- *
390
+ *
391
391
* # Examples
392
392
*
393
393
* None right now.
@@ -396,9 +396,9 @@ pub trait ReaderUtil {
396
396
397
397
/**
398
398
* Reads a little-endian `u64`.
399
- *
399
+ *
400
400
* `u64`s are 8 bytes long.
401
- *
401
+ *
402
402
* # Examples
403
403
*
404
404
* None right now.
@@ -407,9 +407,9 @@ pub trait ReaderUtil {
407
407
408
408
/**
409
409
* Reads a little-endian `u32`.
410
- *
410
+ *
411
411
* `u32`s are 4 bytes long.
412
- *
412
+ *
413
413
* # Examples
414
414
*
415
415
* None right now.
@@ -418,9 +418,9 @@ pub trait ReaderUtil {
418
418
419
419
/**
420
420
* Reads a little-endian `u16`.
421
- *
421
+ *
422
422
* `u16`s are 2 bytes long.
423
- *
423
+ *
424
424
* # Examples
425
425
*
426
426
* None right now.
@@ -429,9 +429,9 @@ pub trait ReaderUtil {
429
429
430
430
/**
431
431
* Reads a little-endian `i64`.
432
- *
432
+ *
433
433
* `i64`s are 8 bytes long.
434
- *
434
+ *
435
435
* # Examples
436
436
*
437
437
* None right now.
@@ -440,9 +440,9 @@ pub trait ReaderUtil {
440
440
441
441
/**
442
442
* Reads a little-endian `i32`.
443
- *
443
+ *
444
444
* `i32`s are 4 bytes long.
445
- *
445
+ *
446
446
* # Examples
447
447
*
448
448
* None right now.
@@ -451,9 +451,9 @@ pub trait ReaderUtil {
451
451
452
452
/**
453
453
* Reads a little-endian `i16`.
454
- *
454
+ *
455
455
* `i16`s are 2 bytes long.
456
- *
456
+ *
457
457
* # Examples
458
458
*
459
459
* None right now.
@@ -462,9 +462,9 @@ pub trait ReaderUtil {
462
462
463
463
/**
464
464
* Reads a little-endian `f64`.
465
- *
465
+ *
466
466
* `f64`s are 8 byte, IEEE754 double-precision floating point numbers.
467
- *
467
+ *
468
468
* # Examples
469
469
*
470
470
* None right now.
@@ -473,31 +473,31 @@ pub trait ReaderUtil {
473
473
474
474
/**
475
475
* Reads a little-endian `f32`.
476
- *
476
+ *
477
477
* `f32`s are 4 byte, IEEE754 single-precision floating point numbers.
478
- *
478
+ *
479
479
* # Examples
480
480
*
481
481
* None right now.
482
482
*/
483
483
fn read_le_f32 ( & self ) -> f32 ;
484
484
485
485
/**
486
- * Read a u8.
487
- *
486
+ * Read a u8.
487
+ *
488
488
* `u8`s are 1 byte.
489
- *
489
+ *
490
490
* # Examples
491
491
*
492
492
* None right now.
493
493
*/
494
494
fn read_u8 ( & self ) -> u8 ;
495
495
496
496
/**
497
- * Read an i8.
498
- *
497
+ * Read an i8.
498
+ *
499
499
* `i8`s are 1 byte.
500
- *
500
+ *
501
501
* # Examples
502
502
*
503
503
* None right now.
0 commit comments