[][src]Trait eosio_cdt::PrimaryTableIndexExt

pub trait PrimaryTableIndexExt<'a, T>: TableIndex<'a, u64, T, Cursor = PrimaryTableCursor<T>> where
    T: Table + 'a, 
{ fn begin(&'a self) -> Option<Self::Cursor> { ... }
fn iter(&'a self) -> PrimaryTableIterator<T> { ... }
fn count(&'a self) -> usize { ... }
fn end(&'a self) -> i32 { ... }
fn available_primary_key(&'a self) -> Option<u64> { ... } }

Trait for functions of a PrimaryTableIndex that only apply within a smart contract

Provided methods

fn begin(&'a self) -> Option<Self::Cursor>

Returns the first row in the table

Important traits for PrimaryTableIterator<T>
fn iter(&'a self) -> PrimaryTableIterator<T>

Iterate over rows in the table

fn count(&'a self) -> usize

Total number of rows in the table

fn end(&'a self) -> i32

Returns the last row in the table

fn available_primary_key(&'a self) -> Option<u64>

Gets the next available primary key

Loading content...

Implementations on Foreign Types

impl<'a, T> PrimaryTableIndexExt<'a, T> for PrimaryTableIndex<T> where
    T: Table + 'a, 
[src]

Loading content...

Implementors

Loading content...