pub trait TupleGet {
type Output;
// Required methods
fn get(&self, index: usize) -> &Self::Output;
fn try_get(&self, index: usize) -> Option<&Self::Output>;
}
Expand description
Get the nth item of the tuple
pub trait TupleGet {
type Output;
// Required methods
fn get(&self, index: usize) -> &Self::Output;
fn try_get(&self, index: usize) -> Option<&Self::Output>;
}
Get the nth item of the tuple