pub struct ResidueView<'a> { /* private fields */ }
Expand description
View representing a residue (amino acid, nucleotide, etc.) in the molecule.
Implementations§
Source§impl<'a> ResidueView<'a>
impl<'a> ResidueView<'a>
pub fn new( data: &'a AtomCollection, start_atom_idx: usize, end_atom_idx: usize, ) -> Self
pub fn atom_count(&self) -> usize
pub fn chain_id(&self) -> &str
pub fn is_amino_acid(&self) -> bool
pub fn is_nucleotide(&self) -> bool
pub fn is_carbohydrate(&self) -> bool
pub fn iter_atoms(&self) -> impl Iterator<Item = AtomView<'_>> + '_
pub fn residue_id(&self) -> i32
pub fn residue_name(&self) -> &str
pub fn find_atom_by_name(&self, name: &str) -> Option<AtomView<'a>>
Auto Trait Implementations§
impl<'a> Freeze for ResidueView<'a>
impl<'a> RefUnwindSafe for ResidueView<'a>
impl<'a> Send for ResidueView<'a>
impl<'a> Sync for ResidueView<'a>
impl<'a> Unpin for ResidueView<'a>
impl<'a> UnwindSafe for ResidueView<'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> 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