pub trait CreateCursor<'txn> {
// Required method
fn cursor<'db, DB>(&self, db: DB) -> Result<Cursor<'txn, 'db>>
where DB: Into<Supercow<'db, Database<'db>>>;
}
Expand description
Types of transaction references which can be used to construct Cursor
s.
In most cases this is simply used as an extension trait (see the examples
on Cursor
). However, it can also be used to abstract over things that can
be used to create Cursor
s if so desired.
Implementations are provided for references to the three general
transaction types, as well as Rc
and Arc
directly wrapping either
concrete transaction type with a 'static
lifetime.
Required Methods§
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.