Skip to main content

Ordered

Trait Ordered 

Source
pub trait Ordered<'a, T: 'a + PartialOrd> {
    type Iter: Iterator<Item = &'a T>;

    // Required method
    fn ordered_iter(&'a self) -> Self::Iter;
}

Required Associated Types§

Source

type Iter: Iterator<Item = &'a T>

Required Methods§

Source

fn ordered_iter(&'a self) -> Self::Iter

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'a, T: 'a + PartialOrd> Ordered<'a, T> for BTreeSet<T>

Available on crate feature std only.
Source§

type Iter = Iter<'a, T>

Source§

fn ordered_iter(&'a self) -> Self::Iter

Implementors§

Source§

impl<'a, T: 'a + PartialOrd, const S: usize> Ordered<'a, T> for OrderedArraySet<T, S>

Source§

type Iter = Iter<'a, T>

Source§

impl<'a, T: PartialOrd> Ordered<'a, T> for OrderedSliceSet<'a, T>

Source§

type Iter = Iter<'a, T>