Trait scratchpad::StaticBuffer [] [src]

pub unsafe trait StaticBuffer: Buffer + Array { }

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