Trait snarkvm_objects::traits::block::BlockScheme[][src]

pub trait BlockScheme: Clone + Eq + FromBytes + ToBytes {
    type BlockHeader: Clone + Eq + FromBytes + ToBytes;
    type Transaction: Transaction;
    fn header(&self) -> &Self::BlockHeader;
fn transactions(&self) -> &[Self::Transaction]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
; }

Associated Types

Required methods

fn header(&self) -> &Self::BlockHeader[src]

Returns the header.

fn transactions(&self) -> &[Self::Transaction]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Returns the transactions.

Implementors

impl<T: Transaction> BlockScheme for Block<T>[src]

fn header(&self) -> &Self::BlockHeader[src]

Returns the header.

fn transactions(&self) -> &[Self::Transaction]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Returns the transactions.

type BlockHeader = BlockHeader

type Transaction = T