pub struct BondGraph {
pub bonds: Vec<Bond>,
/* private fields */
}Expand description
Connectivity graph over the P1 cell.
Fields§
§bonds: Vec<Bond>Perceived bonds.
Implementations§
Source§impl BondGraph
impl BondGraph
Sourcepub fn from_explicit(structure: &Structure) -> Result<Self, Error>
pub fn from_explicit(structure: &Structure) -> Result<Self, Error>
Connectivity from the explicit bonds only.
This is the graph a builder states: distances are not perceived, so a close contact across a pore is not silently made a bond. The structure must be P1 (the carbon builders are), because an explicit bond names an atom index in the P1 cell.
§Errors
Returns Error::InvalidInput for a non-P1 structure or a failed
P1 expansion.
Sourcepub fn components(&self) -> Vec<Vec<usize>>
pub fn components(&self) -> Vec<Vec<usize>>
Connected components as sorted atom-index lists.
Trait Implementations§
impl StructuralPartialEq for BondGraph
Auto Trait Implementations§
impl Forget for BondGraph
impl Freeze for BondGraph
impl Move for BondGraph
impl RefUnwindSafe for BondGraph
impl Send for BondGraph
impl Sync for BondGraph
impl Unpin for BondGraph
impl UnsafeUnpin for BondGraph
impl UnwindSafe for BondGraph
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