Struct ferritin_core::ResidueAtoms
source · pub struct ResidueAtoms<'a> {
pub start_idx: usize,
pub end_idx: usize,
pub res_id: i32,
pub res_name: String,
pub chain_id: String,
pub atoms: Selection,
pub parent: &'a AtomCollection,
}
Fields§
§start_idx: usize
§end_idx: usize
§res_id: i32
§res_name: String
§chain_id: String
§atoms: Selection
§parent: &'a AtomCollection
Implementations§
source§impl<'a> ResidueAtoms<'a>
impl<'a> ResidueAtoms<'a>
pub fn coords(&self) -> Vec<&[f32; 3]>
pub fn atom_names(&self) -> Vec<&String>
pub fn elements(&self) -> Vec<&Element>
pub fn view(&self) -> AtomView<'_>
pub fn atom_count(&self) -> usize
pub fn iter_atoms(&self) -> impl Iterator<Item = AtomInfo<'_>> + '_
pub fn get_atom(&self, residue_atom_idx: usize) -> Option<AtomInfo<'_>>
pub fn find_atom_by_name(&self, name: &str) -> Option<AtomInfo<'_>>
pub fn is_amino_acid(&self) -> bool
pub fn is_carbohydrate(&self) -> bool
pub fn is_nucleotide(&self) -> bool
Trait Implementations§
source§impl<'a> FromIterator<ResidueAtoms<'a>> for AtomCollection
impl<'a> FromIterator<ResidueAtoms<'a>> for AtomCollection
source§fn from_iter<T: IntoIterator<Item = ResidueAtoms<'a>>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = ResidueAtoms<'a>>>(iter: T) -> Self
Creates a value from an iterator. Read more
Auto Trait Implementations§
impl<'a> Freeze for ResidueAtoms<'a>
impl<'a> RefUnwindSafe for ResidueAtoms<'a>
impl<'a> Send for ResidueAtoms<'a>
impl<'a> Sync for ResidueAtoms<'a>
impl<'a> Unpin for ResidueAtoms<'a>
impl<'a> UnwindSafe for ResidueAtoms<'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