devela/data/list/array/vec/
reexports.rs

1// devela::data::list::array::vec::reexports
2//
3//! Reexported items.
4//
5
6use crate::reexport;
7
8crate::impl_cdef![<T> Self::new() => Vec<T>]; // impl ConstDefault
9
10reexport! { rust: alloc::vec,
11    tag: crate::TAG_DATA_STRUCTURE!(),
12    doc: "A contiguous growable array.",
13    Vec
14}
15
16// NOTE: the macro and the module have the same name
17//
18/// <span class='stab portability' title='re-exported from rust&#39;s `alloc`'>`alloc`</span>
19/// Creates a [`Vec`] containing the arguments.
20///
21#[doc = "*Re-exported from [`alloc::vec`][macro@crate::_dep::_alloc::vec]*."]
22#[doc = "\n\n---"]
23///
24/// The reason of the `_` suffix is to avoid conflicting with Rust's prelude
25/// when glob importing from this crate. Since this macro has the same name
26/// as its sibling module `std::vec`, in order to be able to re-export
27/// only the macro we have to wrap it with our own.
28#[macro_export]
29#[cfg(feature = "alloc")]
30#[cfg_attr(feature = "nightly_doc", doc(cfg(feature = "alloc")))]
31#[cfg_attr(cargo_primary_package, doc(hidden))]
32macro_rules! vec_ { ($($tt:tt)*) => { $crate::_dep::_alloc::vec![$($tt)*] } }
33#[cfg(feature = "alloc")]
34#[doc(inline)]
35pub use vec_;