Skip to main content

ReadableTableMetadata

Trait ReadableTableMetadata 

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

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

Required Methods§

Source

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

Retrieves information about storage usage for the table

Source

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

Returns the number of entries in the table

Provided Methods§

Source

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

Returns true if the table is empty

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl ReadableTableMetadata for ReadOnlyUntypedMultimapTable

Source§

impl ReadableTableMetadata for ReadOnlyUntypedTable

Source§

impl<K: Key + 'static, V: Key + 'static> ReadableTableMetadata for MultimapTable<'_, 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>

Source§

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