pub trait Offset {
// Required method
fn as_offset(&self) -> usize;
}Expand description
Trait for types that can be used as an array index.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".