runtime_sized_array/
error.rs

1use std::alloc::LayoutError;
2
3/// Used ass a error Parameter in [`Array`](crate::Array) operations.
4#[derive(Debug)]
5pub struct ArrayError(pub String);
6
7impl From<LayoutError> for ArrayError {
8
9    #[inline]
10    fn from(err: LayoutError) -> Self {
11        ArrayError(err.to_string())
12    }
13}