Struct redb::Table

source ·
pub struct Table<'db, 'txn, K: RedbKey + ?Sized + 'txn, V: RedbValue + ?Sized + 'txn> { /* private fields */ }
Expand description

A table containing key-value mappings

Implementations§

Insert mapping of the given key to the given value

Returns the old value, if the key was present in the table

Reserve space to insert a key-value pair The returned reference will have length equal to value_length

Removes the given key

Returns the old value, if the key was present in the table

Trait Implementations§

Executes the destructor for this type. Read more
Returns the value corresponding to the given key
Returns a double-ended iterator over a range of elements in the table Read more
Returns the number of entries in the table
Returns true if the table is empty
Returns a double-ended iterator over all elements in the table

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.