Struct vapcore_pod::account::PodAccount [−][src]
An account, expressed as Plain-Old-Data (hence the name). Does not have a DB overlay cache, code hash or anything like that.
Fields
balance: U256
The balance of the account.
nonce: U256
The nonce of the account.
code: Option<Bytes>
The code of the account or None
in the special case that it is unknown.
storage: BTreeMap<H256, H256>
The storage of the account.
version: U256
The version of the account.
Implementations
impl PodAccount
[src]
pub fn rlp(&self) -> Bytes
[src]
Returns the RLP for this account.
pub fn insert_additional(
&self,
db: &mut dyn HashDB<KeccakHasher, DBValue>,
factory: &TrieFactory<Layout>
)
[src]
&self,
db: &mut dyn HashDB<KeccakHasher, DBValue>,
factory: &TrieFactory<Layout>
)
Place additional data into given hash DB.
Trait Implementations
impl Clone for PodAccount
[src]
fn clone(&self) -> PodAccount
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PodAccount
[src]
impl Eq for PodAccount
[src]
impl From<Account> for PodAccount
[src]
impl PartialEq<PodAccount> for PodAccount
[src]
fn eq(&self, other: &PodAccount) -> bool
[src]
fn ne(&self, other: &PodAccount) -> bool
[src]
impl Serialize for PodAccount
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for PodAccount
[src]
impl StructuralPartialEq for PodAccount
[src]
Auto Trait Implementations
impl RefUnwindSafe for PodAccount
impl Send for PodAccount
impl Sync for PodAccount
impl Unpin for PodAccount
impl UnwindSafe for PodAccount
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,