pub struct AccessList<'a> { /* private fields */ }Expand description
Borrowed EIP-2930 access list.
Implementations§
Source§impl<'a> AccessList<'a>
impl<'a> AccessList<'a>
Sourcepub const fn address_count(self) -> usize
pub const fn address_count(self) -> usize
Returns the number of address entries.
Sourcepub const fn storage_key_count(self) -> usize
pub const fn storage_key_count(self) -> usize
Returns the total number of storage keys across all entries.
Sourcepub const fn entries(self) -> AccessListEntries<'a> ⓘ
pub const fn entries(self) -> AccessListEntries<'a> ⓘ
Returns an iterator over access-list entries.
The transaction decoder validates every access-list entry before returning this borrowed model. Iterating re-parses the same bounded RLP bytes so callers can use zero-copy access without storing decoded entries.
Trait Implementations§
Source§impl<'a> Clone for AccessList<'a>
impl<'a> Clone for AccessList<'a>
Source§fn clone(&self) -> AccessList<'a>
fn clone(&self) -> AccessList<'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 AccessList<'a>
Source§impl<'a> Debug for AccessList<'a>
impl<'a> Debug for AccessList<'a>
impl<'a> Eq for AccessList<'a>
Source§impl<'a> PartialEq for AccessList<'a>
impl<'a> PartialEq for AccessList<'a>
Source§fn eq(&self, other: &AccessList<'a>) -> bool
fn eq(&self, other: &AccessList<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for AccessList<'a>
Auto Trait Implementations§
impl<'a> Freeze for AccessList<'a>
impl<'a> RefUnwindSafe for AccessList<'a>
impl<'a> Send for AccessList<'a>
impl<'a> Sync for AccessList<'a>
impl<'a> Unpin for AccessList<'a>
impl<'a> UnsafeUnpin for AccessList<'a>
impl<'a> UnwindSafe for AccessList<'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