pub struct CubeFile {
pub n_atoms: usize,
pub origin: [f64; 3],
pub axes: [[f64; 3]; 3],
pub nx: usize,
pub ny: usize,
pub nz: usize,
pub data: Vec<f64>,
pub atom_positions: Vec<[f64; 3]>,
pub atom_numbers: Vec<u32>,
}Expand description
A Gaussian Cube volumetric data file.
Fields§
§n_atoms: usizeNumber of atoms in the molecule.
origin: [f64; 3]Origin of the volumetric grid in Bohr.
axes: [[f64; 3]; 3]Axis vectors axes[i] define the step along axis i.
nx: usizeNumber of grid points along the X axis.
ny: usizeNumber of grid points along the Y axis.
nz: usizeNumber of grid points along the Z axis.
data: Vec<f64>Volumetric data in row-major order [x][y][z].
atom_positions: Vec<[f64; 3]>Atomic positions in Bohr, one per atom.
atom_numbers: Vec<u32>Atomic numbers, one per atom.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CubeFile
impl RefUnwindSafe for CubeFile
impl Send for CubeFile
impl Sync for CubeFile
impl Unpin for CubeFile
impl UnsafeUnpin for CubeFile
impl UnwindSafe for CubeFile
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.