pub fn values<'a>(
        &'a self,
        row_ids: &[u32],
        mut dst: Vec<Option<&'a str>>,
    ) -> Vec<Option<&'a str>> {
        dst.clear();
        dst.reserve(row_ids.len());

        // The `as_deref` is needed to convert an `&Option<String>` into an
        // `Option<&str>`.
        for chunks in row_ids.chunks_exact(4) {
            dst.push(self.entries[self.encoded_data[chunks[0] as usize] as usize].as_deref());
            dst.push(self.entries[self.encoded_data[chunks[1] as usize] as usize].as_deref());
            dst.push(self.entries[self.encoded_data[chunks[2] as usize] as usize].as_deref());
            dst.push(self.entries[self.encoded_data[chunks[3] as usize] as usize].as_deref());
        }

        for &v in &row_ids[dst.len()..row_ids.len()] {
            dst.push(self.entries[self.encoded_data[v as usize] as usize].as_deref());
        }

        dst
    }
/// Materialises a vector of references to the decoded values in the
/// provided row ids.
///
/// NULL values are represented by None. It is the caller's responsibility
/// to ensure row ids are a monotonically increasing set.
Materialises a vector of references to the decoded values in the
provided row ids.

NULL values are represented by None. It is the caller's responsibility
to ensure row ids are a monotonically increasing set.
Materialises a vector of references to the decoded values in the provided row ids . NULL values are represented by None . It is the caller ' s responsibility to ensure row ids are a monotonically increasing set .
pub fn values<'a>(
        &'a self,
        row_ids: &[u32],
        mut dst: Vec<Option<&'a str>>,
    ) -> Vec<Option<&'a str>> {
        dst.clear();
        dst.reserve(row_ids.len());
        // The `as_deref` is needed to convert an `&Option<String>` into an
        // `Option<&str>`.
        for chunks in row_ids.chunks_exact(4) {
            dst.push(self.entries[self.encoded_data[chunks[0] as usize] as usize].as_deref());
            dst.push(self.entries[self.encoded_data[chunks[1] as usize] as usize].as_deref());
            dst.push(self.entries[self.encoded_data[chunks[2] as usize] as usize].as_deref());
            dst.push(self.entries[self.encoded_data[chunks[3] as usize] as usize].as_deref());
        }
        for &v in &row_ids[dst.len()..row_ids.len()] {
            dst.push(self.entries[self.encoded_data[v as usize] as usize].as_deref());
        }
        dst
    }
pub fn values < ' a > ( & ' a self , row_ids : & [ u32 ] , mut dst : Vec < Option < & ' a str > > , ) -> Vec < Option < & ' a str > > { dst . clear ( ) ; dst . reserve ( row_ids . len ( ) ) ; // The `as_deref` is needed to convert an `&Option<String>` into an // `Option<&str>`. for chunks in row_ids . chunks_exact ( 4 ) { dst . push ( self . entries [ self . encoded_data [ chunks [ 0 ] as usize ] as usize ] . as_deref ( ) ) ; dst . push ( self . entries [ self . encoded_data [ chunks [ 1 ] as usize ] as usize ] . as_deref ( ) ) ; dst . push ( self . entries [ self . encoded_data [ chunks [ 2 ] as usize ] as usize ] . as_deref ( ) ) ; dst . push ( self . entries [ self . encoded_data [ chunks [ 3 ] as usize ] as usize ] . as_deref ( ) ) ; } for & v in & row_ids [ dst . len ( ) .. row_ids . len ( ) ] { dst . push ( self . entries [ self . encoded_data [ v as usize ] as usize ] . as_deref ( ) ) ; } dst }
Materialises a vector of references to the decoded values in the
provided row ids.
Materialises a vector of references to the decoded values in the provided row ids .
&'a self
row_ids
&[u32]
dst
Vec<Option<&'a str>>
&'a self
row_ids
&[u32]
dst
Vec<Option<&'a str>>