blok 0.0.23

Types and traits for graphlike 3D arrays, designed for visual thinkers.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14

use super::*;

impl<B: Block> Row<B> {
    /// Clones the row into a new naked vector.
    pub fn clone_into_blocks(&self) -> Vec<B> {
        self.blocks.clone()
    }

    /// Set a row's values from a vector of blocks.
    pub fn set_from_blocks(&mut self, blocks: Vec<B>) {
        self.blocks = blocks
    }
}