Struct rlp::Rlp [−][src]
pub struct Rlp<'a> { /* fields omitted */ }
Expand description
Data-oriented view onto rlp-slice.
This is an immutable structure. No operations change it.
Should be used in places where, error handling is required, eg. on input
Implementations
Returns an Rlp item in a list at the given index.
Returns an error if this Rlp is not a list or if the index is out of range.
pub fn at_with_offset<'view>(
&'view self,
index: usize
) -> Result<(Rlp<'a>, usize), DecoderError> where
'a: 'view,
pub fn at_with_offset<'view>(
&'view self,
index: usize
) -> Result<(Rlp<'a>, usize), DecoderError> where
'a: 'view,
Returns an Rlp item in a list at the given index along with the byte offset into the raw data slice.
Returns an error if this Rlp is not a list or if the index is out of range.
pub fn iter<'view>(&'view self) -> RlpIterator<'a, 'view>ⓘNotable traits for RlpIterator<'a, 'view>impl<'a, 'view> Iterator for RlpIterator<'a, 'view> type Item = Rlp<'a>;
where
'a: 'view,
Notable traits for RlpIterator<'a, 'view>
impl<'a, 'view> Iterator for RlpIterator<'a, 'view> type Item = Rlp<'a>;
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Rlp<'a>
impl<'a> UnwindSafe for Rlp<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more