pub struct DataBlock { /* private fields */ }Implementations§
Source§impl DataBlock
impl DataBlock
pub fn from_heading_members( heading_member: (DataBlockHeading, Vec<DataBlockMember>), ) -> Self
pub fn find_loop_column_by_tag<T: AsRef<str>>( &self, tag: T, ) -> Option<LoopColumn>
pub fn find_single_value_by_tag<T: AsRef<str>>( &self, tag: T, ) -> Option<&SingleLineData>
pub fn heading(&self) -> &str
pub fn members(&self) -> &[DataBlockMember]
pub fn members_mut(&mut self) -> &mut Vec<DataBlockMember>
Trait Implementations§
Source§impl CoreAtomData for DataBlock
impl CoreAtomData for DataBlock
fn indices_repr(&self) -> Vec<usize>
fn symbols_repr(&self) -> Vec<ElementSymbol>
fn coords_repr(&self) -> Vec<CoordData>
fn labels_repr(&self) -> Vec<Option<String>>
Source§impl CrystalModel for DataBlock
impl CrystalModel for DataBlock
fn get_cell_parameters(&self) -> &impl UnitCellParameters
fn get_atom_data(&self) -> &impl CoreAtomData
fn get_cell_parameters_mut(&mut self) -> &mut impl UnitCellParameters
fn get_atom_data_mut(&mut self) -> &mut impl CoreAtomData
Source§impl SymmetryInfo for DataBlock
impl SymmetryInfo for DataBlock
fn make_symmetry(&self) -> bool
Source§fn get_space_group_it_num(&self) -> u8
fn get_space_group_it_num(&self) -> u8
1-230
fn get_space_group_hall_symbol(&self) -> HallSymbolNotation
Source§impl UnitCellParameters for DataBlock
impl UnitCellParameters for DataBlock
fn lattice_bases(&self) -> Matrix3<f64>
fn cell_volume(&self) -> f64
fn metric_tensor( &self, ) -> Matrix<f64, Const<3>, Const<3>, ArrayStorage<f64, 3, 3>>
fn length_a(&self) -> f64
fn length_b(&self) -> f64
fn length_c(&self) -> f64
Source§fn angle_alpha(&self) -> f64
fn angle_alpha(&self) -> f64
Should return radians!
Source§fn angle_beta(&self) -> f64
fn angle_beta(&self) -> f64
Should return radians!
Source§fn angle_gamma(&self) -> f64
fn angle_gamma(&self) -> f64
Should return radians!
fn get_crystal_system(&self) -> CrystalSystem
Auto Trait Implementations§
impl Freeze for DataBlock
impl RefUnwindSafe for DataBlock
impl Send for DataBlock
impl Sync for DataBlock
impl Unpin for DataBlock
impl UnwindSafe for DataBlock
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.