pub trait TryConcat {
// Required method
fn try_concat(self) -> Result<ArrayObject, ArrayObjectError>;
}Expand description
Concatenates ArrayObjects.
use array_object::{ArrayObject, TryConcat};
let mut objs = vec![];
for _ in 0..8 {
let temp: ArrayObject = vec![0i32, 1, 2, 3].into();
objs.push(temp);
}
let obj = objs.try_concat().unwrap();Required Methods§
Sourcefn try_concat(self) -> Result<ArrayObject, ArrayObjectError>
fn try_concat(self) -> Result<ArrayObject, ArrayObjectError>
Concatenates ArrayObjects of the same type, size and shape, and create an ArrayObject of one higher dimension.