pub struct ModelAtomView<'a> { /* private fields */ }Expand description
Read-only view into a single atom from a Model.
Implementations§
Source§impl<'a> ModelAtomView<'a>
impl<'a> ModelAtomView<'a>
Sourcepub fn coords(&self) -> [f32; 3]
pub fn coords(&self) -> [f32; 3]
[x, y, z] for this atom (AoS convenience; allocation-free from SoA).
pub fn element(&self) -> Element
pub fn atom_name(&self) -> &'a str
Sourcepub fn auth_atom_name(&self) -> &'a str
pub fn auth_atom_name(&self) -> &'a str
Author-assigned atom identifier (auth_atom_id).
pub fn residue_id(&self) -> i32
pub fn residue_name(&self) -> &'a str
Sourcepub fn auth_residue_name(&self) -> &'a str
pub fn auth_residue_name(&self) -> &'a str
Author-assigned component identifier (auth_comp_id).
Sourcepub fn label_chain_id(&self) -> &'a str
pub fn label_chain_id(&self) -> &'a str
Canonical chain identifier (label_asym_id).
pub fn chain_id(&self) -> &'a str
pub fn is_hetero(&self) -> bool
pub fn index(&self) -> usize
Auto Trait Implementations§
impl<'a> Freeze for ModelAtomView<'a>
impl<'a> RefUnwindSafe for ModelAtomView<'a>
impl<'a> Send for ModelAtomView<'a>
impl<'a> Sync for ModelAtomView<'a>
impl<'a> Unpin for ModelAtomView<'a>
impl<'a> UnsafeUnpin for ModelAtomView<'a>
impl<'a> UnwindSafe for ModelAtomView<'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