Struct pdbtbx::DatabaseReference
source · pub struct DatabaseReference {
pub database: Database,
pub pdb_position: SequencePosition,
pub database_position: SequencePosition,
pub differences: Vec<SequenceDifference>,
}
Expand description
A DatabaseReference containing the cross-reference to a corresponding database sequence for a Chain.
Fields§
§database: Database
The information about the database, (name, accession code, identification code), see DBREF documentation wwPDB v3.30
pdb_position: SequencePosition
The position of the sequence as present in the PDB
database_position: SequencePosition
The position of the sequence as present in the database
differences: Vec<SequenceDifference>
The differences between residues in the database and in the pdb file
Implementations§
source§impl DatabaseReference
impl DatabaseReference
sourcepub fn new(
database: impl Into<Database>,
pdb_position: SequencePosition,
database_position: SequencePosition
) -> Self
pub fn new( database: impl Into<Database>, pdb_position: SequencePosition, database_position: SequencePosition ) -> Self
Create a new DatabaseReference
Trait Implementations§
source§impl Clone for DatabaseReference
impl Clone for DatabaseReference
source§fn clone(&self) -> DatabaseReference
fn clone(&self) -> DatabaseReference
Returns a copy 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 DatabaseReference
impl Debug for DatabaseReference
source§impl<'de> Deserialize<'de> for DatabaseReference
impl<'de> Deserialize<'de> for DatabaseReference
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for DatabaseReference
impl Ord for DatabaseReference
source§fn cmp(&self, other: &DatabaseReference) -> Ordering
fn cmp(&self, other: &DatabaseReference) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<DatabaseReference> for DatabaseReference
impl PartialEq<DatabaseReference> for DatabaseReference
source§fn eq(&self, other: &DatabaseReference) -> bool
fn eq(&self, other: &DatabaseReference) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<DatabaseReference> for DatabaseReference
impl PartialOrd<DatabaseReference> for DatabaseReference
source§fn partial_cmp(&self, other: &DatabaseReference) -> Option<Ordering>
fn partial_cmp(&self, other: &DatabaseReference) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for DatabaseReference
impl Serialize for DatabaseReference
impl Eq for DatabaseReference
impl StructuralEq for DatabaseReference
impl StructuralPartialEq for DatabaseReference
Auto Trait Implementations§
impl RefUnwindSafe for DatabaseReference
impl Send for DatabaseReference
impl Sync for DatabaseReference
impl Unpin for DatabaseReference
impl UnwindSafe for DatabaseReference
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.