[][src]Struct chalk_ir::cast::Casted

pub struct Casted<'i, IT, U: HasInterner> { /* fields omitted */ }

An iterator that casts each element to some other type.

Trait Implementations

impl<IT: Iterator, U, '_> Iterator for Casted<'_, IT, U> where
    IT::Item: CastTo<U>,
    U: HasInterner
[src]

type Item = U

The type of the elements being iterated over.

Auto Trait Implementations

impl<'i, IT, U> RefUnwindSafe for Casted<'i, IT, U> where
    IT: RefUnwindSafe,
    U: RefUnwindSafe,
    <U as HasInterner>::Interner: RefUnwindSafe

impl<'i, IT, U> Send for Casted<'i, IT, U> where
    IT: Send,
    U: Send,
    <U as HasInterner>::Interner: Sync

impl<'i, IT, U> Sync for Casted<'i, IT, U> where
    IT: Sync,
    U: Sync,
    <U as HasInterner>::Interner: Sync

impl<'i, IT, U> Unpin for Casted<'i, IT, U> where
    IT: Unpin,
    U: Unpin

impl<'i, IT, U> UnwindSafe for Casted<'i, IT, U> where
    IT: UnwindSafe,
    U: UnwindSafe,
    <U as HasInterner>::Interner: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Cast for T[src]

impl<I> Caster for I where
    I: Iterator
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.