pub struct ProteinStructure {
pub pdb_id: String,
pub sequence: String,
pub secondary: Vec<SecondaryStructure>,
pub resolution_angstrom: f64,
}Expand description
Protein structure data.
Fields§
§pdb_id: String§sequence: String§secondary: Vec<SecondaryStructure>§resolution_angstrom: f64Implementations§
Source§impl ProteinStructure
impl ProteinStructure
Sourcepub fn new(
pdb_id: &str,
seq: &str,
ss: Vec<SecondaryStructure>,
res: f64,
) -> Self
pub fn new( pdb_id: &str, seq: &str, ss: Vec<SecondaryStructure>, res: f64, ) -> Self
Create protein structure record.
Sourcepub fn helix_fraction(&self) -> f64
pub fn helix_fraction(&self) -> f64
Fraction of helix.
Sourcepub fn is_high_resolution(&self) -> bool
pub fn is_high_resolution(&self) -> bool
High resolution?
Trait Implementations§
Source§impl Clone for ProteinStructure
impl Clone for ProteinStructure
Source§fn clone(&self) -> ProteinStructure
fn clone(&self) -> ProteinStructure
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 moreAuto Trait Implementations§
impl Freeze for ProteinStructure
impl RefUnwindSafe for ProteinStructure
impl Send for ProteinStructure
impl Sync for ProteinStructure
impl Unpin for ProteinStructure
impl UnsafeUnpin for ProteinStructure
impl UnwindSafe for ProteinStructure
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