pub struct TransportSpec {
pub cutoff_ev: f64,
pub cutoff_reference: CutoffReferenceChoice,
pub escape_rule: EscapeRuleChoice,
pub max_events: u64,
pub secondaries: SecondaryChoice,
pub instantaneous_momentum: Option<bool>,
pub momentum_conservation: Option<bool>,
pub boundary: BoundaryChoice,
pub quantum_transmission: Option<bool>,
pub refraction: Option<bool>,
}Expand description
[electron.transport]: the TransportConfig.
Fields§
§cutoff_ev: f64Stopping cutoff, eV.
cutoff_reference: CutoffReferenceChoiceWhere the cutoff is measured from.
escape_rule: EscapeRuleChoiceWhat the faces of the target do.
max_events: u64Collision and reflection cap per electron.
secondaries: SecondaryChoiceSecondary-electron generation.
instantaneous_momentum: Option<bool>Kieft-Bosch option: instantaneous momentum of the bound electron.
Default true with "kieft-bosch"; not allowed with "off".
momentum_conservation: Option<bool>Kieft-Bosch option: deflect the primary to conserve momentum.
boundary: BoundaryChoiceFace model.
quantum_transmission: Option<bool>Step-barrier option: quantum-mechanical transmission. Default true
with "step-barrier"; not allowed with "transparent".
refraction: Option<bool>Step-barrier option: refraction on transmission.
Trait Implementations§
Source§impl Clone for TransportSpec
impl Clone for TransportSpec
Source§fn clone(&self) -> TransportSpec
fn clone(&self) -> TransportSpec
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 moreSource§impl Debug for TransportSpec
impl Debug for TransportSpec
Source§impl<'de> Deserialize<'de> for TransportSpec
impl<'de> Deserialize<'de> for TransportSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TransportSpec
impl PartialEq for TransportSpec
Source§impl Serialize for TransportSpec
impl Serialize for TransportSpec
impl StructuralPartialEq for TransportSpec
Auto Trait Implementations§
impl Freeze for TransportSpec
impl RefUnwindSafe for TransportSpec
impl Send for TransportSpec
impl Sync for TransportSpec
impl Unpin for TransportSpec
impl UnsafeUnpin for TransportSpec
impl UnwindSafe for TransportSpec
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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