Module alloc::alloc 1.28.0[−][src]
Expand description
内存分配 API
Structs
AllocErrorExperimental
AllocError
错误表示分配失败,这可能是由于资源耗尽或将给定输入参数与此分配器组合在一起时出错所致。
GlobalExperimental
全局内存分配器。
一块内存的布局。
给 Layout::from_size_align
或其他 Layout
构造函数的参数不满足其记录的约束。
Traits
可以通过 #[global_allocator]
属性将其分配为标准库的默认内存分配器。
Functions
使用全局分配器分配零初始化内存。
由于内存分配错误或失败而终止。
Type Definitions
LayoutErrDeprecated