pub struct RlpList<'a> { /* private fields */ }Expand description
Borrowed RLP list payload.
Implementations§
Source§impl<'a> RlpList<'a>
impl<'a> RlpList<'a>
Sourcepub const fn encoded_len(self) -> usize
pub const fn encoded_len(self) -> usize
Returns the total encoded list length in bytes.
Sourcepub const fn header_len(self) -> usize
pub const fn header_len(self) -> usize
Returns the RLP header length in bytes.
Sourcepub const fn item_count(self) -> usize
pub const fn item_count(self) -> usize
Returns the number of immediate child items.
Sourcepub const fn form(self) -> RlpListForm
pub const fn form(self) -> RlpListForm
Returns the canonical list form that was decoded.
Sourcepub const fn items(self) -> RlpListItems<'a> ⓘ
pub const fn items(self) -> RlpListItems<'a> ⓘ
Returns an iterator over the immediate child items in this list.
Trait Implementations§
impl<'a> Copy for RlpList<'a>
impl Eq for RlpList<'_>
Auto Trait Implementations§
impl<'a> Freeze for RlpList<'a>
impl<'a> RefUnwindSafe for RlpList<'a>
impl<'a> Send for RlpList<'a>
impl<'a> Sync for RlpList<'a>
impl<'a> Unpin for RlpList<'a>
impl<'a> UnsafeUnpin for RlpList<'a>
impl<'a> UnwindSafe for RlpList<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more