twodarray 0.1.3

A 2D array library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod twodarray;

pub use crate::twodarray::Array2D;

#[cfg(test)]
mod tests {
    use crate::twodarray;

    #[test]
    fn test_2darray() {
	let arr = twodarray::Array2D::<u8>::new(2, 4);
	let mut result = arr.get_height();
	assert_eq!(result, 4);
	result = arr.get_width();
	assert_eq!(result, 2);
    }
}