Skip to content

Commit 6714e7a

Browse files
authored
make PayloadView public (#20)
1 parent 85bfc46 commit 6714e7a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

crates/rlp/src/header.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,9 @@ impl Header {
162162

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

crates/rlp/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub use encode::{
3333
};
3434

3535
mod header;
36-
pub use header::Header;
36+
pub use header::{Header, PayloadView};
3737

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

0 commit comments

Comments
 (0)