pub enum FlightTimeGridError {
InvalidTimeEdges,
InvalidTimingOffset(f64),
LengthensWithEnergy {
parameter: &'static str,
},
Pulse(ResolutionParseError),
OutsideCalibration {
low_ev: f64,
high_ev: f64,
},
TooManyPoints {
step_us: f64,
},
Response(CountsResponseError),
ValuesLength {
expected: usize,
found: usize,
},
}Expand description
Why a window has no flight-time grid.
Variants§
InvalidTimeEdges
Fewer than two edges, or edges not finite and strictly ascending.
InvalidTimingOffset(f64)
The timing offset is not finite.
LengthensWithEnergy
Not supported: the pulse’s parameter law lengthens the pulse as
energy rises (α falling, β falling with a storage term, or R rising).
The range relies on
arrival times growing with flight time, which such a pulse does not
guarantee.
Pulse(ResolutionParseError)
The pulse cannot be evaluated.
OutsideCalibration
Neutrons with energies outside the pulse’s synthesis grid,
low_ev to high_ev, can reach the window.
TooManyPoints
A grid at step_us would need more than MAX_POINTS points.
Response(CountsResponseError)
The bin probabilities could not be built.
ValuesLength
found values were given for a grid of expected points.
Trait Implementations§
Source§impl Debug for FlightTimeGridError
impl Debug for FlightTimeGridError
Source§impl Display for FlightTimeGridError
impl Display for FlightTimeGridError
Source§impl Error for FlightTimeGridError
impl Error for FlightTimeGridError
1.30.0 · 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<ResolutionParseError> for FlightTimeGridError
impl From<ResolutionParseError> for FlightTimeGridError
Source§fn from(e: ResolutionParseError) -> Self
fn from(e: ResolutionParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FlightTimeGridError
impl RefUnwindSafe for FlightTimeGridError
impl Send for FlightTimeGridError
impl Sync for FlightTimeGridError
impl Unpin for FlightTimeGridError
impl UnsafeUnpin for FlightTimeGridError
impl UnwindSafe for FlightTimeGridError
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.