Struct ethcore::block::Block
[−]
[src]
pub struct Block { pub header: Header, pub transactions: Vec<UnverifiedTransaction>, pub uncles: Vec<Header>, }
A block, encoded as it is on the block chain.
Fields
header: Header
The header of this block.
transactions: Vec<UnverifiedTransaction>
The transactions in this block.
uncles: Vec<Header>
The uncles of this block.
Methods
impl Block
[src]
impl Block
pub fn is_good(b: &[u8]) -> bool
[src]
pub fn is_good(b: &[u8]) -> bool
Returns true if the given bytes form a valid encoding of a block in RLP.
pub fn rlp_bytes(&self) -> Bytes
[src]
pub fn rlp_bytes(&self) -> Bytes
Get the RLP-encoding of the block with the seal.
Trait Implementations
impl Default for Block
[src]
impl Default for Block
impl Debug for Block
[src]
impl Debug for Block
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Block
[src]
impl Clone for Block
fn clone(&self) -> Block
[src]
fn clone(&self) -> Block
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Block
[src]
impl PartialEq for Block
fn eq(&self, __arg_0: &Block) -> bool
[src]
fn eq(&self, __arg_0: &Block) -> bool
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]
fn ne(&self, __arg_0: &Block) -> bool
This method tests for !=
.
impl Decodable for Block
[src]
impl Decodable for Block