pub enum BandModel {
Metal {
fermi_ev: f64,
work_function_ev: f64,
},
Insulator {
valence_band_width_ev: f64,
band_gap_ev: f64,
affinity_ev: f64,
},
}Expand description
The band model of one material, after cstool’s band_structure class
(cstool/input_data/band_structure.py at commit
0c739eb3fcc3fe5297e74c601ac4a9546db596cf,
https://github.com/Nebula-simulator/cstool, BSD-3-Clause, Copyright (c)
2020, Nebula-simulator; notice in THIRD_PARTY_LICENSES.md). cstool treats
semiconductors and insulators alike, and so does this type.
Variants§
Metal
A metal: the conduction band is filled up to the Fermi level.
Fields
Insulator
A semiconductor or insulator.
Trait Implementations§
impl Copy for BandModel
impl StructuralPartialEq for BandModel
Auto Trait Implementations§
impl Freeze for BandModel
impl RefUnwindSafe for BandModel
impl Send for BandModel
impl Sync for BandModel
impl Unpin for BandModel
impl UnsafeUnpin for BandModel
impl UnwindSafe for BandModel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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