返回首页
AI on Medium··行业媒体

Rust’s Allocator API Is Finally Stable. It Only Took About Seven Years.

中文摘要

Rust内存分配器API历经七年终稳定,随1.100版本发布。它允许自定义Vec、Box等类型获取内存的方式。

English Summary

Rust's Allocator API is now stable after seven years, enabling custom memory allocation for types like Vec and Box. It arrives with the milestone Rust 1.100 release.

原文节选

A trait that lets you swap out how Vec, Box, and friends get their memory, landing right on Rust's milestone 1.100 release Continue reading on Medium »