sigma_types

Type Alias Sorted

Source
pub type Sorted<Iter, const ALLOW_DUPLICATES: bool> = Sigma<Iter, SortedInvariant<Iter, ALLOW_DUPLICATES>>;
Expand description

Iterable data structure guaranteed to be sorted (optionally with or without duplicates).

Aliased Type§

struct Sorted<Iter, const ALLOW_DUPLICATES: bool> { /* private fields */ }

Trait Implementations§

Source§

impl<Iter: Iterator + Debug, const ALLOW_DUPLICATES: bool> IntoIterator for Sorted<Iter, ALLOW_DUPLICATES>
where for<'i> &'i Iter: IntoIterator, for<'i> <&'i Iter as IntoIterator>::Item: Debug + PartialOrd,

Source§

type IntoIter = <Iter as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?
Source§

type Item = <Iter as IntoIterator>::Item

The type of the elements being iterated over.
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more