Skip to main content

Downcasted

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".

Implementors§

Source§

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