sigma_types

Type Alias Sorted

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

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

Aliased Type§

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

Trait Implementations§

Source§

impl<Input: IntoIterator + Debug, const ALLOW_DUPLICATES: bool> IntoIterator for Sorted<Input, ALLOW_DUPLICATES>
where Input::Item: PartialOrd + Debug, for<'i> &'i Input: IntoIterator<Item = &'i Input::Item>,

Source§

type IntoIter = <Input as IntoIterator>::IntoIter

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

type Item = <Input 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