pub enum SecondaryModel {
Off,
KieftBosch {
instantaneous_momentum: bool,
momentum_conservation: bool,
},
}Expand description
Whether and how inelastic events make secondary electrons.
Variants§
Off
No secondaries; the inelastic event only takes W from the primary
and keeps its direction.
KieftBosch
Kieft and Bosch (module docs).
Implementations§
Source§impl SecondaryModel
impl SecondaryModel
Sourcepub const KIEFT_BOSCH: Self
pub const KIEFT_BOSCH: Self
Kieft and Bosch with both options on, Nebula’s defaults
(kieft_inelastic template arguments at the commit in the module
docs).
Trait Implementations§
Source§impl Clone for SecondaryModel
impl Clone for SecondaryModel
Source§fn clone(&self) -> SecondaryModel
fn clone(&self) -> SecondaryModel
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 SecondaryModel
Source§impl Debug for SecondaryModel
impl Debug for SecondaryModel
impl Eq for SecondaryModel
Source§impl PartialEq for SecondaryModel
impl PartialEq for SecondaryModel
Source§impl Serialize for SecondaryModel
impl Serialize for SecondaryModel
impl StructuralPartialEq for SecondaryModel
Auto Trait Implementations§
impl Freeze for SecondaryModel
impl RefUnwindSafe for SecondaryModel
impl Send for SecondaryModel
impl Sync for SecondaryModel
impl Unpin for SecondaryModel
impl UnsafeUnpin for SecondaryModel
impl UnwindSafe for SecondaryModel
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