runtime-sized-array 0.1.0

A variable-length array, also called runtime-sized
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::alloc::LayoutError;

/// Used ass a error Parameter in [`Array`](crate::Array) operations.
#[derive(Debug)]
pub struct ArrayError(pub String);

impl From<LayoutError> for ArrayError {

    #[inline]
    fn from(err: LayoutError) -> Self {
        ArrayError(err.to_string())
    }
}