1use crate::accessions::{INTENSITY_ARRAY, MZ_ARRAY};
2
3#[non_exhaustive]
4#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
5pub struct ByteRange {
6 pub offset: u64,
7 pub length: u64,
8}
9
10#[derive(Debug, Clone, PartialEq, Eq)]
11pub struct ByteRangesOptions {
12 pub arrays: Vec<u32>,
13}
14
15impl Default for ByteRangesOptions {
16 fn default() -> Self {
17 Self {
18 arrays: vec![MZ_ARRAY, INTENSITY_ARRAY],
19 }
20 }
21}
22
23#[derive(Debug, Clone, Copy, PartialEq, Default)]
24pub struct Range {
25 pub from: f64,
26 pub to: f64,
27}