Trait chalk_ir::cast::Caster

source ·
pub trait Caster: Iterator + Sized {
    // Provided method
    fn casted<U>(self, interner: U::Interner) -> Casted<Self, U> 
       where Self::Item: CastTo<U>,
             U: HasInterner { ... }
}
Expand description

An iterator adapter that casts each element we are iterating over to some other type.

Provided Methods§

source

fn casted<U>(self, interner: U::Interner) -> Casted<Self, U>
where Self::Item: CastTo<U>, U: HasInterner,

Cast each element in this iterator.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<I> Caster for I
where I: Iterator,