[−][src]Struct heed::PolyDatabase
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]
&self,
txn: &'txn RoTxn,
key: &KC::EItem
) -> Result<Option<DC::DItem>> where
KC: BytesEncode,
DC: BytesDecode<'txn>,
pub fn first<'txn, KC, DC>(
&self,
txn: &'txn RoTxn
) -> Result<Option<(KC::DItem, DC::DItem)>> where
KC: BytesDecode<'txn>,
DC: BytesDecode<'txn>,
[src]
&self,
txn: &'txn RoTxn
) -> Result<Option<(KC::DItem, DC::DItem)>> where
KC: BytesDecode<'txn>,
DC: BytesDecode<'txn>,
pub fn last<'txn, KC, DC>(
&self,
txn: &'txn RoTxn
) -> Result<Option<(KC::DItem, DC::DItem)>> where
KC: BytesDecode<'txn>,
DC: BytesDecode<'txn>,
[src]
&self,
txn: &'txn RoTxn
) -> Result<Option<(KC::DItem, DC::DItem)>> where
KC: BytesDecode<'txn>,
DC: BytesDecode<'txn>,
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]
&self,
txn: &'txn RoTxn
) -> Result<RoIter<'txn, KC, DC>>
pub fn iter_mut<'txn, KC, DC>(
&self,
txn: &'txn mut RwTxn
) -> Result<RwIter<'txn, KC, DC>>
[src]
&self,
txn: &'txn mut RwTxn
) -> Result<RwIter<'txn, KC, DC>>
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]
&self,
txn: &'txn RoTxn,
range: R
) -> Result<RoRange<'txn, KC, DC>> where
KC: BytesEncode,
R: RangeBounds<KC::EItem>,
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]
&self,
txn: &'txn mut RwTxn,
range: R
) -> Result<RwRange<'txn, KC, DC>> where
KC: BytesEncode,
R: RangeBounds<KC::EItem>,
pub fn prefix_iter<'txn, KC, DC>(
&self,
txn: &'txn RoTxn,
prefix: &KC::EItem
) -> Result<RoRange<'txn, KC, DC>> where
KC: BytesEncode,
[src]
&self,
txn: &'txn RoTxn,
prefix: &KC::EItem
) -> Result<RoRange<'txn, KC, DC>> where
KC: BytesEncode,
pub fn prefix_iter_mut<'txn, KC, DC>(
&self,
txn: &'txn RwTxn,
prefix: &KC::EItem
) -> Result<RwRange<'txn, KC, DC>> where
KC: BytesEncode,
[src]
&self,
txn: &'txn RwTxn,
prefix: &KC::EItem
) -> Result<RwRange<'txn, KC, DC>> where
KC: BytesEncode,
pub fn put<KC, DC>(
&self,
txn: &mut RwTxn,
key: &KC::EItem,
data: &DC::EItem
) -> Result<()> where
KC: BytesEncode,
DC: BytesEncode,
[src]
&self,
txn: &mut RwTxn,
key: &KC::EItem,
data: &DC::EItem
) -> Result<()> where
KC: BytesEncode,
DC: BytesEncode,
pub fn delete<KC>(&self, txn: &mut RwTxn, key: &KC::EItem) -> Result<bool> where
KC: BytesEncode,
[src]
KC: BytesEncode,
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]
&self,
txn: &'txn mut RwTxn,
range: R
) -> Result<usize> where
KC: BytesEncode + BytesDecode<'txn>,
DC: BytesDecode<'txn>,
R: RangeBounds<KC::EItem>,
pub fn clear(&self, txn: &mut RwTxn) -> Result<()>
[src]
Trait Implementations
impl Clone for PolyDatabase
[src]
fn clone(&self) -> PolyDatabase
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for PolyDatabase
[src]
Auto Trait Implementations
impl Send for PolyDatabase
impl Sync for PolyDatabase
impl Unpin for PolyDatabase
impl UnwindSafe for PolyDatabase
impl RefUnwindSafe for PolyDatabase
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,