#[non_exhaustive]#[repr(C)]pub enum BondOrder {
Unknown = 0,
Single = 1,
Double = 2,
Triple = 3,
Quadruple = 4,
Quintuplet = 5,
Amide = 254,
Aromatic = 255,
}
Expand description
Possible bond order associated with bonds
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown = 0
Unknown or unspecified bond order
Single = 1
Single bond
Double = 2
Double bond
Triple = 3
Triple bond
Quadruple = 4
Quadruple bond (present in some metals)
Quintuplet = 5
Quintuplet bond (present in some metals)
Amide = 254
Amide bond (required by some file formats)
Aromatic = 255
Aromatic bond (required by some file formats)
Trait Implementations§
source§impl Ord for BondOrder
impl Ord for BondOrder
source§impl PartialEq for BondOrder
impl PartialEq for BondOrder
source§impl PartialOrd for BondOrder
impl PartialOrd for BondOrder
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for BondOrder
impl Eq for BondOrder
impl StructuralEq for BondOrder
impl StructuralPartialEq for BondOrder
Auto Trait Implementations§
impl RefUnwindSafe for BondOrder
impl Send for BondOrder
impl Sync for BondOrder
impl Unpin for BondOrder
impl UnwindSafe for BondOrder
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