pub struct NeighborPair {
pub first: u32,
pub second: u32,
pub distance_squared: f32,
}Expand description
One unique unordered atom pair within a cutoff.
Fields§
§first: u32Lower atom index.
second: u32Higher atom index.
distance_squared: f32Squared separation in ångström squared.
Trait Implementations§
Source§impl Clone for NeighborPair
impl Clone for NeighborPair
impl Copy for NeighborPair
Source§impl Debug for NeighborPair
impl Debug for NeighborPair
Source§impl PartialEq for NeighborPair
impl PartialEq for NeighborPair
impl StructuralPartialEq for NeighborPair
Auto Trait Implementations§
impl Freeze for NeighborPair
impl RefUnwindSafe for NeighborPair
impl Send for NeighborPair
impl Sync for NeighborPair
impl Unpin for NeighborPair
impl UnsafeUnpin for NeighborPair
impl UnwindSafe for NeighborPair
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