pub fn rtree_query_key(&self, seq_min: u64, seq_max: u64, bbox: &[u8]) -> Vec<u8> {
        let mut keypath = String::with_capacity(100);
        for segment in &self.keypath {
            keypath.push_str(segment);
        }
        let mut key = Vec::new();
        let mut keypath_len = Cursor::new(Vec::new());
        let _ = keypath_len.write_unsigned_varint_32(keypath.len() as u32);
        key.append(&mut keypath_len.get_mut());
        key.extend_from_slice(keypath.as_bytes());
        key.extend_from_slice(&unsafe { mem::transmute::<u64, [u8; 8]>(seq_min) });
        key.extend_from_slice(&unsafe { mem::transmute::<u64, [u8; 8]>(seq_max) });
        key.extend_from_slice(bbox);
        key
    }
/// Build key to query an R-tree
Build key to query an R-tree
Build key to query an R - tree
pub fn rtree_query_key(&self, seq_min: u64, seq_max: u64, bbox: &[u8]) -> Vec<u8> {
        let mut keypath = String::with_capacity(100);
        for segment in &self.keypath {
            keypath.push_str(segment);
        }
        let mut key = Vec::new();
        let mut keypath_len = Cursor::new(Vec::new());
        let _ = keypath_len.write_unsigned_varint_32(keypath.len() as u32);
        key.append(&mut keypath_len.get_mut());
        key.extend_from_slice(keypath.as_bytes());
        key.extend_from_slice(&unsafe { mem::transmute::<u64, [u8; 8]>(seq_min) });
        key.extend_from_slice(&unsafe { mem::transmute::<u64, [u8; 8]>(seq_max) });
        key.extend_from_slice(bbox);
        key
    }
pub fn rtree_query_key ( & self , seq_min : u64 , seq_max : u64 , bbox : & [ u8 ] ) -> Vec < u8 > { let mut keypath = String :: with_capacity ( 100 ) ; for segment in & self . keypath { keypath . push_str ( segment ) ; } let mut key = Vec :: new ( ) ; let mut keypath_len = Cursor :: new ( Vec :: new ( ) ) ; let _ = keypath_len . write_unsigned_varint_32 ( keypath . len ( ) as u32 ) ; key . append ( & mut keypath_len . get_mut ( ) ) ; key . extend_from_slice ( keypath . as_bytes ( ) ) ; key . extend_from_slice ( & unsafe { mem :: transmute :: < u64 , [ u8 ; 8 ] > ( seq_min ) } ) ; key . extend_from_slice ( & unsafe { mem :: transmute :: < u64 , [ u8 ; 8 ] > ( seq_max ) } ) ; key . extend_from_slice ( bbox ) ; key }
Build key to query an R-tree
Build key to query an R - tree
&self
seq_min
u64
seq_max
u64
bbox
&[u8]
&self
seq_min
u64
seq_max
u64
bbox
&[u8]