pub struct SeqresRecord {
pub ser_num: u32,
pub chain_id: char,
pub num_res: i16,
pub res_names: Vec<String>,
}Expand description
Represents a SEQRES record containing sequence information.
SEQRES records contain the amino acid or nucleic acid sequence of residues in each chain of the macromolecule. Multiple SEQRES records may be used for a single chain if the sequence is long.
§Fields
ser_num: Serial number of the SEQRES record for the current chainchain_id: Chain identifiernum_res: Total number of residues in the chainres_names: List of residue names in this record
§Example
use knuckles_parse::records::seqres::SeqresRecord;
let line = "SEQRES 1 A 147 THR SER ASN PHE ALA ASP GLY LYS ASP ALA ILE LEU GLU";
let seqres = SeqresRecord::from(line);
assert_eq!(seqres.chain_id, 'A');
assert_eq!(seqres.num_res, 147);Fields§
§ser_num: u32Serial number of this SEQRES record for the current chain
chain_id: charChain identifier
num_res: i16Total number of residues in the chain
res_names: Vec<String>List of residue names in this SEQRES record
Implementations§
Trait Implementations§
Source§impl Clone for SeqresRecord
impl Clone for SeqresRecord
Source§fn clone(&self) -> SeqresRecord
fn clone(&self) -> SeqresRecord
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SeqresRecord
impl Debug for SeqresRecord
Auto Trait Implementations§
impl Freeze for SeqresRecord
impl RefUnwindSafe for SeqresRecord
impl Send for SeqresRecord
impl Sync for SeqresRecord
impl Unpin for SeqresRecord
impl UnwindSafe for SeqresRecord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more