pub struct AtomRef<'a> { /* private fields */ }Expand description
One atom.
Implementations§
Source§impl<'a> AtomRef<'a>
impl<'a> AtomRef<'a>
Sourcepub fn name_symbol(self) -> Option<SymbolId>
pub fn name_symbol(self) -> Option<SymbolId>
The interned atom name.
Sourcepub fn auth_name_symbol(self) -> Option<SymbolId>
pub fn auth_name_symbol(self) -> Option<SymbolId>
The depositor’s atom name, where it differs or was recorded.
Sourcepub fn alt_label(self) -> Option<&'a str>
pub fn alt_label(self) -> Option<&'a str>
The alternate-location label as text, absent for the shared blank form.
Sourcepub fn component_id(self) -> Option<SymbolId>
pub fn component_id(self) -> Option<SymbolId>
The component identity this atom carries.
Most atoms inherit the residue’s primary component. An alternate conformation may carry a different identity, which takes precedence.
Sourcepub fn component_name(self) -> Option<&'a str>
pub fn component_name(self) -> Option<&'a str>
The atom’s effective component identity as text.
Sourcepub fn formal_charge(self) -> Option<i8>
pub fn formal_charge(self) -> Option<i8>
The formal charge, where the file recorded one.
Sourcepub fn atom_site_id(self) -> Option<u32>
pub fn atom_site_id(self) -> Option<u32>
The file-local atom-site identifier.
Sourcepub fn position(self) -> Option<[f32; 3]>
pub fn position(self) -> Option<[f32; 3]>
The position in the first model, where one was recorded.
Sourcepub fn residue(self) -> Option<ResidueRef<'a>>
pub fn residue(self) -> Option<ResidueRef<'a>>
The residue this atom belongs to.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AtomRef<'a>
impl<'a> RefUnwindSafe for AtomRef<'a>
impl<'a> Send for AtomRef<'a>
impl<'a> Sync for AtomRef<'a>
impl<'a> Unpin for AtomRef<'a>
impl<'a> UnsafeUnpin for AtomRef<'a>
impl<'a> UnwindSafe for AtomRef<'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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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