Skip to content

Commit

Permalink
make PayloadView public (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wollac authored Jun 28, 2024
1 parent 85bfc46 commit 6714e7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions crates/rlp/src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ impl Header {

/// Structured representation of an RLP payload.
pub enum PayloadView<'a> {
/// Payload is a byte string.
String(&'a [u8]),
/// Payload is a list of RLP encoded data.
List(alloc::vec::Vec<&'a [u8]>),
}

Expand Down
2 changes: 1 addition & 1 deletion crates/rlp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub use encode::{
};

mod header;
pub use header::Header;
pub use header::{Header, PayloadView};

#[doc(no_inline)]
pub use bytes::{self, Buf, BufMut, Bytes, BytesMut};
Expand Down

0 comments on commit 6714e7a

Please sign in to comment.