pub trait ReadableTableMetadata: Sealed {
    // Required methods
    fn stats(&self) -> Result<TableStats, StorageError>;
    fn len(&self) -> Result<u64, StorageError>;

    // Provided method
    fn is_empty(&self) -> Result<bool, StorageError> { ... }
}

Required Methods§

source

fn stats(&self) -> Result<TableStats, StorageError>

Retrieves information about storage usage for the table

source

fn len(&self) -> Result<u64, StorageError>

Returns the number of entries in the table

Provided Methods§

source

fn is_empty(&self) -> Result<bool, StorageError>

Returns true if the table is empty

Implementors§

source§

impl ReadableTableMetadata for ReadOnlyUntypedMultimapTable

source§

impl ReadableTableMetadata for ReadOnlyUntypedTable

source§

impl<'txn, K: Key + 'static, V: Key + 'static> ReadableTableMetadata for MultimapTable<'txn, K, V>

source§

impl<'txn, K: Key + 'static, V: Value + 'static> ReadableTableMetadata for Table<'txn, K, V>

source§

impl<K: Key + 'static, V: Key + 'static> ReadableTableMetadata for ReadOnlyMultimapTable<K, V>

source§

impl<K: Key + 'static, V: Value + 'static> ReadableTableMetadata for ReadOnlyTable<K, V>