pub struct BlobVersionedHashes<'a> { /* private fields */ }Expand description
Borrowed EIP-4844 blob versioned hash list.
Implementations§
Source§impl<'a> BlobVersionedHashes<'a>
impl<'a> BlobVersionedHashes<'a>
Sourcepub const fn is_empty(self) -> bool
pub const fn is_empty(self) -> bool
Returns true when the list is empty.
EIP-4844 execution validation requires at least one blob hash. This syntactic decoder intentionally leaves that fork-validity check to a later validation state.
Sourcepub const fn hashes(self) -> BlobVersionedHashItems<'a> ⓘ
pub const fn hashes(self) -> BlobVersionedHashItems<'a> ⓘ
Returns an iterator over blob versioned hashes.
The transaction decoder validates every hash length before returning this borrowed model. Iterating re-parses the same bounded RLP bytes so callers can use zero-copy access without storing decoded hashes.
Trait Implementations§
Source§impl<'a> Clone for BlobVersionedHashes<'a>
impl<'a> Clone for BlobVersionedHashes<'a>
Source§fn clone(&self) -> BlobVersionedHashes<'a>
fn clone(&self) -> BlobVersionedHashes<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for BlobVersionedHashes<'a>
Source§impl<'a> Debug for BlobVersionedHashes<'a>
impl<'a> Debug for BlobVersionedHashes<'a>
impl<'a> Eq for BlobVersionedHashes<'a>
Source§impl<'a> PartialEq for BlobVersionedHashes<'a>
impl<'a> PartialEq for BlobVersionedHashes<'a>
Source§fn eq(&self, other: &BlobVersionedHashes<'a>) -> bool
fn eq(&self, other: &BlobVersionedHashes<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for BlobVersionedHashes<'a>
Auto Trait Implementations§
impl<'a> Freeze for BlobVersionedHashes<'a>
impl<'a> RefUnwindSafe for BlobVersionedHashes<'a>
impl<'a> Send for BlobVersionedHashes<'a>
impl<'a> Sync for BlobVersionedHashes<'a>
impl<'a> Unpin for BlobVersionedHashes<'a>
impl<'a> UnsafeUnpin for BlobVersionedHashes<'a>
impl<'a> UnwindSafe for BlobVersionedHashes<'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