pub struct PbcQuery<'a> {
pub periodic: [bool; 3],
pub cutoff: f64,
pub mask: Option<&'a [bool]>,
pub cell_hint: Option<f64>,
pub half: bool,
pub closed: bool,
pub exclude_self_images: bool,
}Expand description
Options for pairs_within_pbc.
Fields§
§periodic: [bool; 3]periodic[k] is false when lattice axis k is open.
cutoff: f64Pairs with squared distance below cutoff squared are kept.
Self::closed also keeps the boundary.
mask: Option<&'a [bool]>None keeps every point. A false entry drops that point as
both source and candidate.
cell_hint: Option<f64>Bin edge. None uses the cutoff, which does not move when the
bounding span jitters inside a bin.
half: boolKeep one side of (i, j, S).
closed: boolAlso keep dist2 == cutoff² on an open or mixed cell.
exclude_self_images: boolDrop rows with i == j, including a periodic image of the source.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PbcQuery<'a>
impl<'a> RefUnwindSafe for PbcQuery<'a>
impl<'a> Send for PbcQuery<'a>
impl<'a> Sync for PbcQuery<'a>
impl<'a> Unpin for PbcQuery<'a>
impl<'a> UnsafeUnpin for PbcQuery<'a>
impl<'a> UnwindSafe for PbcQuery<'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> 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