pub trait Idx:
Sized
+ Copy
+ 'static {
// Required methods
fn new(idx: usize) -> Self;
fn index(self) -> usize;
// Provided methods
fn inc_one(&mut self) -> Self { ... }
fn increment_by(&mut self, amount: usize) { ... }
fn plus(self, amount: usize) -> Self { ... }
}
Required Methods§
Provided Methods§
fn inc_one(&mut self) -> Self
fn increment_by(&mut self, amount: usize)
fn plus(self, amount: usize) -> Self
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.