Function pdbtbx::open[][src]

pub fn open(
    filename: &str,
    level: StrictnessLevel
) -> Result<(PDB, Vec<PDBError>), Vec<PDBError>>

Open an atomic data file, either PDB or mmCIF/PDBx. The correct type will be determined based on the extension of the file. Returns an PDBError when it found a BreakingError. Otherwise it returns the PDB with all errors/warnings found while parsing it.