pub struct PairQuery<'a> {
pub positions: &'a [[f32; 3]],
pub left: &'a AtomSelection,
pub right: &'a AtomSelection,
pub cutoff: f32,
pub options: SpatialSearchOptions,
pub periodic: Option<&'a PeriodicBox>,
pub context: &'a ExecutionContext,
}Expand description
Everything a fixed-radius query needs, so a reduction takes three arguments.
Fields§
§positions: &'a [[f32; 3]]Coordinates that every index in both selections refers to.
left: &'a AtomSelectionThe selection each pair’s first endpoint is drawn from.
right: &'a AtomSelectionThe selection each pair’s second endpoint is drawn from.
cutoff: f32The inclusive distance within which two atoms form a pair.
options: SpatialSearchOptionsBackend and grid selection.
periodic: Option<&'a PeriodicBox>The periodic cell to apply the minimum image convention over, if any.
context: &'a ExecutionContextShared execution budget and native worker pool.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PairQuery<'a>
impl<'a> !UnwindSafe for PairQuery<'a>
impl<'a> Freeze for PairQuery<'a>
impl<'a> Send for PairQuery<'a>
impl<'a> Sync for PairQuery<'a>
impl<'a> Unpin for PairQuery<'a>
impl<'a> UnsafeUnpin for PairQuery<'a>
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