[][src]Struct gc_sequence::map_result::MapError

#[must_use = "sequences do nothing unless stepped"]
pub struct MapError<S, F>(_, _);

Methods

impl<S, F> MapError<S, F>[src]

pub fn new(s: S, f: F) -> MapError<S, F>[src]

Trait Implementations

impl<'gc, S, F, I, E, R> Sequence<'gc> for MapError<S, F> where
    S: Sequence<'gc, Output = Result<I, E>>,
    F: 'static + FnOnce(E) -> R, 
[src]

type Output = Result<I, R>

impl<S, F> Drop for MapError<S, F>[src]

impl<S: Debug, F: Debug> Debug for MapError<S, F>[src]

impl<S, F> Collect for MapError<S, F> where
    S: Collect,
    Option<StaticCollect<F>>: Collect
[src]

Auto Trait Implementations

impl<S, F> Send for MapError<S, F> where
    F: Send,
    S: Send

impl<S, F> Sync for MapError<S, F> where
    F: Sync,
    S: Sync

Blanket Implementations

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

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

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.

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

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

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