pub struct ResidueRef<'a> { /* private fields */ }Expand description
One residue.
Implementations§
Source§impl<'a> ResidueRef<'a>
impl<'a> ResidueRef<'a>
Sourcepub const fn index(self) -> ResidueIndex
pub const fn index(self) -> ResidueIndex
This residue’s position.
Sourcepub fn label_comp_id(self) -> Option<SymbolId>
pub fn label_comp_id(self) -> Option<SymbolId>
The normalised component code.
Sourcepub fn auth_comp_id(self) -> Option<SymbolId>
pub fn auth_comp_id(self) -> Option<SymbolId>
The depositor’s component code, where it differs or was recorded.
Sourcepub fn label_seq_id(self) -> Option<i32>
pub fn label_seq_id(self) -> Option<i32>
The sequence position within the entity, absent for a non-polymer.
Sourcepub fn auth_seq_id(self) -> Option<i32>
pub fn auth_seq_id(self) -> Option<i32>
The depositor’s residue number.
Sourcepub fn ins_code(self) -> Option<&'a str>
pub fn ins_code(self) -> Option<&'a str>
The insertion code, which is part of this residue’s identity.
Sourcepub fn atom(self, name: &str) -> Option<AtomRef<'a>>
pub fn atom(self, name: &str) -> Option<AtomRef<'a>>
The atom with this name.
Resolves the name once and then reads names straight from the chunks that hold this residue’s atoms, so the lookup costs the residue rather than the structure. A residue’s atoms are contiguous and never split across chunks, which is what lets the walk hold still.
Trait Implementations§
Source§impl<'a> Clone for ResidueRef<'a>
impl<'a> Clone for ResidueRef<'a>
impl<'a> Copy for ResidueRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for ResidueRef<'a>
impl<'a> RefUnwindSafe for ResidueRef<'a>
impl<'a> Send for ResidueRef<'a>
impl<'a> Sync for ResidueRef<'a>
impl<'a> Unpin for ResidueRef<'a>
impl<'a> UnsafeUnpin for ResidueRef<'a>
impl<'a> UnwindSafe for ResidueRef<'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