//! Polymer chain structures.
usecrate::molecular::Molecule;/// A polymer: a repeated monomer unit with chain properties.
#[derive(Debug, Clone)]pubstructPolymerChain{pubname: String,
/// The monomer unit that is repeated.
pubmonomer: Molecule,
/// Number of monomer repeats.
pubchain_length:u32,
/// Cross-link density (0.0 = linear, 1.0 = fully cross-linked).
pubcross_link_density:f32,
/// Branching factor (0.0 = linear, 1.0 = highly branched).
pubbranching:f32,
}