Trait rocksdb::IterateBounds

source ·
pub trait IterateBounds {
    // Required method
    fn into_bounds(self) -> (Option<Vec<u8>>, Option<Vec<u8>>);
}
Expand description

A range which can be set as iterate bounds on crate::ReadOptions.

See crate::ReadOptions::set_iterate_range for documentation and examples.

Required Methods§

source

fn into_bounds(self) -> (Option<Vec<u8>>, Option<Vec<u8>>)

Converts object into lower and upper bounds pair.

If this object represents range with one of the bounds unset, corresponding element is returned as None. For example, ..upper range would be converted into (None, Some(upper)) pair.

Implementations on Foreign Types§

source§

impl IterateBounds for RangeFull

source§

impl<K: Into<Vec<u8>>> IterateBounds for Range<K>

source§

impl<K: Into<Vec<u8>>> IterateBounds for RangeFrom<K>

source§

impl<K: Into<Vec<u8>>> IterateBounds for RangeTo<K>

Implementors§