pub struct Spin(/* private fields */);Expand description
This keyword determines the initial value for the number of unpaired electrons in a spin-polarized calculation. This value may be optimized during the CASTEP calculation depending on the values of SPIN_FIX and FIX_OCCUPANCY. The SPIN keyword cannot be used in conjunction with either of NUP or NDOWN keywords.
§Default
0 when the total number of electrons in the system is even. 1 when the total number of electrons in the system is odd.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Spin
impl<'de> Deserialize<'de> for Spin
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
Source§impl KeywordDisplay for Spin
impl KeywordDisplay for Spin
Source§impl PartialOrd for Spin
impl PartialOrd for Spin
impl Copy for Spin
impl StructuralPartialEq for Spin
Auto Trait Implementations§
impl Freeze for Spin
impl RefUnwindSafe for Spin
impl Send for Spin
impl Sync for Spin
impl Unpin for Spin
impl UnwindSafe for Spin
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