Skip to content

Commit

Permalink
Annotated the Term enum non exhaustive
Browse files Browse the repository at this point in the history
  • Loading branch information
douweschulte committed Jan 25, 2022
1 parent 46762f4 commit 2edd9f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/structs/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -19,7 +20,7 @@ pub enum Term {
ResidueInsertionCode(Option<String>),
/// The residue serial number and insertion code combined, see [Residue::id].
ResidueId(isize, Option<String>),
/// 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<String>),
Expand Down

0 comments on commit 2edd9f6

Please sign in to comment.