realloc 0.1.1

A re-implementation of various ::alloc features
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub use super::r#box::Box;
pub use super::vec::{self, Vec};

/// Type aliases to ease the transition from `std`'s collections.
///
/// Currently just forces the [`Panic`](crate::Panic) strategy and global
/// allocator.
pub mod compat {
    use crate::Panic;

    /// A [`Box`](crate::Box) that panics on allocation failure, and cannot use
    /// non-`static` allocators.
    pub type Box<T> = crate::Box<'static, T, Panic>;

    /// A [`Vec`](crate::Vec) that panics on allocation failure, and cannot use
    /// non-`static` allocators.
    pub type Vec<T> = crate::Vec<'static, T, Panic>;
}