Trait Downcasted

Source
pub trait Downcasted<'a>: IntoIterator {
    // Required method
    fn downcasted<T>(self) -> Box<dyn Iterator<Item = T> + 'a>
       where T: DowncastFrom<Self::Item>;
}

Required Methods§

Source

fn downcasted<T>(self) -> Box<dyn Iterator<Item = T> + 'a>
where T: DowncastFrom<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§

Source§

impl<'a, I> Downcasted<'a> for I
where I: IntoIterator + 'a,