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 Blockpub fn is_good(b: &[u8]) -> bool[src] 
pub fn is_good(b: &[u8]) -> boolReturns 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) -> BytesGet the RLP-encoding of the block with the seal.
Trait Implementations
impl Default for Block[src] 
impl Default for Blockimpl Debug for Block[src] 
impl Debug for Blockfn fmt(&self, __arg_0: &mut Formatter) -> Result[src] 
fn fmt(&self, __arg_0: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Block[src] 
impl Clone for Blockfn clone(&self) -> Block[src] 
fn clone(&self) -> BlockReturns 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 Blockfn eq(&self, __arg_0: &Block) -> bool[src] 
fn eq(&self, __arg_0: &Block) -> boolThis 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) -> boolThis method tests for !=.
impl Decodable for Block[src] 
impl Decodable for Block