pub struct ModelResidueView<'a> { /* private fields */ }Expand description
Read-only view into a single residue from a Model.
Implementations§
Source§impl<'a> ModelResidueView<'a>
impl<'a> ModelResidueView<'a>
pub fn atom_count(&self) -> usize
pub fn chain_id(&self) -> &'a 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 = ModelAtomView<'a>> + '_
pub fn residue_id(&self) -> i32
pub fn residue_name(&self) -> &'a str
pub fn find_atom_by_name(&self, name: &str) -> Option<ModelAtomView<'a>>
Auto Trait Implementations§
impl<'a> Freeze for ModelResidueView<'a>
impl<'a> RefUnwindSafe for ModelResidueView<'a>
impl<'a> Send for ModelResidueView<'a>
impl<'a> Sync for ModelResidueView<'a>
impl<'a> Unpin for ModelResidueView<'a>
impl<'a> UnsafeUnpin for ModelResidueView<'a>
impl<'a> UnwindSafe for ModelResidueView<'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