pub struct BandsOption { /* private fields */ }Expand description
This keyword determines the maximum number of bands at any k-point and spin.
There are three ways in which you can specify the maximum number of bands at any k-point and spin:
Directly, using NBANDS.
Indirectly, by specifying the number of extra bands in addition to the number of occupied bands using NEXTRA_BANDS.
This is the method used in the CASTEP interface.
Indirectly, by specifying the number of extra bands in addition to the number of occupied bands as a percentage of the latter value using PERC_EXTRA_BANDS.
It is not possible to have both the NBANDS keyword and either the NEXTRA_BANDS or PERC_EXTRA_BANDS keywords present in the same input file.
Trait Implementations§
Source§impl Clone for BandsOption
impl Clone for BandsOption
Source§fn clone(&self) -> BandsOption
fn clone(&self) -> BandsOption
Returns a duplicate 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 BandsOption
impl Debug for BandsOption
Source§impl Default for BandsOption
impl Default for BandsOption
Source§fn default() -> BandsOption
fn default() -> BandsOption
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BandsOption
impl<'de> Deserialize<'de> for BandsOption
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 Display for BandsOption
impl Display for BandsOption
Source§impl PartialEq for BandsOption
impl PartialEq for BandsOption
Source§impl PartialOrd for BandsOption
impl PartialOrd for BandsOption
Source§impl Serialize for BandsOption
impl Serialize for BandsOption
impl Copy for BandsOption
impl StructuralPartialEq for BandsOption
Auto Trait Implementations§
impl Freeze for BandsOption
impl RefUnwindSafe for BandsOption
impl Send for BandsOption
impl Sync for BandsOption
impl Unpin for BandsOption
impl UnwindSafe for BandsOption
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