[][src]Struct srml_contract::AccountCounter

pub struct AccountCounter<T: Trait>(_);

The subtrie counter

Trait Implementations

impl<T: Trait> StorageValue<u64> for AccountCounter<T>[src]

type Query = u64

The type that get/take returns.

fn key() -> &'static [u8][src]

Get the storage key.

fn get<S: HashedStorage<Twox128>>(storage: &S) -> Self::Query[src]

Load the value from the provided storage instance.

fn take<S: HashedStorage<Twox128>>(storage: &S) -> Self::Query[src]

Take a value from storage, removing it afterwards.

fn mutate<R, F: FnOnce(&mut Self::Query) -> R, S: HashedStorage<Twox128>>(
    f: F,
    storage: &S
) -> R

Mutate the value under a key.

Auto Trait Implementations

impl<T> Sync for AccountCounter<T> where
    T: Sync

impl<T> Send for AccountCounter<T> where
    T: Send

impl<T> Unpin for AccountCounter<T> where
    T: Unpin

impl<T> UnwindSafe for AccountCounter<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for AccountCounter<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

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

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 

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

type Output = T

Should always be Self

impl<T> Erased for T[src]

impl<T, U> StorageValue<T> for U where
    T: Codec,
    U: StorageValue<T>, 

type Query = <U as StorageValue<T>>::Query

The type that get/take return.