mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-23 00:00:13 +02:00
Provide Debug impls for all types
This commit is contained in:
@@ -26,6 +26,7 @@ use iovec::IoVec;
|
|||||||
/// [`Buf::chain`]: trait.Buf.html#method.chain
|
/// [`Buf::chain`]: trait.Buf.html#method.chain
|
||||||
/// [`Buf`]: trait.Buf.html
|
/// [`Buf`]: trait.Buf.html
|
||||||
/// [`BufMut`]: trait.BufMut.html
|
/// [`BufMut`]: trait.BufMut.html
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct Chain<T, U> {
|
pub struct Chain<T, U> {
|
||||||
a: T,
|
a: T,
|
||||||
b: U,
|
b: U,
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ use Buf;
|
|||||||
///
|
///
|
||||||
/// [`iter`]: trait.Buf.html#method.iter
|
/// [`iter`]: trait.Buf.html#method.iter
|
||||||
/// [`Buf`]: trait.Buf.html
|
/// [`Buf`]: trait.Buf.html
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct Iter<T> {
|
pub struct Iter<T> {
|
||||||
inner: T,
|
inner: T,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ use std::{cmp, io};
|
|||||||
/// This struct is generally created by calling `reader()` on `Buf`. See
|
/// This struct is generally created by calling `reader()` on `Buf`. See
|
||||||
/// documentation of [`reader()`](trait.Buf.html#method.reader) for more
|
/// documentation of [`reader()`](trait.Buf.html#method.reader) for more
|
||||||
/// details.
|
/// details.
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct Reader<B> {
|
pub struct Reader<B> {
|
||||||
buf: B,
|
buf: B,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ use std::cmp;
|
|||||||
///
|
///
|
||||||
/// This struct is generally created by calling `take()` on `Buf`. See
|
/// This struct is generally created by calling `take()` on `Buf`. See
|
||||||
/// documentation of [`take()`](trait.Buf.html#method.take) for more details.
|
/// documentation of [`take()`](trait.Buf.html#method.take) for more details.
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct Take<T> {
|
pub struct Take<T> {
|
||||||
inner: T,
|
inner: T,
|
||||||
limit: usize,
|
limit: usize,
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ use std::{cmp, io};
|
|||||||
/// This struct is generally created by calling `writer()` on `BufMut`. See
|
/// This struct is generally created by calling `writer()` on `BufMut`. See
|
||||||
/// documentation of [`writer()`](trait.BufMut.html#method.writer) for more
|
/// documentation of [`writer()`](trait.BufMut.html#method.writer) for more
|
||||||
/// details.
|
/// details.
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct Writer<B> {
|
pub struct Writer<B> {
|
||||||
buf: B,
|
buf: B,
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -68,7 +68,7 @@
|
|||||||
//! perform a syscall, which has the potential of failing. Operations on `Buf`
|
//! perform a syscall, which has the potential of failing. Operations on `Buf`
|
||||||
//! and `BufMut` are infallible.
|
//! 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")]
|
#![doc(html_root_url = "https://docs.rs/bytes/0.4")]
|
||||||
|
|
||||||
extern crate byteorder;
|
extern crate byteorder;
|
||||||
|
|||||||
Reference in New Issue
Block a user