[][src]Struct gchemol_core::Bond

pub struct Bond {
    pub properties: PropertyStore,
    // some fields omitted
}

There is a chemical bond between two atoms or groups of atoms in the case that the forces acting between them are such as to lead to the formation of an aggregate with sufficient stability to make it convenient for the chemist to consider it as an independent 'molecular species'.

Reference

https://goldbook.iupac.org/html/B/B00697.html

Fields

properties: PropertyStore

Arbitrary property stored in key-value pair. Key is a string type, but it is the responsibility of the user to correctly interpret the value.

Methods

impl Bond[src]

pub fn kind(&self) -> BondKind[src]

Returns bond kind/type.

pub fn set_kind(&mut self, k: BondKind)[src]

Change bond kind/type.

pub fn set_order(&mut self, o: f64)[src]

Change current bond order to o.

pub fn set_label<T: Into<String>>(&mut self, l: T)[src]

Change bond label.

pub fn label(&self) -> &str[src]

Returns bond label.

pub fn order(&self) -> f64[src]

Return bond order

pub fn single() -> Self[src]

Create a single bond

pub fn double() -> Self[src]

Create a double bond

pub fn triple() -> Self[src]

Create a triple bond

pub fn aromatic() -> Self[src]

Create an aromatic bond

pub fn partial() -> Self[src]

Create a weak bond

pub fn quadruple() -> Self[src]

Create a quadruple bond

pub fn dummy() -> Self[src]

Create a dummy bond

Trait Implementations

impl Clone for Bond[src]

impl Debug for Bond[src]

impl Default for Bond[src]

impl<'de> Deserialize<'de> for Bond[src]

impl Serialize for Bond[src]

Auto Trait Implementations

impl RefUnwindSafe for Bond

impl Send for Bond

impl Sync for Bond

impl Unpin for Bond

impl UnwindSafe for Bond

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,