Struct block::Block
[−]
[src]
pub struct Block { pub header: Header, pub transactions: Vec<Transaction>, pub ommers: Vec<Header>, }
Fields
header: Header
transactions: Vec<Transaction>
ommers: Vec<Header>
Methods
impl Block
[src]
fn is_basic_valid(&self) -> bool
[src]
Trait Implementations
impl Clone for Block
[src]
fn clone(&self) -> Block
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Block
[src]
impl PartialEq for Block
[src]
fn eq(&self, __arg_0: &Block) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Block) -> bool
[src]
This method tests for !=
.
impl Eq for Block
[src]
impl Encodable for Block
[src]
fn rlp_append(&self, s: &mut RlpStream)
[src]
Append a value to the stream
fn rlp_bytes(&self) -> ElasticArray1024<u8>
[src]
Get rlp-encoded bytes for this instance
impl Decodable for Block
[src]
fn decode(rlp: &UntrustedRlp) -> Result<Self, DecoderError>
[src]
Decode a value from RLP bytes