pub struct SublatticeInput {
pub name: Option<String>,
pub position: Vec<f64>,
pub orbitals: usize,
}Expand description
A sublattice of a LatticeInput: { name, position, orbitals }.
Fields§
§name: Option<String>Name (default s0, s1, … after its index).
position: Vec<f64>Position in the unit cell (cartesian, missing components 0; default the origin).
orbitals: usizeOrbitals on each site (default 1).
Trait Implementations§
Source§impl Clone for SublatticeInput
impl Clone for SublatticeInput
Source§fn clone(&self) -> SublatticeInput
fn clone(&self) -> SublatticeInput
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 SublatticeInput
impl Debug for SublatticeInput
Source§impl<'de> Deserialize<'de> for SublatticeInput
impl<'de> Deserialize<'de> for SublatticeInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SublatticeInput
impl RefUnwindSafe for SublatticeInput
impl Send for SublatticeInput
impl Sync for SublatticeInput
impl Unpin for SublatticeInput
impl UnsafeUnpin for SublatticeInput
impl UnwindSafe for SublatticeInput
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T, U> Imply<T> for U
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