pub struct ElectronState {
pub pos: [f64; 3],
pub dir: [f64; 3],
pub energy_ev: f64,
pub layer: usize,
}Expand description
The state of an electron after an event. Positions are [x, y, z] in
metres, x the depth.
Fields§
§pos: [f64; 3]Position, m.
dir: [f64; 3]Unit direction of flight.
energy_ev: f64Kinetic energy, eV.
layer: usizeIndex of the layer the electron is in (or was last in, after an escape).
Trait Implementations§
Source§impl Clone for ElectronState
impl Clone for ElectronState
Source§fn clone(&self) -> ElectronState
fn clone(&self) -> ElectronState
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 ElectronState
Source§impl Debug for ElectronState
impl Debug for ElectronState
Source§impl PartialEq for ElectronState
impl PartialEq for ElectronState
impl StructuralPartialEq for ElectronState
Auto Trait Implementations§
impl Freeze for ElectronState
impl RefUnwindSafe for ElectronState
impl Send for ElectronState
impl Sync for ElectronState
impl Unpin for ElectronState
impl UnsafeUnpin for ElectronState
impl UnwindSafe for ElectronState
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