Struct ethcore::views::ViewRlp [] [src]

pub struct ViewRlp<'a> {
    pub rlp: Rlp<'a>,
    // some fields omitted
}

Wrapper for trusted rlp, which is expected to be valid, for use in views When created with view!, records the file and line where it was created for debugging

Fields

Wrapped Rlp, expected to be valid

Methods

impl<'a, 'view> ViewRlp<'a> where
    'a: 'view, 
[src]

Returns rlp at the given index, panics if no rlp at that index

Returns an iterator over all rlp values

Returns decoded value of this rlp, panics if rlp not valid

Returns decoded value at the given index, panics not present or valid at that index

Important traits for Vec<u8>

Returns decoded list of values, panics if rlp is invalid

Returns the number of items in the rlp, panics if it is not a list of rlp values

Important traits for &'a [u8]

Returns raw rlp bytes

Trait Implementations

impl<'a, 'view> IntoIterator for &'view ViewRlp<'a> where
    'a: 'view, 
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

Auto Trait Implementations

impl<'a> Send for ViewRlp<'a>

impl<'a> !Sync for ViewRlp<'a>