Struct rlp::Rlp [] [src]

pub struct Rlp<'a> { /* fields omitted */ }

Data-oriented view onto trusted rlp-slice.

Unlikely to UntrustedRlp doesn't bother you with error handling. It assumes that you know what you are doing.

Methods

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

Decode into an object

Decode list item at given index into an object

Trait Implementations

impl<'a> From<UntrustedRlp<'a>> for Rlp<'a>
[src]

Performs the conversion.

impl<'a> Debug for Rlp<'a>
[src]

Formats the value using the given formatter.

impl<'a> Display for Rlp<'a>
[src]

Formats the value using the given formatter.

impl<'a, 'view> View<'a, 'view> for Rlp<'a> where 'a: 'view
[src]

RLP prototype type

Payload info type

Data type

Item type

Iterator type

Create a new instance of Rlp

The raw data of the RLP as slice. Read more

Get the prototype of the RLP.

Get payload info.

Get underlieing data.

Returns number of RLP items. Read more

Returns the number of bytes in the data, or zero if it isn't data. Read more

Get view onto RLP-slice at index. Read more

No value Read more

Contains a zero-length string or zero-length list. Read more

List value Read more

String value Read more

Int value Read more

Get iterator over rlp-slices Read more

Decode data into an object

Decode data at given list index into an object

impl<'a, 'view> IntoIterator for &'view Rlp<'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