Trait StaticBuffer

Source
pub unsafe trait StaticBuffer: Buffer + Array { }
Expand description

Buffer sub-trait for static arrays.

This trait is used specifically to restrict the implementation of Scratchpad::static_new() to static array buffers.

§Safety

Scratchpad::static_new() leaves instances of this type entirely uninitialized, so implementing it is fundamentally unsafe. It should only be implemented by static arrays of ByteData types.

Implementors§

Source§

impl<T> StaticBuffer for T
where T: Array, <T as Array>::Item: ByteData,