#[repr(C)]pub struct lc_pair {
pub i: c_int,
pub j: c_int,
pub shift: [c_int; 3],
pub dist2: f64,
}Expand description
One cutoff row: source i, target j, shift S, squared distance.
The C++ linkcell::ShiftedPair has this layout.
Fields§
§i: c_intSource index.
j: c_intTarget index.
shift: [c_int; 3]Integer cell shift (na, nb, nc) applied to the target.
dist2: f64Squared distance after the shift.
Trait Implementations§
impl Copy for lc_pair
impl StructuralPartialEq for lc_pair
Auto Trait Implementations§
impl Freeze for lc_pair
impl RefUnwindSafe for lc_pair
impl Send for lc_pair
impl Sync for lc_pair
impl Unpin for lc_pair
impl UnsafeUnpin for lc_pair
impl UnwindSafe for lc_pair
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more