pub struct NexusMetadata {
pub has_histogram: bool,
pub has_events: bool,
pub histogram_shape: Option<[usize; 4]>,
pub n_events: Option<usize>,
pub flight_path_m: Option<f64>,
pub tof_offset_ns: Option<f64>,
pub tof_edges_ns: Option<Vec<f64>>,
}Expand description
Metadata probed from a NeXus/HDF5 file without loading full data.
Fields§
§has_histogram: boolWhether /entry/histogram/counts exists.
has_events: boolWhether /entry/neutrons group exists with event data.
histogram_shape: Option<[usize; 4]>Shape of the histogram (rot_angle, y, x, tof), if present.
n_events: Option<usize>Number of events in /entry/neutrons/event_time_offset, if present.
flight_path_m: Option<f64>Flight path in meters (from attributes), if present.
tof_offset_ns: Option<f64>TOF offset in nanoseconds (from attributes), if present.
tof_edges_ns: Option<Vec<f64>>TOF bin edges or centers in nanoseconds, if present.
Trait Implementations§
Source§impl Clone for NexusMetadata
impl Clone for NexusMetadata
Source§fn clone(&self) -> NexusMetadata
fn clone(&self) -> NexusMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NexusMetadata
impl RefUnwindSafe for NexusMetadata
impl Send for NexusMetadata
impl Sync for NexusMetadata
impl Unpin for NexusMetadata
impl UnsafeUnpin for NexusMetadata
impl UnwindSafe for NexusMetadata
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