Skip to main content

Iterable

Trait Iterable 

Source
pub trait Iterable<T>: Sized {
    // Required method
    fn sorted_by<F>(self, compare: F) -> Self
       where F: FnMut(&T, &T) -> Ordering;
}

Required Methods§

Source

fn sorted_by<F>(self, compare: F) -> Self
where F: FnMut(&T, &T) -> Ordering,

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T> Iterable<T> for Vec<T>

Source§

fn sorted_by<F>(self, compare: F) -> Self
where F: FnMut(&T, &T) -> Ordering,

Implementors§