[−][src]Struct gchemol_core::Bond
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,