pub struct SignalAttributes {
pub charge_state: i32,
pub peptide_id: i32,
pub isotope_peak: i32,
pub fragment_kind: Option<FragmentType>,
pub fragment_ordinal: Option<i32>,
}Fields§
§charge_state: i32§peptide_id: i32§isotope_peak: i32§fragment_kind: Option<FragmentType>Fragment-ion kind (b/y/…) this peak originates from, when known.
Stored as a small Copy enum rather than baked into a per-peak string,
which is what makes the annotated builder cheap while keeping the peak’s
full fragment identity (see description).
fragment_ordinal: Option<i32>1-based fragment-ion ordinal (the ion number, e.g. 5 for b5/y5), when known.
Implementations§
Source§impl SignalAttributes
impl SignalAttributes
Sourcepub fn description(&self) -> Option<String>
pub fn description(&self) -> Option<String>
Human-readable fragment label "{kind}_{ordinal}_{isotope}" (e.g. b_5_1),
derived on demand from the structured fields. Returns None unless both the
fragment kind and ordinal are known. This reproduces the string that used to
be eagerly allocated per peak, without paying for it during frame building.
Trait Implementations§
Source§impl Clone for SignalAttributes
impl Clone for SignalAttributes
Source§fn clone(&self) -> SignalAttributes
fn clone(&self) -> SignalAttributes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SignalAttributes
impl RefUnwindSafe for SignalAttributes
impl Send for SignalAttributes
impl Sync for SignalAttributes
impl Unpin for SignalAttributes
impl UnsafeUnpin for SignalAttributes
impl UnwindSafe for SignalAttributes
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.