1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//! Core module for handling molecular structure file parsing and processing
//!
//! This module provides the core functionality for parsing and processing different
//! molecular structure file formats, including PDB and mmCIF files. It includes
//! structures and traits for handling atoms, chains, residues, and other molecular
//! components.
//!
//! # Module Organization
//!
//! - `pdb`: Handles Protein Data Bank (PDB) format parsing and representation
//! - Supports standard PDB format (*.pdb files)
//! - Handles ATOM, HETATM, SEQRES, and other record types
//!
//! - `mmcif`: Handles macromolecular Crystallographic Information File (mmCIF) format
//! - Supports mmCIF format (*.cif files)
//! - Provides category-based data access
//! - Handles both loop_ and non-loop data structures
//!
//! - `mmcif_converter`: Converts mmCIF parsed data into PdbStructure format
//! - Unified interface for both PDB and mmCIF data
//! - Maintains compatibility with existing code
//!
//! # Examples
//!
//! ```no_run
//! use pdbrust::core::{PdbStructure};
//! use pdbrust::parser::{parse_pdb_file, parse_mmcif_file, parse_structure_file};
//!
//! // Parse a PDB file
//! let pdb_structure = parse_pdb_file("structure.pdb").unwrap();
//!
//! // Parse an mmCIF file
//! let mmcif_structure = parse_mmcif_file("structure.cif").unwrap();
//!
//! // Auto-detect format and parse
//! let structure = parse_structure_file("structure.ent").unwrap();
//! ```
//!
//! # Feature Flags
//!
//! - `pdb`: Enabled by default, provides PDB format support
//! - `mmcif`: Enabled by default, provides mmCIF format support
// Re-export the public interfaces
pub use *;
pub use *;
pub use *;
// Common traits and types that are shared between formats could be defined here
/// Represents a molecular structure, regardless of the source format