pub struct AnisotropyTable { /* private fields */ }Expand description
A compact, immutable anisotropic displacement table sorted by atom.
Implementations§
Source§impl AnisotropyTable
impl AnisotropyTable
Sourcepub const fn is_available(&self) -> bool
pub const fn is_available(&self) -> bool
Whether anisotropic displacement was resolved, including a known empty set.
Sourcepub fn get(&self, row: AnisotropyIndex) -> Option<AnisotropicDisplacement>
pub fn get(&self, row: AnisotropyIndex) -> Option<AnisotropicDisplacement>
Returns one ellipsoid by position.
Sourcepub fn for_atom(&self, atom: AtomIndex) -> Option<[f32; 6]>
pub fn for_atom(&self, atom: AtomIndex) -> Option<[f32; 6]>
Returns the tensor of one atom, or None when it is isotropic.
Sourcepub fn iter(
&self,
) -> impl ExactSizeIterator<Item = AnisotropicDisplacement> + '_
pub fn iter( &self, ) -> impl ExactSizeIterator<Item = AnisotropicDisplacement> + '_
Walks records in stable atom order.
Trait Implementations§
Source§impl Clone for AnisotropyTable
impl Clone for AnisotropyTable
Source§impl Debug for AnisotropyTable
impl Debug for AnisotropyTable
Auto Trait Implementations§
impl Freeze for AnisotropyTable
impl RefUnwindSafe for AnisotropyTable
impl Send for AnisotropyTable
impl Sync for AnisotropyTable
impl Unpin for AnisotropyTable
impl UnsafeUnpin for AnisotropyTable
impl UnwindSafe for AnisotropyTable
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