pub enum MultiAngleMode {
Error,
Sum,
SelectAngle(usize),
}Expand description
Policy for handling multi-angle NeXus histogram files.
Issue #430: the loader must refuse to silently collapse the rotation-angle dimension. Callers choose explicitly which projection (or combination of projections) they want.
Variants§
Error
Reject files with more than one rotation angle with a clear
IoError::InvalidParameter. Single-angle files (n_rot == 1)
load normally. This is the default — it prevents silent data
loss for callers that aren’t multi-angle-aware.
Sum
Sum across all rotation angles into a single (tof, y, x)
volume. This is the legacy auto-sum behaviour, preserved as an
explicit opt-in so that callers can’t invoke it by
accident. Multi-angle analysis information is irreversibly
lost on this path.
SelectAngle(usize)
Extract a single rotation angle by index. Returns an error if the index is out of range.
Trait Implementations§
Source§impl Clone for MultiAngleMode
impl Clone for MultiAngleMode
Source§fn clone(&self) -> MultiAngleMode
fn clone(&self) -> MultiAngleMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MultiAngleMode
impl Debug for MultiAngleMode
Source§impl Default for MultiAngleMode
impl Default for MultiAngleMode
Source§fn default() -> MultiAngleMode
fn default() -> MultiAngleMode
Source§impl PartialEq for MultiAngleMode
impl PartialEq for MultiAngleMode
impl Copy for MultiAngleMode
impl Eq for MultiAngleMode
impl StructuralPartialEq for MultiAngleMode
Auto Trait Implementations§
impl Freeze for MultiAngleMode
impl RefUnwindSafe for MultiAngleMode
impl Send for MultiAngleMode
impl Sync for MultiAngleMode
impl Unpin for MultiAngleMode
impl UnsafeUnpin for MultiAngleMode
impl UnwindSafe for MultiAngleMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.