Trait Try

Source
pub trait Try<E> {
    type Ok;

    // Required method
    fn try(self) -> Result<Self::Ok, E>;
}

Required Associated Types§

Source

type Ok

Sequence of Ok Results

Required Methods§

Source

fn try(self) -> Result<Self::Ok, E>

Implementors§

Source§

impl<E> Try<E> for List<()>

Source§

impl<E> Try<E> for Queue<()>

Source§

impl<E, H, T, Z> Try<E> for List<(Result<H, E>, T)>
where T: Try<E, Ok = Z>,

Source§

impl<E, H, T, Z> Try<E> for Queue<(H, Result<T, E>)>
where H: Try<E, Ok = Z>,