pub struct AtomChunk { /* private fields */ }Expand description
A contiguous run of atoms, stored column by column.
Implementations§
Source§impl AtomChunk
impl AtomChunk
Sourcepub fn atoms(&self) -> Range<u32> ⓘ
pub fn atoms(&self) -> Range<u32> ⓘ
The atoms this chunk covers, in the structure’s flat order.
This is also the range of the coordinate buffer that belongs to it.
Sourcepub const fn stats(&self) -> &AtomChunkStats
pub const fn stats(&self) -> &AtomChunkStats
What the chunk can say about itself without being read.
Sourcepub fn positions<'a>(
&self,
coords: &'a CoordinateBlock,
) -> Option<&'a [[f32; 3]]>
pub fn positions<'a>( &self, coords: &'a CoordinateBlock, ) -> Option<&'a [[f32; 3]]>
The positions of this chunk’s atoms, borrowed from the frame’s buffer.
Sourcepub fn atom_name(&self, local: u32) -> Option<SymbolId>
pub fn atom_name(&self, local: u32) -> Option<SymbolId>
The normalised name of the atom at local.
Sourcepub fn atom_names_plain(&self) -> Option<&[SymbolId]>
pub fn atom_names_plain(&self) -> Option<&[SymbolId]>
Plain backing storage for atom names, when no decode is required.
Sourcepub fn auth_atom_name(&self, local: u32) -> Option<SymbolId>
pub fn auth_atom_name(&self, local: u32) -> Option<SymbolId>
The depositor’s name for the atom at local, where the file carried one.
Sourcepub fn alternate_component_id(&self, local: u32) -> Option<SymbolId>
pub fn alternate_component_id(&self, local: u32) -> Option<SymbolId>
The atom-specific component identity, where it differs from its residue.
Sourcepub fn alt_id(&self, local: u32) -> Option<AltId>
pub fn alt_id(&self, local: u32) -> Option<AltId>
The alternate-location label of the atom at local.
Sourcepub fn residue(
&self,
local: u32,
residues: &ResidueTable,
) -> Option<ResidueIndex>
pub fn residue( &self, local: u32, residues: &ResidueTable, ) -> Option<ResidueIndex>
The residue of the atom at local.
Sourcepub fn occupancy(&self, local: u32) -> Option<(f32, Presence)>
pub fn occupancy(&self, local: u32) -> Option<(f32, Presence)>
The occupancy of the atom at local, and whether it was recorded.
Sourcepub const fn occupancy_validity(&self) -> &ValidityMask
pub const fn occupancy_validity(&self) -> &ValidityMask
Which occupancies were recorded.
Sourcepub fn occupancies_plain(&self) -> Option<&[f32]>
pub fn occupancies_plain(&self) -> Option<&[f32]>
Plain backing storage for occupancies, when no decode is required.
Sourcepub fn b_factor(&self, local: u32) -> Option<(f32, Presence)>
pub fn b_factor(&self, local: u32) -> Option<(f32, Presence)>
The temperature factor of the atom at local, and whether it was recorded.
Sourcepub const fn b_factor_validity(&self) -> &ValidityMask
pub const fn b_factor_validity(&self) -> &ValidityMask
Which temperature factors were recorded.
Sourcepub fn b_factors_plain(&self) -> Option<&[f32]>
pub fn b_factors_plain(&self) -> Option<&[f32]>
Plain backing storage for temperature factors, when no decode is required.
Sourcepub fn formal_charge(&self, local: u32) -> Option<(i8, Presence)>
pub fn formal_charge(&self, local: u32) -> Option<(i8, Presence)>
The formal charge of the atom at local, and whether it was recorded.
Sourcepub fn atom_site_id(&self, local: u32) -> Option<u32>
pub fn atom_site_id(&self, local: u32) -> Option<u32>
The file-local serial number of the atom at local.
Sourcepub fn has_position(&self, local: u32) -> bool
pub fn has_position(&self, local: u32) -> bool
Whether the position of the atom at local was recorded.
Sourcepub fn record(
&self,
local: u32,
residues: &ResidueTable,
position: Option<[f32; 3]>,
) -> Option<AtomRecord>
pub fn record( &self, local: u32, residues: &ResidueTable, position: Option<[f32; 3]>, ) -> Option<AtomRecord>
Reconstructs one logical row without changing its encoded storage.
Editors use this only when a structural change requires rebuilding atom ordinals. Ordinary reads stay columnar and never materialise records.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AtomChunk
impl RefUnwindSafe for AtomChunk
impl Send for AtomChunk
impl Sync for AtomChunk
impl Unpin for AtomChunk
impl UnsafeUnpin for AtomChunk
impl UnwindSafe for AtomChunk
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
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> ⓘ
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> ⓘ
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