castep_param_io/param/electro_min/
fix_occupancy.rs

1use castep_param_derive::KeywordDisplay;
2use serde::{Deserialize, Serialize};
3
4#[derive(
5    Debug,
6    Clone,
7    Copy,
8    Hash,
9    Serialize,
10    Deserialize,
11    PartialEq,
12    Eq,
13    PartialOrd,
14    Ord,
15    Default,
16    KeywordDisplay,
17)]
18#[keyword_display(field="FIX_OCCUPANCY",from=bool,value=bool)]
19/// This keyword specifies whether or not the occupancies of the bands should be
20/// fixed, that is, if the system should be treated as a zero temperature insulator or a metal.
21/// # Default
22/// FALSE
23/// # Example
24/// `FIX_OCCUPANCY : TRUE`
25pub struct FixOccupancy(bool);