pub struct Sublattice {
pub name: String,
pub offset: Vec3,
pub orbitals: usize,
}Expand description
One site of the basis of a lattice.
Fields§
§name: StringLabel of the sublattice, such as A or B.
offset: Vec3Position inside the unit cell (Cartesian).
orbitals: usizeNumber of orbitals (including spin) carried by each site of this sublattice.
Trait Implementations§
Source§impl Clone for Sublattice
impl Clone for Sublattice
Source§fn clone(&self) -> Sublattice
fn clone(&self) -> Sublattice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Sublattice
impl Debug for Sublattice
Source§impl PartialEq for Sublattice
impl PartialEq for Sublattice
Source§fn eq(&self, other: &Sublattice) -> bool
fn eq(&self, other: &Sublattice) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Sublattice
Auto Trait Implementations§
impl Freeze for Sublattice
impl RefUnwindSafe for Sublattice
impl Send for Sublattice
impl Sync for Sublattice
impl Unpin for Sublattice
impl UnsafeUnpin for Sublattice
impl UnwindSafe for Sublattice
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