Skip to main content

lib_unknown/types/
mod.rs

1//! 定容安全内存类型:字节容器(`bytes`)、UTF-8 字符串容器(`str`)与 C 字符串容器(`cstr`),搬运/销毁时清零残留。
2//!
3//! 需要启用 `"types"`(或其子特性 `types-bytes` / `types-str` / `types-cstr`)特性。
4#[cfg(feature = "types-bytes")]
5pub mod bytes;
6#[cfg(feature = "types-cstr")]
7pub mod cstr;
8#[cfg(feature = "types-str")]
9pub mod str;