alloc_safe/lib.rs
1//! Safe memory allocation, no panic!
2
3#![feature(allocator_api)]
4#![feature(alloc_error_hook)]
5#![feature(try_reserve_kind)]
6#![feature(fmt_internals)]
7
8mod sealed {
9 pub trait Sealed {}
10}
11
12mod alloc;
13mod fmt;
14mod string;
15mod vec;
16
17pub use crate::alloc::{catch_alloc_error, AllocError};
18pub use crate::fmt::try_format;
19pub use crate::string::TryToString;
20pub use crate::vec::{VecAllocExt, VecExt};