pub trait Index:
Copy
+ Eq
+ Ord
+ Send
+ Sync
+ Debug
+ Add<Output = Self>
+ Sub<Output = Self> {
// Required methods
fn from_usize(v: usize) -> Self;
fn to_usize(self) -> usize;
fn zero() -> Self;
}Expand description
Trait implemented by integer types usable as suffix array indices.
Provided for u32, u64, and usize. Callers pick the narrowest type
large enough to address their text.
Required Methods§
Sourcefn from_usize(v: usize) -> Self
fn from_usize(v: usize) -> Self
Convert from usize. Panics if the value does not fit.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".