Trait GetFirstOrLast

Source
pub trait GetFirstOrLast: Iterator + Sized {
    // Required method
    fn get_first_or_last(self, last: bool) -> Option<Self::Item>;
}

Required Methods§

Source

fn get_first_or_last(self, last: bool) -> Option<Self::Item>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§