pub enum Fate {
Stopped,
Escaped(Face),
Absorbed,
Trapped,
EventCap,
PolaronTrapped,
}Expand description
How a history (or one electron of it) ended.
Variants§
Stopped
The energy fell below the stopping threshold inside the target.
Escaped(Face)
The electron left the target through a face.
Absorbed
The electron reached the back face under EscapeRule::FrontOnly.
Trapped
The electron has no interaction available and no face to reach (zero total rate heading parallel to the faces, or away from every face).
EventCap
The electron hit TransportConfig::max_events and was cut off.
PolaronTrapped
The electron was trapped as a polaron (an opt-in insulator channel,
crate::electron::phonon::PolaronTrapping) and deposited its
remaining energy there.
Trait Implementations§
impl Copy for Fate
impl Eq for Fate
impl StructuralPartialEq for Fate
Auto Trait Implementations§
impl Freeze for Fate
impl RefUnwindSafe for Fate
impl Send for Fate
impl Sync for Fate
impl Unpin for Fate
impl UnsafeUnpin for Fate
impl UnwindSafe for Fate
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