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
sourceimpl Range
impl Range
sourcepub fn new(begin: impl Into<Key>, end: impl Into<Key>) -> Range
pub fn new(begin: impl Into<Key>, end: impl Into<Key>) -> Range
Construct a new Range
with an inclusive begin key an
exclusive end key.
sourcepub fn starts_with(prefix_key: impl Into<Key>) -> Range
pub fn starts_with(prefix_key: impl Into<Key>) -> Range
sourcepub fn begin_key_ref(&self) -> &Key
pub fn begin_key_ref(&self) -> &Key
sourcepub fn end_key_ref(&self) -> &Key
pub fn end_key_ref(&self) -> &Key
sourcepub fn into_begin_key(self) -> Key
pub fn into_begin_key(self) -> Key
sourcepub fn into_end_key(self) -> Key
pub fn into_end_key(self) -> Key
sourcepub fn into_stream<T>(self, rt: &T, options: RangeOptions) -> FdbStreamKeyValue where
T: ReadTransaction,
pub fn into_stream<T>(self, rt: &T, options: RangeOptions) -> FdbStreamKeyValue where
T: ReadTransaction,
Gets an ordered range of keys and values from the database.
The returned FdbStreamKeyValue
implements Stream
trait
that yields a KeyValue
item.
sourcepub fn into_mapped_stream<T>(
self,
rt: &T,
mapper: Mapper,
options: RangeOptions
) -> FdbStreamMappedKeyValue where
T: ReadTransaction,
pub fn into_mapped_stream<T>(
self,
rt: &T,
mapper: Mapper,
options: RangeOptions
) -> FdbStreamMappedKeyValue where
T: ReadTransaction,
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
impl StructuralPartialEq for Range
Auto Trait Implementations
impl RefUnwindSafe for Range
impl Send for Range
impl Sync for Range
impl Unpin for Range
impl UnwindSafe for Range
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more