[][src]Struct snarkos_testing::consensus::Fixture

pub struct Fixture {
    pub parameters: <InstantiatedDPC as DPCScheme<MerkleTreeLedger>>::Parameters,
    pub test_accounts: [Account<Components>; 3],
    pub ledger_parameters: CommitmentMerkleParameters,
    pub genesis_block: Block<Tx>,
    pub program: NoopProgram<Components, <Components as BaseDPCComponents>::NoopProgramSNARK>,
    pub rng: XorShiftRng,
}

Fields

parameters: <InstantiatedDPC as DPCScheme<MerkleTreeLedger>>::Parameterstest_accounts: [Account<Components>; 3]ledger_parameters: CommitmentMerkleParametersgenesis_block: Block<Tx>program: NoopProgram<Components, <Components as BaseDPCComponents>::NoopProgramSNARK>rng: XorShiftRng

Implementations

impl Fixture[src]

pub fn ledger(&self) -> MerkleTreeLedger[src]

Auto Trait Implementations

impl RefUnwindSafe for Fixture

impl Send for Fixture

impl Sync for Fixture

impl Unpin for Fixture

impl UnwindSafe for Fixture

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,