pub struct BondTable { /* private fields */ }Expand description
A compact, immutable edge table.
Implementations§
Source§impl BondTable
impl BondTable
Sourcepub const fn is_available(&self) -> bool
pub const fn is_available(&self) -> bool
Whether connectivity was resolved, including a known empty graph.
Sourcepub fn get(&self, bond: BondIndex) -> Option<BondRecord>
pub fn get(&self, bond: BondIndex) -> Option<BondRecord>
Returns one edge by position.
Sourcepub fn iter(&self) -> impl ExactSizeIterator
pub fn iter(&self) -> impl ExactSizeIterator
Walks records in stable endpoint order.
Sourcepub fn kinds(&self) -> &[OptionalSymbol]
pub fn kinds(&self) -> &[OptionalSymbol]
The interned connection classification of each edge, position for
position with iter.
The identifiers belong to the dictionary of the structure that owns this table; resolving one requires that structure.
Sourcepub fn adjacency(&self, atom_count: u32) -> &BondAdjacency
pub fn adjacency(&self, atom_count: u32) -> &BondAdjacency
Returns a cached compact adjacency index for graph traversal.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BondTable
impl RefUnwindSafe for BondTable
impl Send for BondTable
impl Sync for BondTable
impl Unpin for BondTable
impl UnsafeUnpin for BondTable
impl UnwindSafe for BondTable
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more