/// Iterate over tuples of keys and values, starting at the provided key.
Iterate over tuples of keys and values, starting at the provided key.
Iterate over tuples of keys and values starting at the provided key .
pub fn scan(&self, key: &T::Key) -> impl Stream<Item = (T::Key, T::Value), Error = Error> {
        let scan_bytes = self.scan_bytes(key);
        write_id_future(&T::ID)
            .map(move |id_bytes| {
                let id_len = id_bytes.len();
                scan_bytes
                    .and_then(move |(id_k, v)| {
                        let k = &id_k[id_len..];
                        entry_from_bytes_future::<T>(k, &v)
                    })
            })
            .flatten_stream()
    }
pub fn scan ( & self , key : & T :: Key ) -> impl Stream < Item = ( T :: Key , T :: Value ) , Error = Error > { let scan_bytes = self . scan_bytes ( key ) ; write_id_future ( & T :: ID ) . map ( move | id_bytes | { let id_len = id_bytes . len ( ) ; scan_bytes . and_then ( move | ( id_k , v ) | { let k = & id_k [ id_len .. ] ; entry_from_bytes_future :: < T > ( k , & v ) } ) } ) . flatten_stream ( ) }
Iterate over tuples of keys and values, starting at the provided key.
Iterate over tuples of keys and values starting at the provided key .
&self
key
&T::Key