Struct sewup::kv::Bucket[][src]

pub struct Bucket<K: Key, V: Value> { /* fields omitted */ }
Expand description

Bucket is a wrapper for RawBucket, including the name of the bucket

Implementations

New a Bucket with name

Check the Key in the bucket

Get a Value from bucket by Key

Set an item into the bucket

Remove a item from the bucket by key

Iterate all the items in the bucket

Iterate the items in the bucket with specific range

Iterate the times with special prefix

Get previous key, value pair

Get next key value pair

Pop item with specific key

Pop the last item

Pop the first item

Get the length of the bucket

Check there is something in the bucket

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

Performs the conversion.

Performs the conversion.

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.