pub struct ViewRlp<'a> {
    pub rlp: Rlp<'a>,
    /* private fields */
}
Expand description

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

rlp: Rlp<'a>

Wrapped Rlp, expected to be valid

Implementations

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

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

Returns raw rlp bytes

Trait Implementations

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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.