From 2edd9f67fb797bfaf8ca1578691a22a903f545a7 Mon Sep 17 00:00:00 2001 From: Douwe Schulte Date: Tue, 25 Jan 2022 14:20:51 +0100 Subject: [PATCH] Annotated the Term enum non exhaustive --- src/structs/search.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/structs/search.rs b/src/structs/search.rs index 29607e4..24e5446 100644 --- a/src/structs/search.rs +++ b/src/structs/search.rs @@ -8,6 +8,7 @@ use std::ops; /// way faster and feasible to use in high performance environments. #[allow(unused)] #[derive(Debug, Clone)] +#[non_exhaustive] pub enum Term { /// The model serial number, only used in (NMR) PDB files with multiple states of a protein, see [Model::serial_number]. ModelSerialNumber(usize), @@ -19,7 +20,7 @@ pub enum Term { ResidueInsertionCode(Option), /// The residue serial number and insertion code combined, see [Residue::id]. ResidueId(isize, Option), - /// The conformer name is eg `ALA`, see [Conformer::name]. + /// The conformer name eg `ALA`, see [Conformer::name]. ConformerName(String), /// The conformer alternative location eg `Some("A")`, see [Conformer::alternative_location]. ConformerAlternativeLocation(Option),