pub struct StereoGroup {
pub kind: StereoGroupKind,
pub atom_indices: Vec<AtomIdx>,
}Expand description
A named collection of stereocenters with a shared ambiguity classification.
Stored in [Molecule::stereo_groups]. The atom_indices list the
0-based internal AtomIdx values of the stereocenters that belong to
this group.
Fields§
§kind: StereoGroupKind§atom_indices: Vec<AtomIdx>Implementations§
Source§impl StereoGroup
impl StereoGroup
Sourcepub fn new(kind: StereoGroupKind, atom_indices: Vec<AtomIdx>) -> Self
pub fn new(kind: StereoGroupKind, atom_indices: Vec<AtomIdx>) -> Self
Construct a new stereo group.
Duplicate atom indices are silently removed (RDKit PR #9258: duplicate indices in StereoGroups caused heap-use-after-free during removeHs).
Trait Implementations§
Source§impl Clone for StereoGroup
impl Clone for StereoGroup
Source§fn clone(&self) -> StereoGroup
fn clone(&self) -> StereoGroup
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 moreSource§impl Debug for StereoGroup
impl Debug for StereoGroup
impl Eq for StereoGroup
Source§impl PartialEq for StereoGroup
impl PartialEq for StereoGroup
Source§fn eq(&self, other: &StereoGroup) -> bool
fn eq(&self, other: &StereoGroup) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StereoGroup
Auto Trait Implementations§
impl Freeze for StereoGroup
impl RefUnwindSafe for StereoGroup
impl Send for StereoGroup
impl Sync for StereoGroup
impl Unpin for StereoGroup
impl UnsafeUnpin for StereoGroup
impl UnwindSafe for StereoGroup
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