pub trait ExecSpecIndex<'a>: Sized + DeepView<V = Seq<<Self::Elem as DeepView>::V>> {
type Elem: DeepView;
// Required method
exec fn exec_index(self, index: usize) -> Self::Elem;
}
Expand description
Spec for executable version of Seq
indexing.
Required Associated Types§
Required Methods§
Sourceexec fn exec_index(self, index: usize) -> Self::Elem
exec fn exec_index(self, index: usize) -> Self::Elem
requires
0 <= index < self.deep_view().len(),
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.