Skip to main content

alloc

Function alloc 

Source
pub unsafe fn alloc(layout: Layout) -> Option<NonNull<u8>>
Expand description

Fallible allocation matching standard alloc interface.

ยงSafety

  • layout must have non-zero size.