pub enum BoundaryModel {
Transparent,
StepBarrier {
quantum_transmission: bool,
refraction: bool,
},
}Expand description
What a face does to an electron.
Variants§
Transparent
Faces change nothing (no inner potential, no reflection).
StepBarrier
Each face is a step in the inner potential
(crate::electron::boundary); every layer needs a
BandStructure.
Implementations§
Source§impl BoundaryModel
impl BoundaryModel
Sourcepub const STEP_BARRIER: Self
pub const STEP_BARRIER: Self
The step barrier with quantum transmission and refraction, Nebula’s
defaults (boundary_intersect template arguments at the commit named
in crate::electron::boundary).
Trait Implementations§
Source§impl Clone for BoundaryModel
impl Clone for BoundaryModel
Source§fn clone(&self) -> BoundaryModel
fn clone(&self) -> BoundaryModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BoundaryModel
Source§impl Debug for BoundaryModel
impl Debug for BoundaryModel
impl Eq for BoundaryModel
Source§impl PartialEq for BoundaryModel
impl PartialEq for BoundaryModel
Source§impl Serialize for BoundaryModel
impl Serialize for BoundaryModel
impl StructuralPartialEq for BoundaryModel
Auto Trait Implementations§
impl Freeze for BoundaryModel
impl RefUnwindSafe for BoundaryModel
impl Send for BoundaryModel
impl Sync for BoundaryModel
impl Unpin for BoundaryModel
impl UnsafeUnpin for BoundaryModel
impl UnwindSafe for BoundaryModel
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