Expand description
Const equivalent of iterators with a specific next
function signature.
The docs for ConstIntoIter
has more information on
const equivalents of IntoIterator and Iterator.
Re-exports§
pub use crate::polymorphism::kinds::IsIntoIterKind;
pub use crate::polymorphism::kinds::IsIteratorKind;
pub use crate::polymorphism::kinds::IsStdKind;
Modules§
- Documentation on the iterator DSL that some
konst::iter
macros support.
Macros§
- Collects an iterator constant into an array
- Emulates iterator method chains, by expanding to equivalent code.
- Iterates over all elements of an iterator, const equivalent of
Iterator::for_each
- Macro for converting
ConstIntoIter
implementors into const iterators.
Structs§
- Wrapper for
ConstIntoIter
implementors, that defines different methods depending on the value ofK
. - Marker type for proving that
T: ConstIntoIter<Kind = K>
- Const analog of
core::iter::Repeat
, constructed byrepeat
.
Traits§
- Const analog of the
IntoIterator
trait. - Trait for all the types that can be iterated over with ranges.
Functions§
- Const analog of
core::iter::repeat
, except that this requires the repeated value to implCopy
(instead ofClone
).