Trait TakeMatZnx

Source
pub trait TakeMatZnx {
    // Required method
    fn take_mat_znx(
        &mut self,
        n: usize,
        rows: usize,
        cols_in: usize,
        cols_out: usize,
        size: usize,
    ) -> (MatZnx<&mut [u8]>, &mut Self);
}
Expand description

Take a slice of bytes from a Scratch, wraps it into a MatZnx and returns it as well as a new Scratch minus the taken array of bytes.

Required Methods§

Source

fn take_mat_znx( &mut self, n: usize, rows: usize, cols_in: usize, cols_out: usize, size: usize, ) -> (MatZnx<&mut [u8]>, &mut Self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<B> TakeMatZnx for Scratch<B>
where B: Backend + TakeMatZnxImpl<B>,