pub trait SizedIndex<I: Uint>: Index<I> {
// Required method
fn length(&self) -> I;
// Provided methods
fn is_empty(&self) -> bool { ... }
fn last(&self) -> Option<&Self::Output> { ... }
fn index_iter(self) -> IndexIter<I, Self> ⓘ
where Self: Sized { ... }
}Expand description
Required Methods§
Provided Methods§
fn is_empty(&self) -> bool
fn last(&self) -> Option<&Self::Output>
fn index_iter(self) -> IndexIter<I, Self> ⓘwhere
Self: Sized,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".