Struct elements::Block [−][src]
pub struct Block { pub header: BlockHeader, pub txdata: Vec<Transaction>, }
Elements block
Fields
header: BlockHeader
Header of the block
txdata: Vec<Transaction>
Complete list of transaction in the block
Trait Implementations
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 Debug for Block
[src]
impl Debug for Block
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Block
[src]
impl Default for Block
impl Eq for Block
[src]
impl Eq for Block
impl Hash for Block
[src]
impl Hash for Block
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for Block
[src]
impl PartialEq for Block
fn eq(&self, other: &Block) -> bool
[src]
fn eq(&self, other: &Block) -> bool
This 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) -> bool
This method tests for !=
.
impl<S: SimpleEncoder> ConsensusEncodable<S> for Block
[src]
impl<S: SimpleEncoder> ConsensusEncodable<S> for Block
fn consensus_encode(&self, s: &mut S) -> Result<(), Error>
[src]
fn consensus_encode(&self, s: &mut S) -> Result<(), Error>
Encode an object with a well-defined format
impl<D: SimpleDecoder> ConsensusDecodable<D> for Block
[src]
impl<D: SimpleDecoder> ConsensusDecodable<D> for Block
fn consensus_decode(d: &mut D) -> Result<Block, Error>
[src]
fn consensus_decode(d: &mut D) -> Result<Block, Error>
Decode an object with a well-defined format
impl BitcoinHash for Block
[src]
impl BitcoinHash for Block
fn bitcoin_hash(&self) -> Sha256dHash
[src]
fn bitcoin_hash(&self) -> Sha256dHash
Produces a Sha256dHash which can be used to refer to the object