diff --git a/src/tinyvec.rs b/src/tinyvec.rs index fc2296d..aa8945d 100644 --- a/src/tinyvec.rs +++ b/src/tinyvec.rs @@ -859,6 +859,7 @@ impl TinyVec { /// Draining iterator for `TinyVecDrain` /// /// See [`TinyVecDrain::drain`](TinyVecDrain::::drain) +#[cfg_attr(docs_rs, doc(cfg(feature = "alloc")))] pub enum TinyVecDrain<'p, A: Array> { #[allow(missing_docs)] Inline(ArrayVecDrain<'p, A::Item>), @@ -908,6 +909,7 @@ impl<'p, A: Array> DoubleEndedIterator for TinyVecDrain<'p, A> { /// Splicing iterator for `TinyVec` /// See [`TinyVec::splice`](TinyVec::::splice) +#[cfg_attr(docs_rs, doc(cfg(feature = "alloc")))] pub struct TinyVecSplice<'p, A: Array, I: Iterator> { parent: &'p mut TinyVec, removal_start: usize, @@ -1130,6 +1132,7 @@ impl FromIterator for TinyVec { } /// Iterator for consuming an `TinyVec` and returning owned elements. +#[cfg_attr(docs_rs, doc(cfg(feature = "alloc")))] pub enum TinyVecIterator { #[allow(missing_docs)] Inline(ArrayVecIterator), @@ -1439,6 +1442,7 @@ where } #[cfg(feature = "serde")] +#[cfg_attr(docs_rs, doc(cfg(feature = "alloc")))] struct TinyVecVisitor(PhantomData); #[cfg(feature = "serde")]