Skip to content

Commit

Permalink
restricted to use_alloc
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnodas committed Sep 10, 2024
1 parent c07be49 commit 95ca9b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ pub mod structs {
FilterOk, Interleave, InterleaveShortest, MapInto, MapOk, Positions, Product, PutBack,
TakeWhileRef, TupleCombinations, Update, WhileSome,
};
#[cfg(feature = "use_alloc")]
pub use crate::array_combinations::ArrayCombinations;
#[cfg(feature = "use_alloc")]
pub use crate::combinations::Combinations;
Expand Down Expand Up @@ -178,6 +179,7 @@ pub use crate::either_or_both::EitherOrBoth;
pub mod free;
#[doc(inline)]
pub use crate::free::*;
#[cfg(feature = "use_alloc")]
mod array_combinations;
#[cfg(feature = "use_alloc")]
mod combinations;
Expand Down Expand Up @@ -1710,6 +1712,7 @@ pub trait Itertools: Iterator {
/// let it: ArrayCombinations<Range<u32>, 3> = (1..5).array_combinations();
/// itertools::assert_equal(it, vec![[1, 2, 3], [1, 2, 4], [1, 3, 4], [2, 3, 4]]);
/// ```
#[cfg(feature = "use_alloc")]
fn array_combinations<const K: usize>(self) -> ArrayCombinations<Self, K>
where
Self: Sized + Clone,
Expand Down

0 comments on commit 95ca9b2

Please sign in to comment.