Skip to content

Commit

Permalink
Add Debug impls for Results (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrigorenkoPV authored Jan 20, 2024
1 parent 979fd50 commit 8683f93
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// The result of a coding operation on a pair of buffer.
#[must_use = "Contains a status with potential error information"]
#[derive(Debug)]
pub struct BufferResult {
/// The number of bytes consumed from the input buffer.
pub consumed_in: usize,
Expand All @@ -11,6 +12,7 @@ pub struct BufferResult {

/// The result of a coding operation into a vector.
#[must_use = "Contains a status with potential error information"]
#[derive(Debug)]
pub struct VectorResult {
/// The number of bytes consumed from the input buffer.
pub consumed_in: usize,
Expand All @@ -23,6 +25,7 @@ pub struct VectorResult {
/// The result of coding into an output stream.
#[cfg(feature = "std")]
#[must_use = "Contains a status with potential error information"]
#[derive(Debug)]
pub struct StreamResult {
/// The total number of bytes consumed from the reader.
pub bytes_read: usize,
Expand Down

0 comments on commit 8683f93

Please sign in to comment.