[][src]Trait try_traits::ops::TryIndex

pub trait TryIndex<Idx> {
    type Error;
    type Output: ?Sized;
    fn try_index(&self, index: Idx) -> Result<&Self::Output, Self::Error>;
}

Associated Types

type Error

The type returned in the event of an error.

type Output: ?Sized

The type returned after performing the operation.

Loading content...

Required methods

fn try_index(&self, index: Idx) -> Result<&Self::Output, Self::Error>

The fallible equivalent of Index::index.

Loading content...

Implementors

impl<T: Index<Idx>, Idx> TryIndex<Idx> for T[src]

type Error = Infallible

type Output = Self::Output

Loading content...