balsa 0.3.2

Reference implementation for the Balsa molecular line notation.
Documentation
use crate::feature::BondKind;

#[derive(Debug, PartialEq, Clone)]
pub struct Bond {
    pub kind: BondKind,
    pub tid: usize,
}

impl Bond {
    pub fn elided(tid: usize) -> Self {
        Self {
            kind: BondKind::Elided,
            tid,
        }
    }

    pub fn single(tid: usize) -> Self {
        Self {
            kind: BondKind::Single,
            tid,
        }
    }

    pub fn double(tid: usize) -> Self {
        Self {
            kind: BondKind::Double,
            tid,
        }
    }

    pub fn triple(tid: usize) -> Self {
        Self {
            kind: BondKind::Triple,
            tid,
        }
    }
}