Trait creusot_contracts::logic::ops::IndexLogic
source · 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