use-bond
Small chemical bond primitives for RustUse chemistry crates.
use-bond represents bond identity, kind labels, orders, atom endpoint
references, participants, polarity labels, strength labels, optional displayable
lengths, optional angle/reference labels, and lightweight descriptors. It stays
structural and intentionally avoids molecular simulation, quantum chemistry,
force fields, reactions, molecule parsing, and external chemistry formats.
What this crate provides
| Item | Purpose |
|---|---|
Bond |
Chemical bond identity and optional metadata |
BondKind |
Bond kind labels |
BondOrder |
Bond order labels |
FractionalBondOrder |
Rational fractional bond order |
BondEndpoint |
Validated atom endpoint reference |
BondParticipant |
Validated bond participant reference |
BondLength |
Positive displayable bond length |
BondPolarity |
Bond polarity labels |
BondStrength |
Bond strength labels |
BondDescriptor |
Lightweight descriptor or reference label |
BondValidationError |
Structured validation errors |
Installation
[]
= "0.1.0"
Quick Examples
Create a simple covalent bond
use ;
let bond = new.with_order;
assert_eq!;
assert_eq!;
Create a bond between endpoint references
use ;
#
Attach lightweight descriptors
use ;
#
Scope
- Represents chemical bond identity, kind, order, endpoint references, participants, polarity, strength, optional displayable length, optional angle/reference labels, and descriptors.
- Keeps endpoints as structural labels. It does not validate periodic-table membership or parse molecule formats.
- Keeps bond length as a positive finite value with a caller-provided unit string. It does not convert units or perform dimensional analysis.
- Uses rational fractional bond orders instead of floating-point enum payloads.
- No molecular geometry.
- No force-field calculations.
- No orbital theory or quantum chemistry.
- No electronegativity calculations.
- No reactions or stoichiometry.
- No molecule parsing.
- No SMILES, InChI, MOL, SDF, PDB, or other external chemical file formats.
- No runtime network access or external chemistry database.
Relationship to use-chemistry
use-bond is a focused child crate for chemical bond primitives. The
use-chemistry umbrella crate reexports it alongside element, formula,
compound, molecule, isotope, periodic-table, atomic-number, atomic-mass, and
electron-shell helpers.