pub trait ToOffset: PartialOrd {
// Required method
fn to_offset(self, length: usize) -> usize;
}
Expand description
Trait to allow all main signed and unsigne integer where negative values are treated as offsets from the end, defined by length -1 == length -1 0 == start 1 == second position should values fall outside the range
Required Methods§
Object Safety§
This trait is not object safe.