swc_common::iter

Trait IdentifyLast

Source
pub trait IdentifyLast: Iterator + Sized {
    // Required method
    fn identify_last(self) -> Iter<Self> ;
}
Expand description

Copied from https://users.rust-lang.org/t/iterator-need-to-identify-the-last-element/8836/3

Required Methods§

Source

fn identify_last(self) -> Iter<Self>

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§

Source§

impl<It> IdentifyLast for It
where It: Iterator,