pub fn distinct_blocks(&self) -> Vec<Block> {
        let mut blocks = Vec::with_capacity(self.block_data.len());
        for data in &self.block_data {
            if data.count > 0 {
                blocks.push(data.block.clone());
            }
        }
        blocks
    }
/// Returns all distinct block types found in the space.
///
/// TODO: This was invented for testing the indexing of blocks and should
/// be replaced with something else *if* it only gets used for testing.
Returns all distinct block types found in the space.
TODO: This was invented for testing the indexing of blocks and should
be replaced with something else *if* it only gets used for testing.
Returns all distinct block types found in the space . TODO : This was invented for testing the indexing of blocks and should be replaced with something else * if * it only gets used for testing .
pub fn distinct_blocks(&self) -> Vec<Block> {
        let mut blocks = Vec::with_capacity(self.block_data.len());
        for data in &self.block_data {
            if data.count > 0 {
                blocks.push(data.block.clone());
            }
        }
        blocks
    }
pub fn distinct_blocks ( & self ) -> Vec < Block > { let mut blocks = Vec :: with_capacity ( self . block_data . len ( ) ) ; for data in & self . block_data { if data . count > 0 { blocks . push ( data . block . clone ( ) ) ; } } blocks }
Returns all distinct block types found in the space.
Returns all distinct block types found in the space .
&self