pub enum ProjectionError {
InvalidPhaseFloor {
value: f64,
},
InvalidAngularTime {
wt: f64,
},
ZeroTargetDimension {
axis: &'static str,
},
TargetExceedsSource {
source: GridDimensions,
target: GridDimensions,
},
DetailReductionRefused {
source: GridDimensions,
target: GridDimensions,
},
IncompatibleReduction {
observable: Observable,
rule: ReductionRule,
},
NonFiniteSample {
row: usize,
column: usize,
observable: Observable,
value: f64,
},
AllocationFailed {
cells: usize,
},
}Expand description
A scalar projection was refused without returning a partial result.
Variants§
InvalidPhaseFloor
The phase masking threshold was negative or non-finite.
InvalidAngularTime
The instantaneous angular time was non-finite.
ZeroTargetDimension
A target grid dimension was zero.
TargetExceedsSource
Reduction cannot invent target samples beyond the source resolution.
DetailReductionRefused
Detail mode was asked to discard source cells.
Fields
§
source: GridDimensionsSource field shape.
§
target: GridDimensionsRejected smaller target shape.
IncompatibleReduction
A detector rule was paired with a scalar observable it does not measure.
NonFiniteSample
A projected scalar was not finite.
Fields
§
observable: ObservableObservable being projected.
AllocationFailed
Result storage could not be reserved.
Trait Implementations§
Source§impl Clone for ProjectionError
impl Clone for ProjectionError
Source§fn clone(&self) -> ProjectionError
fn clone(&self) -> ProjectionError
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 ProjectionError
impl Debug for ProjectionError
Source§impl Display for ProjectionError
impl Display for ProjectionError
Source§impl Error for ProjectionError
impl Error for ProjectionError
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 PartialEq for ProjectionError
impl PartialEq for ProjectionError
impl StructuralPartialEq for ProjectionError
Auto Trait Implementations§
impl Freeze for ProjectionError
impl RefUnwindSafe for ProjectionError
impl Send for ProjectionError
impl Sync for ProjectionError
impl Unpin for ProjectionError
impl UnsafeUnpin for ProjectionError
impl UnwindSafe for ProjectionError
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