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).
Sourcepub fn element(&self) -> Element
pub fn element(&self) -> Element
Element parsed from the symbol stored in the hierarchy.
Returns Element::C for unrecognised symbols.
pub fn atom_name(&self) -> &'a str
pub fn residue_id(&self) -> i32
pub fn residue_name(&self) -> &'a str
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