Struct chemrust_core::data::lattice::BasicLatticeModel
source · pub struct BasicLatticeModel { /* private fields */ }Implementations§
source§impl BasicLatticeModel
impl BasicLatticeModel
pub fn new(lattice_vectors: &Option<LatticeVectors>, atoms: &[Atom]) -> Self
pub fn number_of_atoms(&self) -> usize
pub fn lattice_vectors(&self) -> Option<&LatticeVectors>
pub fn atoms(&self) -> &[Atom]
pub fn atoms_mut(&mut self) -> &mut Vec<Atom>
pub fn append_atom(&mut self, atoms: &mut Vec<Atom>)
pub fn lattice_vectors_mut(&mut self) -> &mut Option<LatticeVectors>
pub fn set_lattice_vectors(&mut self, lattice_vectors: Option<LatticeVectors>)
pub fn set_atoms(&mut self, atoms: Vec<Atom>)
pub fn element_list(&self) -> Vec<String>
sourcepub fn xyz_range_filter(
&self,
x_range: FractionalCoordRange,
y_range: FractionalCoordRange,
z_range: FractionalCoordRange
) -> Vec<Atom>
pub fn xyz_range_filter( &self, x_range: FractionalCoordRange, y_range: FractionalCoordRange, z_range: FractionalCoordRange ) -> Vec<Atom>
Select atoms by the given ranges of x, y, z in fractional coordinates
Trait Implementations§
source§impl Clone for BasicLatticeModel
impl Clone for BasicLatticeModel
source§fn clone(&self) -> BasicLatticeModel
fn clone(&self) -> BasicLatticeModel
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for BasicLatticeModel
impl Debug for BasicLatticeModel
Auto Trait Implementations§
impl Freeze for BasicLatticeModel
impl RefUnwindSafe for BasicLatticeModel
impl Send for BasicLatticeModel
impl Sync for BasicLatticeModel
impl Unpin for BasicLatticeModel
impl UnwindSafe for BasicLatticeModel
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<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.