pub struct ModelRecord {
pub serial: u32,
}
Expand description
Represents a MODEL record for multi-model PDB structures.
MODEL records are used in PDB files that contain multiple structural models of the same molecule (e.g., NMR structures, molecular dynamics snapshots). Each model is identified by a serial number.
§Fields
serial
: Model serial number
§Example
use knuckles_parse::records::model::ModelRecord;
let line = "MODEL 1 ";
let model = ModelRecord::from(line);
assert_eq!(model.serial, 1);
Fields§
§serial: u32
Model serial number
Implementations§
Source§impl ModelRecord
impl ModelRecord
Sourcepub fn new(str: &str) -> ModelRecord
pub fn new(str: &str) -> ModelRecord
Create a new ModelRecord by parsing a MODEL line.
Trait Implementations§
Source§impl Clone for ModelRecord
impl Clone for ModelRecord
Source§fn clone(&self) -> ModelRecord
fn clone(&self) -> ModelRecord
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 ModelRecord
impl Debug for ModelRecord
Source§impl Display for ModelRecord
impl Display for ModelRecord
Auto Trait Implementations§
impl Freeze for ModelRecord
impl RefUnwindSafe for ModelRecord
impl Send for ModelRecord
impl Sync for ModelRecord
impl Unpin for ModelRecord
impl UnwindSafe for ModelRecord
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