[][src]Struct schemadb::SchemaIterator

pub struct SchemaIterator<'a, S> { /* fields omitted */ }

DB Iterator parameterized on Schema that seeks with Schema::Key and yields Schema::Key and Schema::Value

Implementations

impl<'a, S> SchemaIterator<'a, S> where
    S: Schema
[src]

pub fn seek_to_first(&mut self)[src]

Seeks to the first key.

pub fn seek_to_last(&mut self)[src]

Seeks to the last key.

pub fn seek<SK>(&mut self, seek_key: &SK) -> Result<()> where
    SK: SeekKeyCodec<S>, 
[src]

Seeks to the first key whose binary representation is equal to or greater than that of the seek_key.

pub fn seek_for_prev<SK>(&mut self, seek_key: &SK) -> Result<()> where
    SK: SeekKeyCodec<S>, 
[src]

Seeks to the last key whose binary representation is less than or equal to that of the seek_key.

See example in RocksDB doc.

Trait Implementations

impl<'a, S> Iterator for SchemaIterator<'a, S> where
    S: Schema
[src]

type Item = Result<(S::Key, S::Value)>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a, S> RefUnwindSafe for SchemaIterator<'a, S> where
    S: RefUnwindSafe

impl<'a, S> Send for SchemaIterator<'a, S> where
    S: Send

impl<'a, S> Sync for SchemaIterator<'a, S> where
    S: Sync

impl<'a, S> Unpin for SchemaIterator<'a, S> where
    S: Unpin

impl<'a, S> UnwindSafe for SchemaIterator<'a, S> where
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<I> IteratorRandom for I where
    I: Iterator
[src]

impl<T> Itertools for T where
    T: Iterator + ?Sized
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,