pub enum BondOrder {
Single,
Double,
Triple,
Quadruple,
Aromatic,
Up,
Down,
}Expand description
Bond order, covering all SMILES bond types.
Variants§
Single
Single bond -
Double
Double bond =
Triple
Triple bond #
Quadruple
Quadruple bond $ (used in some metal complexes)
Aromatic
Aromatic bond : (pre-Kekulization representation)
Up
Stereo bond / (E/Z specification)
Down
Stereo bond \ (E/Z specification)
Implementations§
Source§impl BondOrder
impl BondOrder
Sourcepub fn order_value(self) -> Option<f32>
pub fn order_value(self) -> Option<f32>
Fractional bond order. Returns None for aromatic (non-integer).
Sourcepub fn order_int(self) -> u8
pub fn order_int(self) -> u8
Integer bond order used for valence calculations. Aromatic and stereo bonds count as 1.
Sourcepub fn smiles_char(self) -> char
pub fn smiles_char(self) -> char
The SMILES character that represents this bond order.
Trait Implementations§
impl Copy for BondOrder
impl Eq for BondOrder
impl StructuralPartialEq for BondOrder
Auto Trait Implementations§
impl Freeze for BondOrder
impl RefUnwindSafe for BondOrder
impl Send for BondOrder
impl Sync for BondOrder
impl Unpin for BondOrder
impl UnsafeUnpin 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