pub struct ChainRef<'a> { /* private fields */ }Expand description
One chain.
Implementations§
Source§impl<'a> ChainRef<'a>
impl<'a> ChainRef<'a>
Sourcepub const fn index(self) -> ChainIndex
pub const fn index(self) -> ChainIndex
This chain’s position.
Sourcepub fn label_asym_id(self) -> Option<SymbolId>
pub fn label_asym_id(self) -> Option<SymbolId>
The normalised chain label.
Sourcepub fn auth_asym_id(self) -> Option<SymbolId>
pub fn auth_asym_id(self) -> Option<SymbolId>
The depositor’s chain label, where the file carried one.
Sourcepub fn auth_label(self) -> Option<&'a str>
pub fn auth_label(self) -> Option<&'a str>
The depositor’s chain label as text.
Sourcepub fn entity(self) -> Option<EntityIndex>
pub fn entity(self) -> Option<EntityIndex>
The species this chain instantiates.
Sourcepub fn polymer_kind(self) -> PolymerKind
pub fn polymer_kind(self) -> PolymerKind
What kind of polymer this chain is.
Sourcepub fn residues(self) -> impl Iterator<Item = ResidueRef<'a>>
pub fn residues(self) -> impl Iterator<Item = ResidueRef<'a>>
The residues of this chain.
Sourcepub fn residue(self, number: i32) -> Option<ResidueRef<'a>>
pub fn residue(self, number: i32) -> Option<ResidueRef<'a>>
The residue with this number, in whichever namespace carries it.
Sourcepub fn residue_at(self, position: usize) -> Option<ResidueRef<'a>>
pub fn residue_at(self, position: usize) -> Option<ResidueRef<'a>>
The residue at one position within this chain.
Trait Implementations§
Source§impl<'a> ChainSequenceExt<'a> for ChainRef<'a>
impl<'a> ChainSequenceExt<'a> for ChainRef<'a>
Source§fn observed_sequence(self) -> Vec<SymbolId>
fn observed_sequence(self) -> Vec<SymbolId>
Component identifiers actually modelled, in topology order.
Source§fn canonical_sequence(self) -> &'a [SymbolId]
fn canonical_sequence(self) -> &'a [SymbolId]
Entity sequence that should have been present.
Source§fn reference_sequences(self) -> Vec<&'a ReferenceSequence>
fn reference_sequences(self) -> Vec<&'a ReferenceSequence>
Database sequences associated with the chain’s entity.
Source§fn sequence_mapping(self) -> Vec<SequenceMapping<'a>>
fn sequence_mapping(self) -> Vec<SequenceMapping<'a>>
Observed-to-canonical-to-reference position mapping.
Source§fn missing_residues(self) -> Vec<MissingResidue>
fn missing_residues(self) -> Vec<MissingResidue>
Canonical positions not represented by an observed residue.
impl<'a> Copy for ChainRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for ChainRef<'a>
impl<'a> RefUnwindSafe for ChainRef<'a>
impl<'a> Send for ChainRef<'a>
impl<'a> Sync for ChainRef<'a>
impl<'a> Unpin for ChainRef<'a>
impl<'a> UnsafeUnpin for ChainRef<'a>
impl<'a> UnwindSafe for ChainRef<'a>
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