[][src]Function pdbtbx::save

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

Save the given PDB struct to the given file. It validates and renumbers the PDB. It fails if the validation fails with the given level. If validation or renumbering gives rise to problems use the save_raw function.