pub struct RingSet(/* private fields */);Expand description
The Smallest Set of Smallest Rings for a molecule.
Each ring is stored as a sequence of AtomIdx values listed in ring order.
The first atom is not repeated at the end.
Implementations§
Source§impl RingSet
impl RingSet
Sourcepub fn ring_count(&self) -> usize
pub fn ring_count(&self) -> usize
Number of rings in the SSSR.
Sourcepub fn contains_atom(&self, atom: AtomIdx) -> bool
pub fn contains_atom(&self, atom: AtomIdx) -> bool
Whether atom atom is a member of at least one ring.
Sourcepub fn atoms_in_ring_count(&self, atom: AtomIdx) -> usize
pub fn atoms_in_ring_count(&self, atom: AtomIdx) -> usize
Number of rings that atom atom belongs to.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RingSet
impl RefUnwindSafe for RingSet
impl Send for RingSet
impl Sync for RingSet
impl Unpin for RingSet
impl UnsafeUnpin for RingSet
impl UnwindSafe for RingSet
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