pub enum Chirality {
None,
CounterClockwise,
Clockwise,
SquarePlanar(SquarePlanarPermutation),
}Expand description
Chirality as specified in OpenSMILES: tetrahedral (@/@@) or, since this
crate also models coordination complexes, square-planar (@SP1/@SP2/@SP3).
Variants§
None
No chirality specified.
CounterClockwise
@ — counterclockwise (looking from the first neighbor).
Clockwise
@@ — clockwise.
SquarePlanar(SquarePlanarPermutation)
@SP1/@SP2/@SP3 — square-planar (4-coordinate) stereo.
Implementations§
Source§impl Chirality
impl Chirality
Sourcepub fn is_tetrahedral(&self) -> bool
pub fn is_tetrahedral(&self) -> bool
true only for Self::CounterClockwise/Self::Clockwise — the classic
tetrahedral-parity forms every CIP/ECFP/dedup consumer written before
square-planar existed assumes. Consumers that mean “is this a real
tetrahedral stereocenter” must check this, not != Self::None, now that a
second non-tetrahedral kind of “not None” chirality exists.
Trait Implementations§
impl Copy for Chirality
impl Eq for Chirality
impl StructuralPartialEq for Chirality
Auto Trait Implementations§
impl Freeze for Chirality
impl RefUnwindSafe for Chirality
impl Send for Chirality
impl Sync for Chirality
impl Unpin for Chirality
impl UnsafeUnpin for Chirality
impl UnwindSafe for Chirality
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