#![cfg_attr(feature = "allocator_api", feature(allocator_api))]
#![cfg_attr(feature = "read_buf", feature(read_buf))]
#![cfg_attr(feature = "try_trait_v2", feature(try_trait_v2, try_trait_v2_residual))]
#![warn(missing_docs)]
#[cfg(feature = "arrayvec")]
pub use arrayvec;
#[cfg(feature = "bumpalo")]
pub use bumpalo;
#[cfg(feature = "bytes")]
pub use bytes;
mod buf_result;
pub use buf_result::*;
mod io_buf;
pub use io_buf::*;
mod slice;
pub use slice::*;
pub trait IntoInner {
type Inner;
fn into_inner(self) -> Self::Inner;
}
#[cfg(not(feature = "allocator_api"))]
#[macro_export]
#[doc(hidden)]
macro_rules! vec_alloc {
($t:ident, $a:ident) => {
Vec<$t>
};
}
#[cfg(feature = "allocator_api")]
#[macro_export]
#[doc(hidden)]
macro_rules! vec_alloc {
($t:ident, $a:ident) => {
Vec<$t, $a>
};
}