pub trait IndexValue: Copy {
// Required method
fn position(self) -> i64;
// Provided method
fn bounds(values: &[Self]) -> (i64, i64) { ... }
}Expand description
A value that names a position along an axis: a Boolean or an integer. A float index value names the whole number it equals within the comparison tolerance, which crate::structure::float_position reads before any table holds it.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".