pub struct UnitCell {
pub lengths: [f64; 3],
pub angles: [f64; 3],
}Expand description
The crystallographic cell.
Fields§
§lengths: [f64; 3]Cell edge lengths in ångström.
angles: [f64; 3]Cell angles in degrees.
Implementations§
Source§impl UnitCell
impl UnitCell
Sourcepub fn is_placeholder(&self) -> bool
pub fn is_placeholder(&self) -> bool
Returns true when the cell is the placeholder some files write when they have no cell at all.
A unit cube with right angles is what a structure determined without crystallography carries, and treating it as a real cell would produce periodic images of a molecule that was never in a crystal.
Trait Implementations§
impl Copy for UnitCell
impl StructuralPartialEq for UnitCell
Auto Trait Implementations§
impl Freeze for UnitCell
impl RefUnwindSafe for UnitCell
impl Send for UnitCell
impl Sync for UnitCell
impl Unpin for UnitCell
impl UnsafeUnpin for UnitCell
impl UnwindSafe for UnitCell
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