pub struct ScanWindow {
pub lower_bound: f32,
pub upper_bound: f32,
}Expand description
The m/z range which was scanned
Fields§
§lower_bound: f32The minimum m/z scanned
upper_bound: f32The maximum m/z scanned
Implementations§
Source§impl ScanWindow
impl ScanWindow
pub const fn new(lower_bound: f32, upper_bound: f32) -> Self
Sourcepub fn contains<F: Float>(&self, point: F) -> bool
pub fn contains<F: Float>(&self, point: F) -> bool
Test if point is between Self::lower_bound and Self::upper_bound
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Test if Self::lower_bound and Self::upper_bound are both equal to 0.
Trait Implementations§
Source§impl Clone for ScanWindow
impl Clone for ScanWindow
Source§impl Debug for ScanWindow
impl Debug for ScanWindow
Source§impl Default for ScanWindow
impl Default for ScanWindow
Source§impl PartialEq for ScanWindow
impl PartialEq for ScanWindow
impl StructuralPartialEq for ScanWindow
Auto Trait Implementations§
impl Freeze for ScanWindow
impl RefUnwindSafe for ScanWindow
impl Send for ScanWindow
impl Sync for ScanWindow
impl Unpin for ScanWindow
impl UnsafeUnpin for ScanWindow
impl UnwindSafe for ScanWindow
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