pub trait ReadableTable<K, V, S = Lexicographical>{
// Required methods
fn first(
&self,
) -> Result<Option<(AccessGuard<'_, K, SortKey<S>>, AccessGuard<'_, V>)>, StorageError>;
fn last(
&self,
) -> Result<Option<(AccessGuard<'_, K, SortKey<S>>, AccessGuard<'_, V>)>, StorageError>;
fn range<'a, Q>(
&self,
range: impl RangeBounds<Q> + 'a,
) -> Result<Range<'_, K, V, SortKey<S>>, StorageError>
where K: Borrow<Q>,
Q: Encode + ?Sized;
fn get<Q>(
&self,
key: &Q,
) -> Result<Option<AccessGuard<'_, V>>, StorageError>
where K: Borrow<Q>,
Q: Encode + ?Sized;
}Required Methods§
fn first( &self, ) -> Result<Option<(AccessGuard<'_, K, SortKey<S>>, AccessGuard<'_, V>)>, StorageError>
fn last( &self, ) -> Result<Option<(AccessGuard<'_, K, SortKey<S>>, AccessGuard<'_, V>)>, StorageError>
fn range<'a, Q>( &self, range: impl RangeBounds<Q> + 'a, ) -> Result<Range<'_, K, V, SortKey<S>>, StorageError>
fn get<Q>(&self, key: &Q) -> Result<Option<AccessGuard<'_, V>>, StorageError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.