Struct chemrust_scanner::IntersectChecker
source · pub struct IntersectChecker<'a, T: CheckStage> { /* private fields */ }Implementations§
source§impl<'a> IntersectChecker<'a, Ready>
impl<'a> IntersectChecker<'a, Ready>
pub fn new(coords: &'a [Point3<f64>]) -> Self
pub fn start_with_radius(self, radius: f64) -> IntersectChecker<'a, SphereStage>
source§impl<'a> IntersectChecker<'a, SphereStage>
impl<'a> IntersectChecker<'a, SphereStage>
sourcepub fn check_spheres(self) -> IntersectChecker<'a, CircleStage>
pub fn check_spheres(self) -> IntersectChecker<'a, CircleStage>
Transition to CircleStage by collecting pure spheres, single points,
and circles from current stage intersect results.
§Caution: This function consumes self, copy data to create a new IntersectChecker
source§impl<'a> IntersectChecker<'a, CircleStage>
impl<'a> IntersectChecker<'a, CircleStage>
pub fn analyze_circle_intersects(self) -> IntersectChecker<'a, PointStage>
source§impl<'a> IntersectChecker<'a, PointStage>
impl<'a> IntersectChecker<'a, PointStage>
pub fn analyze_points(self) -> IntersectChecker<'a, FinalReport>
source§impl<'a> IntersectChecker<'a, FinalReport>
impl<'a> IntersectChecker<'a, FinalReport>
pub fn report(&self) -> &FinalReport
Auto Trait Implementations§
impl<'a, T> Freeze for IntersectChecker<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for IntersectChecker<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for IntersectChecker<'a, T>where
T: Send,
impl<'a, T> Sync for IntersectChecker<'a, T>where
T: Sync,
impl<'a, T> Unpin for IntersectChecker<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for IntersectChecker<'a, T>where
T: UnwindSafe,
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.