pub trait MoveOffset: Sized {
// Required methods
fn checked_move_offset(self, offset: isize) -> Option<Self>;
fn detailed_diff(self, other: Self) -> (Self, Ordering);
fn plain_diff(self, other: Self) -> Self;
}
Required Methods§
fn checked_move_offset(self, offset: isize) -> Option<Self>
fn detailed_diff(self, other: Self) -> (Self, Ordering)
fn plain_diff(self, other: Self) -> 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.
Implementations on Foreign Types§
Source§impl MoveOffset for usize
impl MoveOffset for usize
Source§fn detailed_diff(self, other: Self) -> (Self, Ordering)
fn detailed_diff(self, other: Self) -> (Self, Ordering)
returns (distance
, is_pos
)