pub enum ElectronTallyError {
Split(f64),
NegativeRadius(f64),
PolarRange {
lo: f64,
hi: f64,
},
GridTooLarge(&'static str),
Psf(PsfError),
Dose(DoseError),
Exposure(ExposureError),
}Expand description
Errors from building a FullElectronTally.
Variants§
Split(f64)
The SE/BSE split is not finite and non-negative.
NegativeRadius(f64)
The radial binning of a cylindrical grid starts below r = 0.
PolarRange
The escape polar-angle binning is not within [0, π].
GridTooLarge(&'static str)
A grid has more cells than fit in memory addressing.
Psf(PsfError)
The radial-profile (PSF) configuration is invalid.
Dose(DoseError)
The dose / depth-dose / transmission configuration is invalid.
Exposure(ExposureError)
The exposure settings are invalid.
Trait Implementations§
Source§impl Clone for ElectronTallyError
impl Clone for ElectronTallyError
Source§fn clone(&self) -> ElectronTallyError
fn clone(&self) -> ElectronTallyError
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 ElectronTallyError
impl Debug for ElectronTallyError
Source§impl Display for ElectronTallyError
impl Display for ElectronTallyError
Source§impl Error for ElectronTallyError
impl Error for ElectronTallyError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<DoseError> for ElectronTallyError
impl From<DoseError> for ElectronTallyError
Source§impl From<ElectronTallyError> for PsfScanError
impl From<ElectronTallyError> for PsfScanError
Source§fn from(source: ElectronTallyError) -> Self
fn from(source: ElectronTallyError) -> Self
Converts to this type from the input type.
Source§impl From<ExposureError> for ElectronTallyError
impl From<ExposureError> for ElectronTallyError
Source§fn from(source: ExposureError) -> Self
fn from(source: ExposureError) -> Self
Converts to this type from the input type.
Source§impl From<PsfError> for ElectronTallyError
impl From<PsfError> for ElectronTallyError
Source§impl PartialEq for ElectronTallyError
impl PartialEq for ElectronTallyError
impl StructuralPartialEq for ElectronTallyError
Auto Trait Implementations§
impl Freeze for ElectronTallyError
impl RefUnwindSafe for ElectronTallyError
impl Send for ElectronTallyError
impl Sync for ElectronTallyError
impl Unpin for ElectronTallyError
impl UnsafeUnpin for ElectronTallyError
impl UnwindSafe for ElectronTallyError
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