[][src]Struct heed::PolyDatabase

pub struct PolyDatabase { /* fields omitted */ }

A dynamically typed database that accepts types at call (e.g. get, put).

Methods

impl PolyDatabase[src]

pub fn get<'txn, KC, DC>(
    &self,
    txn: &'txn RoTxn,
    key: &KC::EItem
) -> Result<Option<DC::DItem>> where
    KC: BytesEncode,
    DC: BytesDecode<'txn>, 
[src]

pub fn first<'txn, KC, DC>(
    &self,
    txn: &'txn RoTxn
) -> Result<Option<(KC::DItem, DC::DItem)>> where
    KC: BytesDecode<'txn>,
    DC: BytesDecode<'txn>, 
[src]

pub fn last<'txn, KC, DC>(
    &self,
    txn: &'txn RoTxn
) -> Result<Option<(KC::DItem, DC::DItem)>> where
    KC: BytesDecode<'txn>,
    DC: BytesDecode<'txn>, 
[src]

pub fn len<'txn>(&self, txn: &'txn RoTxn) -> Result<usize>[src]

pub fn is_empty<'txn>(&self, txn: &'txn RoTxn) -> Result<bool>[src]

pub fn iter<'txn, KC, DC>(
    &self,
    txn: &'txn RoTxn
) -> Result<RoIter<'txn, KC, DC>>
[src]

pub fn iter_mut<'txn, KC, DC>(
    &self,
    txn: &'txn mut RwTxn
) -> Result<RwIter<'txn, KC, DC>>
[src]

pub fn range<'txn, KC, DC, R>(
    &self,
    txn: &'txn RoTxn,
    range: R
) -> Result<RoRange<'txn, KC, DC>> where
    KC: BytesEncode,
    R: RangeBounds<KC::EItem>, 
[src]

pub fn range_mut<'txn, KC, DC, R>(
    &self,
    txn: &'txn mut RwTxn,
    range: R
) -> Result<RwRange<'txn, KC, DC>> where
    KC: BytesEncode,
    R: RangeBounds<KC::EItem>, 
[src]

pub fn prefix_iter<'txn, KC, DC>(
    &self,
    txn: &'txn RoTxn,
    prefix: &KC::EItem
) -> Result<RoRange<'txn, KC, DC>> where
    KC: BytesEncode
[src]

pub fn prefix_iter_mut<'txn, KC, DC>(
    &self,
    txn: &'txn RwTxn,
    prefix: &KC::EItem
) -> Result<RwRange<'txn, KC, DC>> where
    KC: BytesEncode
[src]

pub fn put<KC, DC>(
    &self,
    txn: &mut RwTxn,
    key: &KC::EItem,
    data: &DC::EItem
) -> Result<()> where
    KC: BytesEncode,
    DC: BytesEncode
[src]

pub fn delete<KC>(&self, txn: &mut RwTxn, key: &KC::EItem) -> Result<bool> where
    KC: BytesEncode
[src]

pub fn delete_range<'txn, KC, DC, R>(
    &self,
    txn: &'txn mut RwTxn,
    range: R
) -> Result<usize> where
    KC: BytesEncode + BytesDecode<'txn>,
    DC: BytesDecode<'txn>,
    R: RangeBounds<KC::EItem>, 
[src]

pub fn clear(&self, txn: &mut RwTxn) -> Result<()>[src]

Trait Implementations

impl Clone for PolyDatabase[src]

impl Copy for PolyDatabase[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]