pub trait SliceSubset<T> { // Required methods fn len(&self) -> usize; fn get(&self, idx: usize) -> Option<&T>; // Provided method fn is_empty(&self) -> bool { ... } }
Returns None if idx >= Self::len.
None
idx >= Self::len