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.
logic ⚠
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
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.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<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.