TakeSlice

Trait TakeSlice 

Source
pub trait TakeSlice {
    // Required method
    fn take_slice<T>(&mut self, len: usize) -> (&mut [T], &mut Self);
}
Expand description

Takes a slice of bytes from a Scratch and return a new Scratch minus the taken array of bytes.

Required Methods§

Source

fn take_slice<T>(&mut self, len: usize) -> (&mut [T], &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> TakeSlice for Scratch<B>
where B: Backend + TakeSliceImpl<B>,