Struct ethcore::pod_state::PodState
[−]
[src]
pub struct PodState(_);
State of all accounts in the system expressed in Plain Old Data.
Methods
impl PodState
[src]
impl PodState
pub fn new() -> PodState
[src]
pub fn new() -> PodState
Contruct a new object from the m
.
pub fn from(m: BTreeMap<Address, PodAccount>) -> PodState
[src]
pub fn from(m: BTreeMap<Address, PodAccount>) -> PodState
Contruct a new object from the m
.
pub fn get(&self) -> &BTreeMap<Address, PodAccount>
[src]
pub fn get(&self) -> &BTreeMap<Address, PodAccount>
Get the underlying map.
pub fn root(&self) -> H256
[src]
pub fn root(&self) -> H256
Get the root hash of the trie of the RLP of this.
pub fn drain(self) -> BTreeMap<Address, PodAccount>
[src]
pub fn drain(self) -> BTreeMap<Address, PodAccount>
Drain object to get the underlying map.
Trait Implementations
impl Debug for PodState
[src]
impl Debug for PodState
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for PodState
[src]
impl Clone for PodState
fn clone(&self) -> PodState
[src]
fn clone(&self) -> PodState
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 PartialEq for PodState
[src]
impl PartialEq for PodState
fn eq(&self, __arg_0: &PodState) -> bool
[src]
fn eq(&self, __arg_0: &PodState) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PodState) -> bool
[src]
fn ne(&self, __arg_0: &PodState) -> bool
This method tests for !=
.
impl Eq for PodState
[src]
impl Eq for PodState
impl Default for PodState
[src]
impl Default for PodState
impl From<State> for PodState
[src]
impl From<State> for PodState
impl From<State> for PodState
[src]
impl From<State> for PodState
impl Display for PodState
[src]
impl Display for PodState