Struct transact::database::btree::BTreeReader
source · pub struct BTreeReader<'a> { /* private fields */ }
Trait Implementations§
source§impl<'a> DatabaseReader for BTreeReader<'a>
impl<'a> DatabaseReader for BTreeReader<'a>
source§fn cursor(&self) -> Result<DatabaseCursor<'_>, DatabaseError>
fn cursor(&self) -> Result<DatabaseCursor<'_>, DatabaseError>
Returns a cursor against the main database. The cursor iterates over the entries in the natural key order.
source§fn index_cursor(&self, index: &str) -> Result<DatabaseCursor<'_>, DatabaseError>
fn index_cursor(&self, index: &str) -> Result<DatabaseCursor<'_>, DatabaseError>
Returns a cursor against the given index. The cursor iterates over the entries in the index’s natural key order.
source§fn count(&self) -> Result<usize, DatabaseError>
fn count(&self) -> Result<usize, DatabaseError>
Returns the number of entries in the main database.
source§fn index_count(&self, index: &str) -> Result<usize, DatabaseError>
fn index_count(&self, index: &str) -> Result<usize, DatabaseError>
Returns the number of entries in the given index.
Auto Trait Implementations§
impl<'a> RefUnwindSafe for BTreeReader<'a>
impl<'a> !Send for BTreeReader<'a>
impl<'a> Sync for BTreeReader<'a>
impl<'a> Unpin for BTreeReader<'a>
impl<'a> UnwindSafe for BTreeReader<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more§impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
§fn borrow_replacement(ptr: &T) -> &T
fn borrow_replacement(ptr: &T) -> &T
Given
ptr
, which was obtained from a prior call to Self::borrow()
,
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self
. Read more