#[non_exhaustive]pub enum GeometricRequest<'a> {
Within {
universe: &'a AtomSelection,
target: &'a AtomSelection,
radius: f32,
include_target: bool,
},
Beyond {
universe: &'a AtomSelection,
target: &'a AtomSelection,
radius: f32,
},
SphereZone {
universe: &'a AtomSelection,
target: &'a AtomSelection,
radius: f32,
},
SphereLayer {
universe: &'a AtomSelection,
target: &'a AtomSelection,
inner: f32,
outer: f32,
},
IsoLayer {
universe: &'a AtomSelection,
target: &'a AtomSelection,
inner: f32,
outer: f32,
},
CylinderZone {
universe: &'a AtomSelection,
target: &'a AtomSelection,
radius: f32,
z_max: f32,
z_min: f32,
},
CylinderLayer {
universe: &'a AtomSelection,
target: &'a AtomSelection,
inner: f32,
outer: f32,
z_max: f32,
z_min: f32,
},
Point {
universe: &'a AtomSelection,
point: [f32; 3],
radius: f32,
},
}Expand description
A fully planned geometric predicate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Within
Radius search around target atoms.
Fields
universe: &'a AtomSelectionAtoms eligible for the result.
target: &'a AtomSelectionCentres of the radius search.
Beyond
Atoms further than a radius from every target.
Fields
universe: &'a AtomSelectionAtoms eligible for the result.
target: &'a AtomSelectionCentres excluded around.
SphereZone
Sphere around the target centre of geometry.
Fields
universe: &'a AtomSelectionAtoms eligible for the result.
target: &'a AtomSelectionAtoms defining the centre.
SphereLayer
Spherical shell around the target centre of geometry.
Fields
universe: &'a AtomSelectionAtoms eligible for the result.
target: &'a AtomSelectionAtoms defining the centre.
IsoLayer
Union of shells around each target atom.
Fields
universe: &'a AtomSelectionAtoms eligible for the result.
target: &'a AtomSelectionShell centres.
CylinderZone
Cylinder around the target centre and global z axis.
Fields
universe: &'a AtomSelectionAtoms eligible for the result.
target: &'a AtomSelectionAtoms defining the centre.
CylinderLayer
Cylindrical shell around the target centre and global z axis.
Fields
universe: &'a AtomSelectionAtoms eligible for the result.
target: &'a AtomSelectionAtoms defining the centre.
Point
Sphere around an absolute Cartesian point.
Trait Implementations§
Source§impl<'a> Clone for GeometricRequest<'a>
impl<'a> Clone for GeometricRequest<'a>
impl<'a> Copy for GeometricRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for GeometricRequest<'a>
impl<'a> RefUnwindSafe for GeometricRequest<'a>
impl<'a> Send for GeometricRequest<'a>
impl<'a> Sync for GeometricRequest<'a>
impl<'a> Unpin for GeometricRequest<'a>
impl<'a> UnsafeUnpin for GeometricRequest<'a>
impl<'a> UnwindSafe for GeometricRequest<'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
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> ⓘ
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> ⓘ
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