pub struct AtomChunkStats {
pub bounds: Aabb,
pub elements: ElementMask,
pub model: u32,
pub residue_min: u32,
pub residue_max: u32,
pub b_factor: Extremes,
pub occupancy: Extremes,
pub has_altloc: bool,
pub has_missing_coords: bool,
pub has_hydrogen: bool,
}Expand description
Everything a chunk knows about itself without reading a row.
Fields§
§bounds: AabbThe box enclosing every recorded position.
elements: ElementMaskThe elements present.
model: u32The model every atom belongs to. Constant within a chunk by construction.
residue_min: u32The lowest residue any atom belongs to.
residue_max: u32The highest residue any atom belongs to.
b_factor: ExtremesThe range of recorded temperature factors.
occupancy: ExtremesThe range of recorded occupancies.
has_altloc: boolWhether any atom carries an alternate-location label.
has_missing_coords: boolWhether any atom’s position was not recorded.
has_hydrogen: boolWhether any atom is hydrogen.
Implementations§
Source§impl AtomChunkStats
impl AtomChunkStats
Sourcepub const fn excludes_element(&self, element: Element) -> bool
pub const fn excludes_element(&self, element: Element) -> bool
Returns true when no atom in the chunk can be element.
Sourcepub fn excludes_region(&self, region: &Aabb, distance: f32) -> bool
pub fn excludes_region(&self, region: &Aabb, distance: f32) -> bool
Returns true when no atom in the chunk can be within distance of region.
Sourcepub const fn excludes_residues(&self, first: u32, last: u32) -> bool
pub const fn excludes_residues(&self, first: u32, last: u32) -> bool
Returns true when no atom in the chunk belongs to a residue in range.
Trait Implementations§
Source§impl Clone for AtomChunkStats
impl Clone for AtomChunkStats
impl Copy for AtomChunkStats
Source§impl Debug for AtomChunkStats
impl Debug for AtomChunkStats
Source§impl Default for AtomChunkStats
impl Default for AtomChunkStats
Source§impl PartialEq for AtomChunkStats
impl PartialEq for AtomChunkStats
impl StructuralPartialEq for AtomChunkStats
Auto Trait Implementations§
impl Freeze for AtomChunkStats
impl RefUnwindSafe for AtomChunkStats
impl Send for AtomChunkStats
impl Sync for AtomChunkStats
impl Unpin for AtomChunkStats
impl UnsafeUnpin for AtomChunkStats
impl UnwindSafe for AtomChunkStats
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