pub struct MerminGas { /* private fields */ }Expand description
The Mermin dielectric function of a free-electron gas with a relaxation
energy ħγ (see the module docs). Atomic units (Hartree, bohr).
Implementations§
Source§impl MerminGas
impl MerminGas
Sourcepub fn new(gas: LindhardGas, gamma: f64) -> Result<Self, ElectronDataError>
pub fn new(gas: LindhardGas, gamma: f64) -> Result<Self, ElectronDataError>
The gas gas with relaxation energy gamma >= 0 (Hartree).
gamma = 0 is the Lindhard function.
Sourcepub fn gas(&self) -> &LindhardGas
pub fn gas(&self) -> &LindhardGas
The underlying Lindhard gas.
Trait Implementations§
impl Copy for MerminGas
impl StructuralPartialEq for MerminGas
Auto Trait Implementations§
impl Freeze for MerminGas
impl RefUnwindSafe for MerminGas
impl Send for MerminGas
impl Sync for MerminGas
impl Unpin for MerminGas
impl UnsafeUnpin for MerminGas
impl UnwindSafe for MerminGas
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