pub trait Ledger {
    // Required methods
    fn set(&self, l: LedgerInfo);
    fn get(&self) -> LedgerInfo;
    fn with_mut<F>(&self, f: F)
       where F: FnMut(&mut LedgerInfo);
}
Available on crate feature testutils only.
Expand description

Test utilities for Ledger.

Required Methods§

source

fn set(&self, l: LedgerInfo)

Set ledger info.

source

fn get(&self) -> LedgerInfo

Get ledger info.

source

fn with_mut<F>(&self, f: F)
where F: FnMut(&mut LedgerInfo),

Modify the ledger info.

Object Safety§

This trait is not object safe.

Implementors§