use crate::hal::layouts::{Backend, MatZnxOwned, Module}; pub unsafe trait MatZnxAllocImpl { fn mat_znx_alloc_impl(module: &Module, rows: usize, cols_in: usize, cols_out: usize, size: usize) -> MatZnxOwned; } pub unsafe trait MatZnxAllocBytesImpl { fn mat_znx_alloc_bytes_impl(module: &Module, rows: usize, cols_in: usize, cols_out: usize, size: usize) -> usize; } pub unsafe trait MatZnxFromBytesImpl { fn mat_znx_from_bytes_impl( module: &Module, rows: usize, cols_in: usize, cols_out: usize, size: usize, bytes: Vec, ) -> MatZnxOwned; }