pub struct StructureData {Show 13 fields
pub entry: EntryMetadata,
pub topology: Topology,
pub chunks: Arc<Vec<AtomChunk>>,
pub bonds: BondTable,
pub anisotropy: AnisotropyTable,
pub secondary_structure: Arc<Vec<SecondaryStructure>>,
pub secondary_source: Arc<Vec<SecondarySource>>,
pub annotations: AtomAnnotations,
pub extensions: ExtensionStore,
pub coords: CoordinateStore,
pub dictionary: Interner,
pub cell: Option<UnitCell>,
pub generation: CoordinateGeneration,
/* private fields */
}Expand description
Everything a structure holds.
Fields§
§entry: EntryMetadataWhat the entry says about itself.
topology: TopologyThe hierarchy.
chunks: Arc<Vec<AtomChunk>>The atoms, in chunks.
bonds: BondTableChemical connectivity as compact edge columns.
anisotropy: AnisotropyTableAnisotropic displacement ellipsoids as a sparse per-atom table.
secondary_structure: Arc<Vec<SecondaryStructure>>File or analysis secondary-structure state aligned to residue rows. Empty when unavailable; otherwise one state for every residue.
secondary_source: Arc<Vec<SecondarySource>>Where each secondary-structure state came from; the same length as
secondary_structure, including when both columns are unavailable.
annotations: AtomAnnotationsStructure-local typed columns aligned exactly to atom rows.
extensions: ExtensionStoreCold, typed domain metadata attached to this snapshot.
coords: CoordinateStoreThe positions.
dictionary: InternerThe identifiers this structure interned.
cell: Option<UnitCell>The crystallographic cell, where the file carried one.
generation: CoordinateGenerationHow many times the positions have changed.
Implementations§
Source§impl StructureData
impl StructureData
Source§impl StructureData
impl StructureData
Sourcepub fn model(&self, model: ModelIndex) -> Option<ModelRef<'_>>
pub fn model(&self, model: ModelIndex) -> Option<ModelRef<'_>>
A handle on one model.
Sourcepub fn chain(&self, chain: ChainIndex) -> Option<ChainRef<'_>>
pub fn chain(&self, chain: ChainIndex) -> Option<ChainRef<'_>>
A handle on one chain.
Sourcepub fn residue(&self, residue: ResidueIndex) -> Option<ResidueRef<'_>>
pub fn residue(&self, residue: ResidueIndex) -> Option<ResidueRef<'_>>
A handle on one residue.
Sourcepub fn chain_named(&self, label: &str) -> Option<ChainRef<'_>>
pub fn chain_named(&self, label: &str) -> Option<ChainRef<'_>>
The chain with this label, in either namespace.
Sourcepub fn residues(&self) -> impl Iterator<Item = ResidueRef<'_>>
pub fn residues(&self) -> impl Iterator<Item = ResidueRef<'_>>
Every residue, across every chain.
Trait Implementations§
Source§impl Clone for StructureData
impl Clone for StructureData
Source§impl Debug for StructureData
impl Debug for StructureData
Source§impl From<StructureData> for Structure
impl From<StructureData> for Structure
Source§fn from(data: StructureData) -> Self
fn from(data: StructureData) -> Self
Auto Trait Implementations§
impl Freeze for StructureData
impl RefUnwindSafe for StructureData
impl Send for StructureData
impl Sync for StructureData
impl Unpin for StructureData
impl UnsafeUnpin for StructureData
impl UnwindSafe for StructureData
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