Struct fdb::range::Range

source · []
pub struct Range { /* private fields */ }
Expand description

Range describes an exact range of keyspace, specified by a begin and end key.

As with all FDB APIs, begin is inclusive, and end exclusive.

Implementations

Construct a new Range with an inclusive begin key an exclusive end key.

Return a Range that describes all possible keys that are prefixed with the specified key.

Panic

Panics if the supplied Key is empty or contains only 0xFF bytes.

Gets a reference to the begin Key of the Range.

Gets a reference to the end Key of the Range.

Extract begin Key from the Range.

Extract end Key from the Range.

Extract begin and end Key from the Range.

Gets an ordered range of keys and values from the database.

The returned FdbStreamKeyValue implements Stream trait that yields a KeyValue item.

Gets an ordered range of mapped keys and values from the database.

The returned FdbStreamMappedKeyValue implements Stream trait that yields a MappedKeyValue item.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.