Struct rlp::UntrustedRlp [] [src]

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

Data-oriented view onto rlp-slice.

This is immutable structere. No operations change it.

Should be used in places where, error handling is required, eg. on input

Trait Implementations

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

Formats the value using the given formatter.

impl<'a> Clone for UntrustedRlp<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter.

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

RLP prototype type

Payload info type

Data type

Item type

Iterator type

Creates a new instance of Rlp reader

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 UntrustedRlp<'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

impl<'a> Compressible for UntrustedRlp<'a>
[src]

Indicates the origin of RLP to be compressed.

Compress given RLP type using appropriate methods.

Decompress given RLP type using appropriate methods.