/// Iterate over the byte representation of all key/value pairs within the table.
///
/// The yielded bytes for each entry are laid out as follows:
///
/// ```txt
/// ([T::ID, T::Key], [T::Value])
/// ```
Iterate over the byte representation of all key/value pairs within the table.
The yielded bytes for each entry are laid out as follows.


Iterate over the byte representation of all key / value pairs within the table . The yielded bytes for each entry are laid out as follows .
pub fn scan_bytes(&self, k: &T::Key) -> impl Stream<Item = (Vec<u8>, Vec<u8>), Error = Error> {
        let client = self.client.clone();
        let next_id = T::ID.next_id();
        write_key_future::<T>(k)
            .join(write_id_future(&next_id))
            .map(move |(key_bytes, next_id_bytes)| {
                client
                    .scan_range(key_bytes, next_id_bytes)
                    .map_err(Error::SledWeb)
            })
            .flatten_stream()
    }
pub fn scan_bytes ( & self , k : & T :: Key ) -> impl Stream < Item = ( Vec < u8 > , Vec < u8 > ) , Error = Error > { let client = self . client . clone ( ) ; let next_id = T :: ID . next_id ( ) ; write_key_future :: < T > ( k ) . join ( write_id_future ( & next_id ) ) . map ( move | ( key_bytes , next_id_bytes ) | { client . scan_range ( key_bytes , next_id_bytes ) . map_err ( Error :: SledWeb ) } ) . flatten_stream ( ) }
Iterate over the byte representation of all key/value pairs within the table.
Iterate over the byte representation of all key / value pairs within the table .
&self
k
&T::Key