Struct mzpeaks::peak::CentroidPeak
source · pub struct CentroidPeak {
pub mz: f64,
pub intensity: f32,
pub index: IndexType,
}
Expand description
Represent a single m/z coordinate with an intensity and an index. Nearly the most basic peak representation for peak-picked data.
Fields§
§mz: f64
§intensity: f32
§index: IndexType
Implementations§
source§impl CentroidPeak
impl CentroidPeak
Trait Implementations§
source§impl Clone for CentroidPeak
impl Clone for CentroidPeak
source§fn clone(&self) -> CentroidPeak
fn clone(&self) -> CentroidPeak
Returns a copy 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 moresource§impl CoordinateLike<MZ> for CentroidPeak
impl CoordinateLike<MZ> for CentroidPeak
source§fn coordinate(&self) -> f64
fn coordinate(&self) -> f64
The trait method for accessing the coordinate of the object on coordinate
system
T
source§impl CoordinateLikeMut<MZ> for CentroidPeak
impl CoordinateLikeMut<MZ> for CentroidPeak
fn coordinate_mut(&mut self) -> &mut f64
source§impl Debug for CentroidPeak
impl Debug for CentroidPeak
source§impl Default for CentroidPeak
impl Default for CentroidPeak
source§fn default() -> CentroidPeak
fn default() -> CentroidPeak
Returns the “default value” for a type. Read more
source§impl Display for CentroidPeak
impl Display for CentroidPeak
source§impl From<CentroidPeak> for MZPoint
impl From<CentroidPeak> for MZPoint
source§fn from(peak: CentroidPeak) -> Self
fn from(peak: CentroidPeak) -> Self
Converts to this type from the input type.
source§impl From<MZPoint> for CentroidPeak
impl From<MZPoint> for CentroidPeak
source§impl Hash for CentroidPeak
impl Hash for CentroidPeak
source§impl IndexedCoordinate<MZ> for CentroidPeak
impl IndexedCoordinate<MZ> for CentroidPeak
source§impl IntensityMeasurement for CentroidPeak
impl IntensityMeasurement for CentroidPeak
source§impl IntensityMeasurementMut for CentroidPeak
impl IntensityMeasurementMut for CentroidPeak
fn intensity_mut(&mut self) -> &mut f32
source§impl<T: CentroidLike> PartialEq<T> for CentroidPeak
impl<T: CentroidLike> PartialEq<T> for CentroidPeak
source§impl<T: CentroidLike> PartialOrd<T> for CentroidPeak
impl<T: CentroidLike> PartialOrd<T> for CentroidPeak
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreAuto Trait Implementations§
impl Freeze for CentroidPeak
impl RefUnwindSafe for CentroidPeak
impl Send for CentroidPeak
impl Sync for CentroidPeak
impl Unpin for CentroidPeak
impl UnwindSafe for CentroidPeak
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