pub trait IndexLogic<I: ?Sized> {
type Item;
// Required method
fn index_logic(self, idx: I) -> Self::Item;
}Expand description
Used for indexing operations (container[index]) in pearlite.
Required Associated Types§
Required Methods§
Sourcefn index_logic(self, idx: I) -> Self::Item
fn index_logic(self, idx: I) -> Self::Item
Performs the indexing (container[index]) operation.
⚠
Implementations on Foreign Types§
Source§impl<T> IndexLogic<usize> for [T]
impl<T> IndexLogic<usize> for [T]
Source§impl<T> IndexLogic<Int> for [T]
impl<T> IndexLogic<Int> for [T]
Source§impl<T, A: Allocator> IndexLogic<usize> for VecDeque<T, A>
Available on crate feature nightly only.
impl<T, A: Allocator> IndexLogic<usize> for VecDeque<T, A>
Available on crate feature
nightly only.Source§impl<T, A: Allocator> IndexLogic<usize> for Vec<T, A>
Available on crate feature nightly only.
impl<T, A: Allocator> IndexLogic<usize> for Vec<T, A>
Available on crate feature
nightly only.Source§impl<T, A: Allocator> IndexLogic<Int> for VecDeque<T, A>
Available on crate feature nightly only.
impl<T, A: Allocator> IndexLogic<Int> for VecDeque<T, A>
Available on crate feature
nightly only.