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, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &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, other: &Block) -> bool[src]
fn eq(&self, other: &Block) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Block) -> bool[src]
fn ne(&self, other: &Block) -> boolThis method tests for !=.
impl Decodable for Block[src]
impl Decodable for Blockfn decode(rlp: &Rlp) -> Result<Self, DecoderError>[src]
fn decode(rlp: &Rlp) -> Result<Self, DecoderError>Decode a value from RLP bytes