Provide Debug impls for all types

This commit is contained in:
Carl Lerche
2017-03-07 10:20:58 -08:00
parent 933b8b26f6
commit d70f575afd
6 changed files with 6 additions and 1 deletions
+1
View File
@@ -26,6 +26,7 @@ use iovec::IoVec;
/// [`Buf::chain`]: trait.Buf.html#method.chain
/// [`Buf`]: trait.Buf.html
/// [`BufMut`]: trait.BufMut.html
#[derive(Debug)]
pub struct Chain<T, U> {
a: T,
b: U,
+1
View File
@@ -22,6 +22,7 @@ use Buf;
///
/// [`iter`]: trait.Buf.html#method.iter
/// [`Buf`]: trait.Buf.html
#[derive(Debug)]
pub struct Iter<T> {
inner: T,
}
+1
View File
@@ -7,6 +7,7 @@ use std::{cmp, io};
/// This struct is generally created by calling `reader()` on `Buf`. See
/// documentation of [`reader()`](trait.Buf.html#method.reader) for more
/// details.
#[derive(Debug)]
pub struct Reader<B> {
buf: B,
}
+1
View File
@@ -6,6 +6,7 @@ use std::cmp;
///
/// This struct is generally created by calling `take()` on `Buf`. See
/// documentation of [`take()`](trait.Buf.html#method.take) for more details.
#[derive(Debug)]
pub struct Take<T> {
inner: T,
limit: usize,
+1
View File
@@ -7,6 +7,7 @@ use std::{cmp, io};
/// This struct is generally created by calling `writer()` on `BufMut`. See
/// documentation of [`writer()`](trait.BufMut.html#method.writer) for more
/// details.
#[derive(Debug)]
pub struct Writer<B> {
buf: B,
}
+1 -1
View File
@@ -68,7 +68,7 @@
//! perform a syscall, which has the potential of failing. Operations on `Buf`
//! and `BufMut` are infallible.
#![deny(warnings, missing_docs)]
#![deny(warnings, missing_docs, missing_debug_implementations)]
#![doc(html_root_url = "https://docs.rs/bytes/0.4")]
extern crate byteorder;