pub enum SquarePlanarPermutation {
SP1,
SP2,
SP3,
}Expand description
A @SP1/@SP2/@SP3 square-planar stereo tag (OpenSMILES’s extended
chirality-class syntax, e.g. Pt(II)/Pd(II) complexes like cisplatin).
Each variant names which pair of the 4 explicit neighbor positions
(0-indexed, in the order recorded by crate::Molecule::stereo_neighbor_order)
sit trans (~180°) to each other:
SP1: positions (0,2) trans, (1,3) transSP2: positions (0,1) trans, (2,3) transSP3: positions (0,3) trans, (1,2) trans
Oracle-verified against RDKit 2026.03.3 (3D embedding bond angles, cross-checked
against RDKit’s own documented cisplatin/transplatin example) — see
docs/rfcs/square_planar_stereo_rfc.md.
Variants§
Implementations§
Source§impl SquarePlanarPermutation
impl SquarePlanarPermutation
Sourcepub fn trans_pairs(self) -> [(u8, u8); 2]
pub fn trans_pairs(self) -> [(u8, u8); 2]
The two trans-pairs this permutation implies, as 0-indexed neighbor positions.
Trait Implementations§
Source§impl Clone for SquarePlanarPermutation
impl Clone for SquarePlanarPermutation
Source§fn clone(&self) -> SquarePlanarPermutation
fn clone(&self) -> SquarePlanarPermutation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SquarePlanarPermutation
Source§impl Debug for SquarePlanarPermutation
impl Debug for SquarePlanarPermutation
impl Eq for SquarePlanarPermutation
Source§impl Hash for SquarePlanarPermutation
impl Hash for SquarePlanarPermutation
Source§impl PartialEq for SquarePlanarPermutation
impl PartialEq for SquarePlanarPermutation
impl StructuralPartialEq for SquarePlanarPermutation
Auto Trait Implementations§
impl Freeze for SquarePlanarPermutation
impl RefUnwindSafe for SquarePlanarPermutation
impl Send for SquarePlanarPermutation
impl Sync for SquarePlanarPermutation
impl Unpin for SquarePlanarPermutation
impl UnsafeUnpin for SquarePlanarPermutation
impl UnwindSafe for SquarePlanarPermutation
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