Struct libdiffsitter::diff::MidSnakeInfo
source · pub struct MidSnakeInfo {
pub a_split: i32,
pub b_split: i32,
pub optimal_len: u32,
}
Expand description
Information relevant for a middle snake calculation
Fields§
§a_split: i32
The index in a
that corresponds to the middle snake
b_split: i32
The index in b
that corresponds to the middle snake
optimal_len: u32
the full length of the optimal path between the two inputs
Trait Implementations§
source§impl Debug for MidSnakeInfo
impl Debug for MidSnakeInfo
source§impl Ord for MidSnakeInfo
impl Ord for MidSnakeInfo
source§fn cmp(&self, other: &MidSnakeInfo) -> Ordering
fn cmp(&self, other: &MidSnakeInfo) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for MidSnakeInfo
impl PartialEq for MidSnakeInfo
source§fn eq(&self, other: &MidSnakeInfo) -> bool
fn eq(&self, other: &MidSnakeInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MidSnakeInfo
impl PartialOrd for MidSnakeInfo
source§fn partial_cmp(&self, other: &MidSnakeInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &MidSnakeInfo) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for MidSnakeInfo
impl StructuralEq for MidSnakeInfo
impl StructuralPartialEq for MidSnakeInfo
Auto Trait Implementations§
impl RefUnwindSafe for MidSnakeInfo
impl Send for MidSnakeInfo
impl Sync for MidSnakeInfo
impl Unpin for MidSnakeInfo
impl UnwindSafe for MidSnakeInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more