[−][src]Struct transact::database::btree::BTreeReader
Trait Implementations
impl<'a> DatabaseReader for BTreeReader<'a>
[src]
fn get(&self, key: &[u8]) -> Option<Vec<u8>>
[src]
fn index_get(
&self,
index: &str,
key: &[u8]
) -> Result<Option<Vec<u8>>, DatabaseError>
[src]
&self,
index: &str,
key: &[u8]
) -> Result<Option<Vec<u8>>, DatabaseError>
fn cursor(&self) -> Result<DatabaseCursor, DatabaseError>
[src]
Returns a cursor against the main database. The cursor iterates over the entries in the natural key order.
fn index_cursor(&self, index: &str) -> Result<DatabaseCursor, DatabaseError>
[src]
Returns a cursor against the given index. The cursor iterates over the entries in the index's natural key order.
fn count(&self) -> Result<usize, DatabaseError>
[src]
Returns the number of entries in the main database.
fn index_count(&self, index: &str) -> Result<usize, DatabaseError>
[src]
Returns the number of entries in the given index.
Auto Trait Implementations
impl<'a> !Send for BTreeReader<'a>
impl<'a> Sync for BTreeReader<'a>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SafeBorrow<T> for T where
T: ?Sized,
T: ?Sized,
fn borrow_replacement(ptr: &T) -> &T
impl<T> Same<T> for T
type Output = T
Should always be Self