#[cfg(all(
feature = "allocator-api2-v02",
not(feature = "allocator-api2-v03"),
not(feature = "nightly-allocator-api")
))]
pub(crate) mod internal {
extern crate alloc as alloc_lib;
#[allow(unused)]
pub use self::alloc_lib::{borrow, string, sync};
#[allow(unused)]
pub use ::allocator_api2_02::{boxed, collections, vec};
pub use ::allocator_api2_02::alloc;
pub use ::allocator_api2_02::alloc::Global;
#[allow(unused)]
pub trait Allocator: alloc::Allocator + Clone {}
impl<A: alloc::Allocator + Clone> Allocator for A {}
}
#[cfg(all(feature = "allocator-api2-v03", not(feature = "nightly-allocator-api")))]
pub(crate) mod internal {
extern crate alloc as alloc_lib;
#[allow(unused)]
pub use self::alloc_lib::{borrow, string, sync};
#[allow(unused)]
pub use ::allocator_api2_03::{boxed, collections, vec};
pub use ::allocator_api2_03::alloc;
pub use ::allocator_api2_03::alloc::Global;
#[allow(unused)]
pub trait Allocator: alloc::Allocator + Clone {}
impl<A: alloc::Allocator + Clone> Allocator for A {}
}
#[cfg(all(feature = "nightly-allocator-api", not(feature = "allocator-api-shim")))]
pub(crate) mod internal {
pub use std::alloc;
pub use std::alloc::Global;
#[allow(unused)]
pub trait Allocator: alloc::Allocator + Clone {}
impl<A: alloc::Allocator + Clone> Allocator for A {}
}