Skip to content

Commit

Permalink
Merge pull request #52 from ewasm/types
Browse files Browse the repository at this point in the history
Derive Debug/PartialEq/Eq on types
  • Loading branch information
axic authored May 28, 2019
2 parents 083b5b8 + ead7812 commit 2fff902
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/types.rs
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
/// A little-endian unsigned 128-bit integer.
#[derive(Default, Copy, Clone)]
#[derive(Default, Copy, Clone, Debug, PartialEq, Eq)]
pub struct Uint128 {
pub bytes: [u8; 16],
}

/// A little-endian unsigned 256-bit integer.
#[derive(Default, Copy, Clone)]
#[derive(Default, Copy, Clone, Debug, PartialEq, Eq)]
pub struct Uint256 {
pub bytes: [u8; 32],
}

/// An array of 160 bits.
#[derive(Default, Copy, Clone)]
#[derive(Default, Copy, Clone, Debug, PartialEq, Eq)]
pub struct Bytes20 {
pub bytes: [u8; 20],
}

/// An array of 256 bits.
#[derive(Default, Copy, Clone)]
#[derive(Default, Copy, Clone, Debug, PartialEq, Eq)]
pub struct Bytes32 {
pub bytes: [u8; 32],
}
Expand Down

0 comments on commit 2fff902

Please sign in to comment.