Struct disarray_ledger::states::State
source · pub struct State {
pub state_per_block: BlockState,
}
Fields
state_per_block: BlockState
Implementations
sourceimpl State
impl State
pub fn new() -> Self
pub fn ico(&mut self, genesis_hash: H256, accounts: &Vec<H160>, amount: usize)
pub fn update_block(&mut self, block: &Block)
pub fn update_blocks(&mut self, blocks: &Vec<Block>)
pub fn check_block(&mut self, hash: &H256) -> bool
pub fn one_block_state(&mut self, hash: &H256) -> StateMap
pub fn print_last_block_state(&mut self, hash: &H256)
Trait Implementations
impl Eq for State
impl StructuralEq for State
impl StructuralPartialEq for State
Auto Trait Implementations
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.